@zitadel/node
Advanced tools
Comparing version 1.1.121 to 1.1.122
import Long from "long"; | ||
import _m0 from "protobufjs/minimal"; | ||
export declare const protobufPackage = "zitadel.object.v2beta"; | ||
export declare enum TextQueryMethod { | ||
TEXT_QUERY_METHOD_EQUALS = 0, | ||
TEXT_QUERY_METHOD_EQUALS_IGNORE_CASE = 1, | ||
TEXT_QUERY_METHOD_STARTS_WITH = 2, | ||
TEXT_QUERY_METHOD_STARTS_WITH_IGNORE_CASE = 3, | ||
TEXT_QUERY_METHOD_CONTAINS = 4, | ||
TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE = 5, | ||
TEXT_QUERY_METHOD_ENDS_WITH = 6, | ||
TEXT_QUERY_METHOD_ENDS_WITH_IGNORE_CASE = 7, | ||
UNRECOGNIZED = -1 | ||
} | ||
export declare function textQueryMethodFromJSON(object: any): TextQueryMethod; | ||
export declare function textQueryMethodToJSON(object: TextQueryMethod): string; | ||
export declare enum ListQueryMethod { | ||
LIST_QUERY_METHOD_IN = 0, | ||
UNRECOGNIZED = -1 | ||
} | ||
export declare function listQueryMethodFromJSON(object: any): ListQueryMethod; | ||
export declare function listQueryMethodToJSON(object: ListQueryMethod): string; | ||
export declare enum TimestampQueryMethod { | ||
TIMESTAMP_QUERY_METHOD_EQUALS = 0, | ||
TIMESTAMP_QUERY_METHOD_GREATER = 1, | ||
TIMESTAMP_QUERY_METHOD_GREATER_OR_EQUALS = 2, | ||
TIMESTAMP_QUERY_METHOD_LESS = 3, | ||
TIMESTAMP_QUERY_METHOD_LESS_OR_EQUALS = 4, | ||
UNRECOGNIZED = -1 | ||
} | ||
export declare function timestampQueryMethodFromJSON(object: any): TimestampQueryMethod; | ||
export declare function timestampQueryMethodToJSON(object: TimestampQueryMethod): string; | ||
/** Deprecated: use Organization */ | ||
@@ -5,0 +34,0 @@ export interface Organisation { |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ListDetails = exports.Details = exports.ListQuery = exports.RequestContext = exports.Organization = exports.Organisation = exports.protobufPackage = void 0; | ||
exports.ListDetails = exports.Details = exports.ListQuery = exports.RequestContext = exports.Organization = exports.Organisation = exports.timestampQueryMethodToJSON = exports.timestampQueryMethodFromJSON = exports.TimestampQueryMethod = exports.listQueryMethodToJSON = exports.listQueryMethodFromJSON = exports.ListQueryMethod = exports.textQueryMethodToJSON = exports.textQueryMethodFromJSON = exports.TextQueryMethod = exports.protobufPackage = void 0; | ||
/* eslint-disable */ | ||
@@ -13,2 +13,149 @@ const long_1 = __importDefault(require("long")); | ||
exports.protobufPackage = "zitadel.object.v2beta"; | ||
var TextQueryMethod; | ||
(function (TextQueryMethod) { | ||
TextQueryMethod[TextQueryMethod["TEXT_QUERY_METHOD_EQUALS"] = 0] = "TEXT_QUERY_METHOD_EQUALS"; | ||
TextQueryMethod[TextQueryMethod["TEXT_QUERY_METHOD_EQUALS_IGNORE_CASE"] = 1] = "TEXT_QUERY_METHOD_EQUALS_IGNORE_CASE"; | ||
TextQueryMethod[TextQueryMethod["TEXT_QUERY_METHOD_STARTS_WITH"] = 2] = "TEXT_QUERY_METHOD_STARTS_WITH"; | ||
TextQueryMethod[TextQueryMethod["TEXT_QUERY_METHOD_STARTS_WITH_IGNORE_CASE"] = 3] = "TEXT_QUERY_METHOD_STARTS_WITH_IGNORE_CASE"; | ||
TextQueryMethod[TextQueryMethod["TEXT_QUERY_METHOD_CONTAINS"] = 4] = "TEXT_QUERY_METHOD_CONTAINS"; | ||
TextQueryMethod[TextQueryMethod["TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE"] = 5] = "TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE"; | ||
TextQueryMethod[TextQueryMethod["TEXT_QUERY_METHOD_ENDS_WITH"] = 6] = "TEXT_QUERY_METHOD_ENDS_WITH"; | ||
TextQueryMethod[TextQueryMethod["TEXT_QUERY_METHOD_ENDS_WITH_IGNORE_CASE"] = 7] = "TEXT_QUERY_METHOD_ENDS_WITH_IGNORE_CASE"; | ||
TextQueryMethod[TextQueryMethod["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; | ||
})(TextQueryMethod || (exports.TextQueryMethod = TextQueryMethod = {})); | ||
function textQueryMethodFromJSON(object) { | ||
switch (object) { | ||
case 0: | ||
case "TEXT_QUERY_METHOD_EQUALS": | ||
return TextQueryMethod.TEXT_QUERY_METHOD_EQUALS; | ||
case 1: | ||
case "TEXT_QUERY_METHOD_EQUALS_IGNORE_CASE": | ||
return TextQueryMethod.TEXT_QUERY_METHOD_EQUALS_IGNORE_CASE; | ||
case 2: | ||
case "TEXT_QUERY_METHOD_STARTS_WITH": | ||
return TextQueryMethod.TEXT_QUERY_METHOD_STARTS_WITH; | ||
case 3: | ||
case "TEXT_QUERY_METHOD_STARTS_WITH_IGNORE_CASE": | ||
return TextQueryMethod.TEXT_QUERY_METHOD_STARTS_WITH_IGNORE_CASE; | ||
case 4: | ||
case "TEXT_QUERY_METHOD_CONTAINS": | ||
return TextQueryMethod.TEXT_QUERY_METHOD_CONTAINS; | ||
case 5: | ||
case "TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE": | ||
return TextQueryMethod.TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE; | ||
case 6: | ||
case "TEXT_QUERY_METHOD_ENDS_WITH": | ||
return TextQueryMethod.TEXT_QUERY_METHOD_ENDS_WITH; | ||
case 7: | ||
case "TEXT_QUERY_METHOD_ENDS_WITH_IGNORE_CASE": | ||
return TextQueryMethod.TEXT_QUERY_METHOD_ENDS_WITH_IGNORE_CASE; | ||
case -1: | ||
case "UNRECOGNIZED": | ||
default: | ||
return TextQueryMethod.UNRECOGNIZED; | ||
} | ||
} | ||
exports.textQueryMethodFromJSON = textQueryMethodFromJSON; | ||
function textQueryMethodToJSON(object) { | ||
switch (object) { | ||
case TextQueryMethod.TEXT_QUERY_METHOD_EQUALS: | ||
return "TEXT_QUERY_METHOD_EQUALS"; | ||
case TextQueryMethod.TEXT_QUERY_METHOD_EQUALS_IGNORE_CASE: | ||
return "TEXT_QUERY_METHOD_EQUALS_IGNORE_CASE"; | ||
case TextQueryMethod.TEXT_QUERY_METHOD_STARTS_WITH: | ||
return "TEXT_QUERY_METHOD_STARTS_WITH"; | ||
case TextQueryMethod.TEXT_QUERY_METHOD_STARTS_WITH_IGNORE_CASE: | ||
return "TEXT_QUERY_METHOD_STARTS_WITH_IGNORE_CASE"; | ||
case TextQueryMethod.TEXT_QUERY_METHOD_CONTAINS: | ||
return "TEXT_QUERY_METHOD_CONTAINS"; | ||
case TextQueryMethod.TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE: | ||
return "TEXT_QUERY_METHOD_CONTAINS_IGNORE_CASE"; | ||
case TextQueryMethod.TEXT_QUERY_METHOD_ENDS_WITH: | ||
return "TEXT_QUERY_METHOD_ENDS_WITH"; | ||
case TextQueryMethod.TEXT_QUERY_METHOD_ENDS_WITH_IGNORE_CASE: | ||
return "TEXT_QUERY_METHOD_ENDS_WITH_IGNORE_CASE"; | ||
case TextQueryMethod.UNRECOGNIZED: | ||
default: | ||
return "UNRECOGNIZED"; | ||
} | ||
} | ||
exports.textQueryMethodToJSON = textQueryMethodToJSON; | ||
var ListQueryMethod; | ||
(function (ListQueryMethod) { | ||
ListQueryMethod[ListQueryMethod["LIST_QUERY_METHOD_IN"] = 0] = "LIST_QUERY_METHOD_IN"; | ||
ListQueryMethod[ListQueryMethod["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; | ||
})(ListQueryMethod || (exports.ListQueryMethod = ListQueryMethod = {})); | ||
function listQueryMethodFromJSON(object) { | ||
switch (object) { | ||
case 0: | ||
case "LIST_QUERY_METHOD_IN": | ||
return ListQueryMethod.LIST_QUERY_METHOD_IN; | ||
case -1: | ||
case "UNRECOGNIZED": | ||
default: | ||
return ListQueryMethod.UNRECOGNIZED; | ||
} | ||
} | ||
exports.listQueryMethodFromJSON = listQueryMethodFromJSON; | ||
function listQueryMethodToJSON(object) { | ||
switch (object) { | ||
case ListQueryMethod.LIST_QUERY_METHOD_IN: | ||
return "LIST_QUERY_METHOD_IN"; | ||
case ListQueryMethod.UNRECOGNIZED: | ||
default: | ||
return "UNRECOGNIZED"; | ||
} | ||
} | ||
exports.listQueryMethodToJSON = listQueryMethodToJSON; | ||
var TimestampQueryMethod; | ||
(function (TimestampQueryMethod) { | ||
TimestampQueryMethod[TimestampQueryMethod["TIMESTAMP_QUERY_METHOD_EQUALS"] = 0] = "TIMESTAMP_QUERY_METHOD_EQUALS"; | ||
TimestampQueryMethod[TimestampQueryMethod["TIMESTAMP_QUERY_METHOD_GREATER"] = 1] = "TIMESTAMP_QUERY_METHOD_GREATER"; | ||
TimestampQueryMethod[TimestampQueryMethod["TIMESTAMP_QUERY_METHOD_GREATER_OR_EQUALS"] = 2] = "TIMESTAMP_QUERY_METHOD_GREATER_OR_EQUALS"; | ||
TimestampQueryMethod[TimestampQueryMethod["TIMESTAMP_QUERY_METHOD_LESS"] = 3] = "TIMESTAMP_QUERY_METHOD_LESS"; | ||
TimestampQueryMethod[TimestampQueryMethod["TIMESTAMP_QUERY_METHOD_LESS_OR_EQUALS"] = 4] = "TIMESTAMP_QUERY_METHOD_LESS_OR_EQUALS"; | ||
TimestampQueryMethod[TimestampQueryMethod["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; | ||
})(TimestampQueryMethod || (exports.TimestampQueryMethod = TimestampQueryMethod = {})); | ||
function timestampQueryMethodFromJSON(object) { | ||
switch (object) { | ||
case 0: | ||
case "TIMESTAMP_QUERY_METHOD_EQUALS": | ||
return TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_EQUALS; | ||
case 1: | ||
case "TIMESTAMP_QUERY_METHOD_GREATER": | ||
return TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_GREATER; | ||
case 2: | ||
case "TIMESTAMP_QUERY_METHOD_GREATER_OR_EQUALS": | ||
return TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_GREATER_OR_EQUALS; | ||
case 3: | ||
case "TIMESTAMP_QUERY_METHOD_LESS": | ||
return TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_LESS; | ||
case 4: | ||
case "TIMESTAMP_QUERY_METHOD_LESS_OR_EQUALS": | ||
return TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_LESS_OR_EQUALS; | ||
case -1: | ||
case "UNRECOGNIZED": | ||
default: | ||
return TimestampQueryMethod.UNRECOGNIZED; | ||
} | ||
} | ||
exports.timestampQueryMethodFromJSON = timestampQueryMethodFromJSON; | ||
function timestampQueryMethodToJSON(object) { | ||
switch (object) { | ||
case TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_EQUALS: | ||
return "TIMESTAMP_QUERY_METHOD_EQUALS"; | ||
case TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_GREATER: | ||
return "TIMESTAMP_QUERY_METHOD_GREATER"; | ||
case TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_GREATER_OR_EQUALS: | ||
return "TIMESTAMP_QUERY_METHOD_GREATER_OR_EQUALS"; | ||
case TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_LESS: | ||
return "TIMESTAMP_QUERY_METHOD_LESS"; | ||
case TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_LESS_OR_EQUALS: | ||
return "TIMESTAMP_QUERY_METHOD_LESS_OR_EQUALS"; | ||
case TimestampQueryMethod.UNRECOGNIZED: | ||
default: | ||
return "UNRECOGNIZED"; | ||
} | ||
} | ||
exports.timestampQueryMethodToJSON = timestampQueryMethodToJSON; | ||
function createBaseOrganisation() { | ||
@@ -15,0 +162,0 @@ return { orgId: undefined, orgDomain: undefined }; |
@@ -295,2 +295,5 @@ /// <reference types="node" /> | ||
userType: Type; | ||
grantedOrgId: string; | ||
grantedOrgName: string; | ||
grantedOrgDomain: string; | ||
} | ||
@@ -297,0 +300,0 @@ export interface UserGrantQuery { |
@@ -16,2 +16,9 @@ /// <reference types="node" /> | ||
export declare function genderToJSON(object: Gender): string; | ||
export declare enum AccessTokenType { | ||
ACCESS_TOKEN_TYPE_BEARER = 0, | ||
ACCESS_TOKEN_TYPE_JWT = 1, | ||
UNRECOGNIZED = -1 | ||
} | ||
export declare function accessTokenTypeFromJSON(object: any): AccessTokenType; | ||
export declare function accessTokenTypeToJSON(object: AccessTokenType): string; | ||
export declare enum UserState { | ||
@@ -23,4 +30,3 @@ USER_STATE_UNSPECIFIED = 0, | ||
USER_STATE_LOCKED = 4, | ||
USER_STATE_SUSPEND = 5, | ||
USER_STATE_INITIAL = 6, | ||
USER_STATE_INITIAL = 5, | ||
UNRECOGNIZED = -1 | ||
@@ -45,2 +51,3 @@ } | ||
gender?: Gender | undefined; | ||
avatarUrl: string; | ||
} | ||
@@ -61,2 +68,17 @@ export interface SetMetadataEntry { | ||
} | ||
export interface User { | ||
userId: string; | ||
state: UserState; | ||
username: string; | ||
loginNames: string[]; | ||
preferredLoginName: string; | ||
human?: HumanUser | undefined; | ||
machine?: MachineUser | undefined; | ||
} | ||
export interface MachineUser { | ||
name: string; | ||
description: string; | ||
hasSecret: boolean; | ||
accessTokenType: AccessTokenType; | ||
} | ||
export declare const SetHumanProfile: { | ||
@@ -94,2 +116,18 @@ encode(message: SetHumanProfile, writer?: _m0.Writer): _m0.Writer; | ||
}; | ||
export declare const User: { | ||
encode(message: User, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): User; | ||
fromJSON(object: any): User; | ||
toJSON(message: User): unknown; | ||
create(base?: DeepPartial<User>): User; | ||
fromPartial(object: DeepPartial<User>): User; | ||
}; | ||
export declare const MachineUser: { | ||
encode(message: MachineUser, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MachineUser; | ||
fromJSON(object: any): MachineUser; | ||
toJSON(message: MachineUser): unknown; | ||
create(base?: DeepPartial<MachineUser>): MachineUser; | ||
fromPartial(object: DeepPartial<MachineUser>): MachineUser; | ||
}; | ||
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; | ||
@@ -96,0 +134,0 @@ export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.HumanUser = exports.SetMetadataEntry = exports.HumanProfile = exports.SetHumanProfile = exports.userStateToJSON = exports.userStateFromJSON = exports.UserState = exports.genderToJSON = exports.genderFromJSON = exports.Gender = exports.protobufPackage = void 0; | ||
exports.MachineUser = exports.User = exports.HumanUser = exports.SetMetadataEntry = exports.HumanProfile = exports.SetHumanProfile = exports.userStateToJSON = exports.userStateFromJSON = exports.UserState = exports.accessTokenTypeToJSON = exports.accessTokenTypeFromJSON = exports.AccessTokenType = exports.genderToJSON = exports.genderFromJSON = exports.Gender = exports.protobufPackage = void 0; | ||
/* eslint-disable */ | ||
@@ -59,2 +59,35 @@ const long_1 = __importDefault(require("long")); | ||
exports.genderToJSON = genderToJSON; | ||
var AccessTokenType; | ||
(function (AccessTokenType) { | ||
AccessTokenType[AccessTokenType["ACCESS_TOKEN_TYPE_BEARER"] = 0] = "ACCESS_TOKEN_TYPE_BEARER"; | ||
AccessTokenType[AccessTokenType["ACCESS_TOKEN_TYPE_JWT"] = 1] = "ACCESS_TOKEN_TYPE_JWT"; | ||
AccessTokenType[AccessTokenType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; | ||
})(AccessTokenType || (exports.AccessTokenType = AccessTokenType = {})); | ||
function accessTokenTypeFromJSON(object) { | ||
switch (object) { | ||
case 0: | ||
case "ACCESS_TOKEN_TYPE_BEARER": | ||
return AccessTokenType.ACCESS_TOKEN_TYPE_BEARER; | ||
case 1: | ||
case "ACCESS_TOKEN_TYPE_JWT": | ||
return AccessTokenType.ACCESS_TOKEN_TYPE_JWT; | ||
case -1: | ||
case "UNRECOGNIZED": | ||
default: | ||
return AccessTokenType.UNRECOGNIZED; | ||
} | ||
} | ||
exports.accessTokenTypeFromJSON = accessTokenTypeFromJSON; | ||
function accessTokenTypeToJSON(object) { | ||
switch (object) { | ||
case AccessTokenType.ACCESS_TOKEN_TYPE_BEARER: | ||
return "ACCESS_TOKEN_TYPE_BEARER"; | ||
case AccessTokenType.ACCESS_TOKEN_TYPE_JWT: | ||
return "ACCESS_TOKEN_TYPE_JWT"; | ||
case AccessTokenType.UNRECOGNIZED: | ||
default: | ||
return "UNRECOGNIZED"; | ||
} | ||
} | ||
exports.accessTokenTypeToJSON = accessTokenTypeToJSON; | ||
var UserState; | ||
@@ -67,4 +100,3 @@ (function (UserState) { | ||
UserState[UserState["USER_STATE_LOCKED"] = 4] = "USER_STATE_LOCKED"; | ||
UserState[UserState["USER_STATE_SUSPEND"] = 5] = "USER_STATE_SUSPEND"; | ||
UserState[UserState["USER_STATE_INITIAL"] = 6] = "USER_STATE_INITIAL"; | ||
UserState[UserState["USER_STATE_INITIAL"] = 5] = "USER_STATE_INITIAL"; | ||
UserState[UserState["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; | ||
@@ -90,5 +122,2 @@ })(UserState || (exports.UserState = UserState = {})); | ||
case 5: | ||
case "USER_STATE_SUSPEND": | ||
return UserState.USER_STATE_SUSPEND; | ||
case 6: | ||
case "USER_STATE_INITIAL": | ||
@@ -115,4 +144,2 @@ return UserState.USER_STATE_INITIAL; | ||
return "USER_STATE_LOCKED"; | ||
case UserState.USER_STATE_SUSPEND: | ||
return "USER_STATE_SUSPEND"; | ||
case UserState.USER_STATE_INITIAL: | ||
@@ -252,2 +279,3 @@ return "USER_STATE_INITIAL"; | ||
gender: undefined, | ||
avatarUrl: "", | ||
}; | ||
@@ -275,2 +303,5 @@ } | ||
} | ||
if (message.avatarUrl !== "") { | ||
writer.uint32(58).string(message.avatarUrl); | ||
} | ||
return writer; | ||
@@ -321,2 +352,8 @@ }, | ||
continue; | ||
case 7: | ||
if (tag !== 58) { | ||
break; | ||
} | ||
message.avatarUrl = reader.string(); | ||
continue; | ||
} | ||
@@ -338,2 +375,3 @@ if ((tag & 7) === 4 || tag === 0) { | ||
gender: isSet(object.gender) ? genderFromJSON(object.gender) : undefined, | ||
avatarUrl: isSet(object.avatarUrl) ? String(object.avatarUrl) : "", | ||
}; | ||
@@ -350,2 +388,3 @@ }, | ||
(obj.gender = message.gender !== undefined ? genderToJSON(message.gender) : undefined); | ||
message.avatarUrl !== undefined && (obj.avatarUrl = message.avatarUrl); | ||
return obj; | ||
@@ -364,2 +403,3 @@ }, | ||
message.gender = object.gender ?? undefined; | ||
message.avatarUrl = object.avatarUrl ?? ""; | ||
return message; | ||
@@ -585,2 +625,227 @@ }, | ||
}; | ||
function createBaseUser() { | ||
return { | ||
userId: "", | ||
state: 0, | ||
username: "", | ||
loginNames: [], | ||
preferredLoginName: "", | ||
human: undefined, | ||
machine: undefined, | ||
}; | ||
} | ||
exports.User = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
if (message.userId !== "") { | ||
writer.uint32(10).string(message.userId); | ||
} | ||
if (message.state !== 0) { | ||
writer.uint32(16).int32(message.state); | ||
} | ||
if (message.username !== "") { | ||
writer.uint32(26).string(message.username); | ||
} | ||
for (const v of message.loginNames) { | ||
writer.uint32(34).string(v); | ||
} | ||
if (message.preferredLoginName !== "") { | ||
writer.uint32(42).string(message.preferredLoginName); | ||
} | ||
if (message.human !== undefined) { | ||
exports.HumanUser.encode(message.human, writer.uint32(50).fork()).ldelim(); | ||
} | ||
if (message.machine !== undefined) { | ||
exports.MachineUser.encode(message.machine, writer.uint32(58).fork()).ldelim(); | ||
} | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = createBaseUser(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 10) { | ||
break; | ||
} | ||
message.userId = reader.string(); | ||
continue; | ||
case 2: | ||
if (tag !== 16) { | ||
break; | ||
} | ||
message.state = reader.int32(); | ||
continue; | ||
case 3: | ||
if (tag !== 26) { | ||
break; | ||
} | ||
message.username = reader.string(); | ||
continue; | ||
case 4: | ||
if (tag !== 34) { | ||
break; | ||
} | ||
message.loginNames.push(reader.string()); | ||
continue; | ||
case 5: | ||
if (tag !== 42) { | ||
break; | ||
} | ||
message.preferredLoginName = reader.string(); | ||
continue; | ||
case 6: | ||
if (tag !== 50) { | ||
break; | ||
} | ||
message.human = exports.HumanUser.decode(reader, reader.uint32()); | ||
continue; | ||
case 7: | ||
if (tag !== 58) { | ||
break; | ||
} | ||
message.machine = exports.MachineUser.decode(reader, reader.uint32()); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
userId: isSet(object.userId) ? String(object.userId) : "", | ||
state: isSet(object.state) ? userStateFromJSON(object.state) : 0, | ||
username: isSet(object.username) ? String(object.username) : "", | ||
loginNames: Array.isArray(object?.loginNames) ? object.loginNames.map((e) => String(e)) : [], | ||
preferredLoginName: isSet(object.preferredLoginName) ? String(object.preferredLoginName) : "", | ||
human: isSet(object.human) ? exports.HumanUser.fromJSON(object.human) : undefined, | ||
machine: isSet(object.machine) ? exports.MachineUser.fromJSON(object.machine) : undefined, | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
message.userId !== undefined && (obj.userId = message.userId); | ||
message.state !== undefined && (obj.state = userStateToJSON(message.state)); | ||
message.username !== undefined && (obj.username = message.username); | ||
if (message.loginNames) { | ||
obj.loginNames = message.loginNames.map((e) => e); | ||
} | ||
else { | ||
obj.loginNames = []; | ||
} | ||
message.preferredLoginName !== undefined && (obj.preferredLoginName = message.preferredLoginName); | ||
message.human !== undefined && (obj.human = message.human ? exports.HumanUser.toJSON(message.human) : undefined); | ||
message.machine !== undefined && (obj.machine = message.machine ? exports.MachineUser.toJSON(message.machine) : undefined); | ||
return obj; | ||
}, | ||
create(base) { | ||
return exports.User.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseUser(); | ||
message.userId = object.userId ?? ""; | ||
message.state = object.state ?? 0; | ||
message.username = object.username ?? ""; | ||
message.loginNames = object.loginNames?.map((e) => e) || []; | ||
message.preferredLoginName = object.preferredLoginName ?? ""; | ||
message.human = (object.human !== undefined && object.human !== null) | ||
? exports.HumanUser.fromPartial(object.human) | ||
: undefined; | ||
message.machine = (object.machine !== undefined && object.machine !== null) | ||
? exports.MachineUser.fromPartial(object.machine) | ||
: undefined; | ||
return message; | ||
}, | ||
}; | ||
function createBaseMachineUser() { | ||
return { name: "", description: "", hasSecret: false, accessTokenType: 0 }; | ||
} | ||
exports.MachineUser = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
if (message.name !== "") { | ||
writer.uint32(10).string(message.name); | ||
} | ||
if (message.description !== "") { | ||
writer.uint32(18).string(message.description); | ||
} | ||
if (message.hasSecret === true) { | ||
writer.uint32(24).bool(message.hasSecret); | ||
} | ||
if (message.accessTokenType !== 0) { | ||
writer.uint32(32).int32(message.accessTokenType); | ||
} | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = createBaseMachineUser(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 10) { | ||
break; | ||
} | ||
message.name = reader.string(); | ||
continue; | ||
case 2: | ||
if (tag !== 18) { | ||
break; | ||
} | ||
message.description = reader.string(); | ||
continue; | ||
case 3: | ||
if (tag !== 24) { | ||
break; | ||
} | ||
message.hasSecret = reader.bool(); | ||
continue; | ||
case 4: | ||
if (tag !== 32) { | ||
break; | ||
} | ||
message.accessTokenType = reader.int32(); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
name: isSet(object.name) ? String(object.name) : "", | ||
description: isSet(object.description) ? String(object.description) : "", | ||
hasSecret: isSet(object.hasSecret) ? Boolean(object.hasSecret) : false, | ||
accessTokenType: isSet(object.accessTokenType) ? accessTokenTypeFromJSON(object.accessTokenType) : 0, | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
message.name !== undefined && (obj.name = message.name); | ||
message.description !== undefined && (obj.description = message.description); | ||
message.hasSecret !== undefined && (obj.hasSecret = message.hasSecret); | ||
message.accessTokenType !== undefined && (obj.accessTokenType = accessTokenTypeToJSON(message.accessTokenType)); | ||
return obj; | ||
}, | ||
create(base) { | ||
return exports.MachineUser.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseMachineUser(); | ||
message.name = object.name ?? ""; | ||
message.description = object.description ?? ""; | ||
message.hasSecret = object.hasSecret ?? false; | ||
message.accessTokenType = object.accessTokenType ?? 0; | ||
return message; | ||
}, | ||
}; | ||
var tsProtoGlobalThis = (() => { | ||
@@ -587,0 +852,0 @@ if (typeof globalThis !== "undefined") { |
{ | ||
"name": "@zitadel/node", | ||
"version": "1.1.121", | ||
"version": "1.1.122", | ||
"description": "Library for API access to ZITADEL. Provides compiled gRPC service clients and helpers for applications and service accounts.", | ||
@@ -48,3 +48,3 @@ "type": "commonjs", | ||
"dependencies": { | ||
"axios": "1.6.5", | ||
"axios": "1.6.7", | ||
"jose": "5.2.0", | ||
@@ -51,0 +51,0 @@ "long": "5.2.3", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14784207
137
218088
+ Addedaxios@1.6.7(transitive)
- Removedaxios@1.6.5(transitive)
Updatedaxios@1.6.7