diff --git a/keeperapi/package-lock.json b/keeperapi/package-lock.json index 6d97622..e872522 100644 --- a/keeperapi/package-lock.json +++ b/keeperapi/package-lock.json @@ -1,12 +1,12 @@ { "name": "@keeper-security/keeperapi", - "version": "16.0.83", + "version": "16.0.84", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@keeper-security/keeperapi", - "version": "16.0.83", + "version": "16.0.84", "license": "ISC", "dependencies": { "asmcrypto.js": "^2.3.2", diff --git a/keeperapi/package.json b/keeperapi/package.json index 53ac2e3..2e09e26 100644 --- a/keeperapi/package.json +++ b/keeperapi/package.json @@ -1,7 +1,7 @@ { "name": "@keeper-security/keeperapi", "description": "Keeper API Javascript SDK", - "version": "16.0.83", + "version": "16.0.84", "browser": "dist/index.es.js", "main": "dist/index.cjs.js", "types": "dist/node/index.d.ts", diff --git a/keeperapi/src/auth.ts b/keeperapi/src/auth.ts index 7103055..e58c780 100644 --- a/keeperapi/src/auth.ts +++ b/keeperapi/src/auth.ts @@ -80,6 +80,7 @@ export type LoginPayload = { resumeSessionOnly?: boolean givenSessionToken?: string ecOnly?: boolean + fromSessionToken?: Uint8Array | null } export enum UserType { @@ -276,6 +277,7 @@ export class Auth { resumeSessionOnly = false, givenSessionToken = undefined, ecOnly = false, + fromSessionToken = undefined }: Partial ) { this._username = username || this.options.sessionStorage?.lastUsername || '' @@ -321,7 +323,8 @@ export class Auth { messageSessionUid: this.messageSessionUid, loginMethod: loginMethod, cloneCode: await this.options.sessionStorage?.getCloneCode(this.options.host as KeeperEnvironment, this._username), - v2TwoFactorToken: v2TwoFactorToken + v2TwoFactorToken: v2TwoFactorToken, + fromSessionToken, }) if (loginType !== LoginType.NORMAL && !!loginType) { startLoginRequest.loginType = loginType diff --git a/keeperapi/src/proto.d.ts b/keeperapi/src/proto.d.ts index d32079a..1b38b90 100644 --- a/keeperapi/src/proto.d.ts +++ b/keeperapi/src/proto.d.ts @@ -458,6 +458,9 @@ export namespace Authentication { /** DeviceRequest clientFormFactor */ clientFormFactor?: (Authentication.ClientFormFactor|null); + + /** DeviceRequest username */ + username?: (string|null); } /** Represents a DeviceRequest. */ @@ -481,6 +484,9 @@ export namespace Authentication { /** DeviceRequest clientFormFactor. */ public clientFormFactor: Authentication.ClientFormFactor; + /** DeviceRequest username. */ + public username: string; + /** * Creates a new DeviceRequest instance using the specified properties. * @param [properties] Properties to set @@ -4508,6 +4514,139 @@ export namespace Authentication { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeviceUpdateResponse. */ + interface IDeviceUpdateResponse { + + /** DeviceUpdateResponse encryptedDeviceToken */ + encryptedDeviceToken?: (Uint8Array|null); + + /** DeviceUpdateResponse clientVersion */ + clientVersion?: (string|null); + + /** DeviceUpdateResponse deviceName */ + deviceName?: (string|null); + + /** DeviceUpdateResponse devicePublicKey */ + devicePublicKey?: (Uint8Array|null); + + /** DeviceUpdateResponse deviceStatus */ + deviceStatus?: (Authentication.DeviceStatus|null); + + /** DeviceUpdateResponse devicePlatform */ + devicePlatform?: (string|null); + + /** DeviceUpdateResponse clientFormFactor */ + clientFormFactor?: (Authentication.ClientFormFactor|null); + } + + /** Represents a DeviceUpdateResponse. */ + class DeviceUpdateResponse implements IDeviceUpdateResponse { + + /** + * Constructs a new DeviceUpdateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: Authentication.IDeviceUpdateResponse); + + /** DeviceUpdateResponse encryptedDeviceToken. */ + public encryptedDeviceToken: Uint8Array; + + /** DeviceUpdateResponse clientVersion. */ + public clientVersion: string; + + /** DeviceUpdateResponse deviceName. */ + public deviceName: string; + + /** DeviceUpdateResponse devicePublicKey. */ + public devicePublicKey: Uint8Array; + + /** DeviceUpdateResponse deviceStatus. */ + public deviceStatus: Authentication.DeviceStatus; + + /** DeviceUpdateResponse devicePlatform. */ + public devicePlatform: string; + + /** DeviceUpdateResponse clientFormFactor. */ + public clientFormFactor: Authentication.ClientFormFactor; + + /** + * Creates a new DeviceUpdateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeviceUpdateResponse instance + */ + public static create(properties?: Authentication.IDeviceUpdateResponse): Authentication.DeviceUpdateResponse; + + /** + * Encodes the specified DeviceUpdateResponse message. Does not implicitly {@link Authentication.DeviceUpdateResponse.verify|verify} messages. + * @param message DeviceUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: Authentication.IDeviceUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeviceUpdateResponse message, length delimited. Does not implicitly {@link Authentication.DeviceUpdateResponse.verify|verify} messages. + * @param message DeviceUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: Authentication.IDeviceUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeviceUpdateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeviceUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceUpdateResponse; + + /** + * Decodes a DeviceUpdateResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeviceUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.DeviceUpdateResponse; + + /** + * Verifies a DeviceUpdateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeviceUpdateResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeviceUpdateResponse + */ + public static fromObject(object: { [k: string]: any }): Authentication.DeviceUpdateResponse; + + /** + * Creates a plain object from a DeviceUpdateResponse message. Also converts values to other types if specified. + * @param message DeviceUpdateResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Authentication.DeviceUpdateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeviceUpdateResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeviceUpdateResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a RegisterDeviceInRegionRequest. */ interface IRegisterDeviceInRegionRequest { @@ -5645,6 +5784,9 @@ export namespace Authentication { /** SecurityReportIncrementalData oldDataEncryptionType */ oldDataEncryptionType?: (Enterprise.EncryptedKeyType|null); + + /** SecurityReportIncrementalData recordUid */ + recordUid?: (Uint8Array|null); } /** Represents a SecurityReportIncrementalData. */ @@ -5677,6 +5819,9 @@ export namespace Authentication { /** SecurityReportIncrementalData oldDataEncryptionType. */ public oldDataEncryptionType: Enterprise.EncryptedKeyType; + /** SecurityReportIncrementalData recordUid. */ + public recordUid: Uint8Array; + /** * Creates a new SecurityReportIncrementalData instance using the specified properties. * @param [properties] Properties to set @@ -5905,6 +6050,9 @@ export namespace Authentication { /** SecurityReportSaveRequest securityReport */ securityReport?: (Authentication.ISecurityReport[]|null); + + /** SecurityReportSaveRequest continuationToken */ + continuationToken?: (Uint8Array|null); } /** Represents a SecurityReportSaveRequest. */ @@ -5919,6 +6067,9 @@ export namespace Authentication { /** SecurityReportSaveRequest securityReport. */ public securityReport: Authentication.ISecurityReport[]; + /** SecurityReportSaveRequest continuationToken. */ + public continuationToken: Uint8Array; + /** * Creates a new SecurityReportSaveRequest instance using the specified properties. * @param [properties] Properties to set @@ -6117,6 +6268,9 @@ export namespace Authentication { /** SecurityReportResponse enterpriseEccPrivateKey */ enterpriseEccPrivateKey?: (Uint8Array|null); + + /** SecurityReportResponse hasIncrementalData */ + hasIncrementalData?: (boolean|null); } /** Represents a SecurityReportResponse. */ @@ -6149,6 +6303,9 @@ export namespace Authentication { /** SecurityReportResponse enterpriseEccPrivateKey. */ public enterpriseEccPrivateKey: Uint8Array; + /** SecurityReportResponse hasIncrementalData. */ + public hasIncrementalData: boolean; + /** * Creates a new SecurityReportResponse instance using the specified properties. * @param [properties] Properties to set @@ -6227,6 +6384,206 @@ export namespace Authentication { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an IncrementalSecurityDataRequest. */ + interface IIncrementalSecurityDataRequest { + + /** IncrementalSecurityDataRequest continuationToken */ + continuationToken?: (Uint8Array|null); + } + + /** Represents an IncrementalSecurityDataRequest. */ + class IncrementalSecurityDataRequest implements IIncrementalSecurityDataRequest { + + /** + * Constructs a new IncrementalSecurityDataRequest. + * @param [properties] Properties to set + */ + constructor(properties?: Authentication.IIncrementalSecurityDataRequest); + + /** IncrementalSecurityDataRequest continuationToken. */ + public continuationToken: Uint8Array; + + /** + * Creates a new IncrementalSecurityDataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns IncrementalSecurityDataRequest instance + */ + public static create(properties?: Authentication.IIncrementalSecurityDataRequest): Authentication.IncrementalSecurityDataRequest; + + /** + * Encodes the specified IncrementalSecurityDataRequest message. Does not implicitly {@link Authentication.IncrementalSecurityDataRequest.verify|verify} messages. + * @param message IncrementalSecurityDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: Authentication.IIncrementalSecurityDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IncrementalSecurityDataRequest message, length delimited. Does not implicitly {@link Authentication.IncrementalSecurityDataRequest.verify|verify} messages. + * @param message IncrementalSecurityDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: Authentication.IIncrementalSecurityDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IncrementalSecurityDataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IncrementalSecurityDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.IncrementalSecurityDataRequest; + + /** + * Decodes an IncrementalSecurityDataRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IncrementalSecurityDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.IncrementalSecurityDataRequest; + + /** + * Verifies an IncrementalSecurityDataRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an IncrementalSecurityDataRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IncrementalSecurityDataRequest + */ + public static fromObject(object: { [k: string]: any }): Authentication.IncrementalSecurityDataRequest; + + /** + * Creates a plain object from an IncrementalSecurityDataRequest message. Also converts values to other types if specified. + * @param message IncrementalSecurityDataRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Authentication.IncrementalSecurityDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IncrementalSecurityDataRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for IncrementalSecurityDataRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an IncrementalSecurityDataResponse. */ + interface IIncrementalSecurityDataResponse { + + /** IncrementalSecurityDataResponse securityReportIncrementalData */ + securityReportIncrementalData?: (Authentication.ISecurityReportIncrementalData[]|null); + + /** IncrementalSecurityDataResponse continuationToken */ + continuationToken?: (Uint8Array|null); + } + + /** Represents an IncrementalSecurityDataResponse. */ + class IncrementalSecurityDataResponse implements IIncrementalSecurityDataResponse { + + /** + * Constructs a new IncrementalSecurityDataResponse. + * @param [properties] Properties to set + */ + constructor(properties?: Authentication.IIncrementalSecurityDataResponse); + + /** IncrementalSecurityDataResponse securityReportIncrementalData. */ + public securityReportIncrementalData: Authentication.ISecurityReportIncrementalData[]; + + /** IncrementalSecurityDataResponse continuationToken. */ + public continuationToken: Uint8Array; + + /** + * Creates a new IncrementalSecurityDataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns IncrementalSecurityDataResponse instance + */ + public static create(properties?: Authentication.IIncrementalSecurityDataResponse): Authentication.IncrementalSecurityDataResponse; + + /** + * Encodes the specified IncrementalSecurityDataResponse message. Does not implicitly {@link Authentication.IncrementalSecurityDataResponse.verify|verify} messages. + * @param message IncrementalSecurityDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: Authentication.IIncrementalSecurityDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IncrementalSecurityDataResponse message, length delimited. Does not implicitly {@link Authentication.IncrementalSecurityDataResponse.verify|verify} messages. + * @param message IncrementalSecurityDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: Authentication.IIncrementalSecurityDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IncrementalSecurityDataResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IncrementalSecurityDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.IncrementalSecurityDataResponse; + + /** + * Decodes an IncrementalSecurityDataResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IncrementalSecurityDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.IncrementalSecurityDataResponse; + + /** + * Verifies an IncrementalSecurityDataResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an IncrementalSecurityDataResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IncrementalSecurityDataResponse + */ + public static fromObject(object: { [k: string]: any }): Authentication.IncrementalSecurityDataResponse; + + /** + * Creates a plain object from an IncrementalSecurityDataResponse message. Also converts values to other types if specified. + * @param message IncrementalSecurityDataResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Authentication.IncrementalSecurityDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IncrementalSecurityDataResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for IncrementalSecurityDataResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ReusedPasswordsRequest. */ interface IReusedPasswordsRequest { @@ -8750,6 +9107,9 @@ export namespace Authentication { /** DeviceRegistrationRequest clientFormFactor */ clientFormFactor?: (Authentication.ClientFormFactor|null); + + /** DeviceRegistrationRequest username */ + username?: (string|null); } /** Represents a DeviceRegistrationRequest. */ @@ -8776,6 +9136,9 @@ export namespace Authentication { /** DeviceRegistrationRequest clientFormFactor. */ public clientFormFactor: Authentication.ClientFormFactor; + /** DeviceRegistrationRequest username. */ + public username: string; + /** * Creates a new DeviceRegistrationRequest instance using the specified properties. * @param [properties] Properties to set @@ -18620,6 +18983,303 @@ export namespace Authentication { FF_TABLET = 2, FF_WATCH = 3 } + + /** Properties of a TranslationInfo. */ + interface ITranslationInfo { + + /** TranslationInfo translationKey */ + translationKey?: (string|null); + + /** TranslationInfo translationValue */ + translationValue?: (string|null); + } + + /** Represents a TranslationInfo. */ + class TranslationInfo implements ITranslationInfo { + + /** + * Constructs a new TranslationInfo. + * @param [properties] Properties to set + */ + constructor(properties?: Authentication.ITranslationInfo); + + /** TranslationInfo translationKey. */ + public translationKey: string; + + /** TranslationInfo translationValue. */ + public translationValue: string; + + /** + * Creates a new TranslationInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns TranslationInfo instance + */ + public static create(properties?: Authentication.ITranslationInfo): Authentication.TranslationInfo; + + /** + * Encodes the specified TranslationInfo message. Does not implicitly {@link Authentication.TranslationInfo.verify|verify} messages. + * @param message TranslationInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: Authentication.ITranslationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TranslationInfo message, length delimited. Does not implicitly {@link Authentication.TranslationInfo.verify|verify} messages. + * @param message TranslationInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: Authentication.ITranslationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TranslationInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TranslationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TranslationInfo; + + /** + * Decodes a TranslationInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TranslationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TranslationInfo; + + /** + * Verifies a TranslationInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TranslationInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TranslationInfo + */ + public static fromObject(object: { [k: string]: any }): Authentication.TranslationInfo; + + /** + * Creates a plain object from a TranslationInfo message. Also converts values to other types if specified. + * @param message TranslationInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Authentication.TranslationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TranslationInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TranslationInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TranslationRequest. */ + interface ITranslationRequest { + + /** TranslationRequest translationKey */ + translationKey?: (string[]|null); + } + + /** Represents a TranslationRequest. */ + class TranslationRequest implements ITranslationRequest { + + /** + * Constructs a new TranslationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: Authentication.ITranslationRequest); + + /** TranslationRequest translationKey. */ + public translationKey: string[]; + + /** + * Creates a new TranslationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TranslationRequest instance + */ + public static create(properties?: Authentication.ITranslationRequest): Authentication.TranslationRequest; + + /** + * Encodes the specified TranslationRequest message. Does not implicitly {@link Authentication.TranslationRequest.verify|verify} messages. + * @param message TranslationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: Authentication.ITranslationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TranslationRequest message, length delimited. Does not implicitly {@link Authentication.TranslationRequest.verify|verify} messages. + * @param message TranslationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: Authentication.ITranslationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TranslationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TranslationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TranslationRequest; + + /** + * Decodes a TranslationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TranslationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TranslationRequest; + + /** + * Verifies a TranslationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TranslationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TranslationRequest + */ + public static fromObject(object: { [k: string]: any }): Authentication.TranslationRequest; + + /** + * Creates a plain object from a TranslationRequest message. Also converts values to other types if specified. + * @param message TranslationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Authentication.TranslationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TranslationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TranslationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TranslationResponse. */ + interface ITranslationResponse { + + /** TranslationResponse translationInfo */ + translationInfo?: (Authentication.ITranslationInfo[]|null); + } + + /** Represents a TranslationResponse. */ + class TranslationResponse implements ITranslationResponse { + + /** + * Constructs a new TranslationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: Authentication.ITranslationResponse); + + /** TranslationResponse translationInfo. */ + public translationInfo: Authentication.ITranslationInfo[]; + + /** + * Creates a new TranslationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TranslationResponse instance + */ + public static create(properties?: Authentication.ITranslationResponse): Authentication.TranslationResponse; + + /** + * Encodes the specified TranslationResponse message. Does not implicitly {@link Authentication.TranslationResponse.verify|verify} messages. + * @param message TranslationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: Authentication.ITranslationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TranslationResponse message, length delimited. Does not implicitly {@link Authentication.TranslationResponse.verify|verify} messages. + * @param message TranslationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: Authentication.ITranslationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TranslationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TranslationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TranslationResponse; + + /** + * Decodes a TranslationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TranslationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TranslationResponse; + + /** + * Verifies a TranslationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TranslationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TranslationResponse + */ + public static fromObject(object: { [k: string]: any }): Authentication.TranslationResponse; + + /** + * Creates a plain object from a TranslationResponse message. Also converts values to other types if specified. + * @param message TranslationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Authentication.TranslationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TranslationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TranslationResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** Namespace Enterprise. */ @@ -20006,6 +20666,109 @@ export namespace Enterprise { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TeamsByRole. */ + interface ITeamsByRole { + + /** TeamsByRole roleId */ + roleId?: (number|Long|null); + + /** TeamsByRole teamUid */ + teamUid?: (Uint8Array[]|null); + } + + /** Represents a TeamsByRole. */ + class TeamsByRole implements ITeamsByRole { + + /** + * Constructs a new TeamsByRole. + * @param [properties] Properties to set + */ + constructor(properties?: Enterprise.ITeamsByRole); + + /** TeamsByRole roleId. */ + public roleId: (number|Long); + + /** TeamsByRole teamUid. */ + public teamUid: Uint8Array[]; + + /** + * Creates a new TeamsByRole instance using the specified properties. + * @param [properties] Properties to set + * @returns TeamsByRole instance + */ + public static create(properties?: Enterprise.ITeamsByRole): Enterprise.TeamsByRole; + + /** + * Encodes the specified TeamsByRole message. Does not implicitly {@link Enterprise.TeamsByRole.verify|verify} messages. + * @param message TeamsByRole message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: Enterprise.ITeamsByRole, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TeamsByRole message, length delimited. Does not implicitly {@link Enterprise.TeamsByRole.verify|verify} messages. + * @param message TeamsByRole message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: Enterprise.ITeamsByRole, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TeamsByRole message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TeamsByRole + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamsByRole; + + /** + * Decodes a TeamsByRole message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TeamsByRole + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamsByRole; + + /** + * Verifies a TeamsByRole message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TeamsByRole message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TeamsByRole + */ + public static fromObject(object: { [k: string]: any }): Enterprise.TeamsByRole; + + /** + * Creates a plain object from a TeamsByRole message. Also converts values to other types if specified. + * @param message TeamsByRole + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Enterprise.TeamsByRole, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TeamsByRole to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TeamsByRole + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a RoleUserAddKeys. */ interface IRoleUserAddKeys { @@ -20324,7 +21087,8 @@ export namespace Enterprise { PENDING_ENTERPRISE_USER = 4, INVALID_NODE_ID = 5, MAY_NOT_REMOVE_SELF_FROM_ROLE = 6, - MUST_HAVE_ONE_USER_ADMIN = 7 + MUST_HAVE_ONE_USER_ADMIN = 7, + INVALID_ROLE_ID = 8 } /** Properties of a RoleUserAddResult. */ @@ -27133,8 +27897,7 @@ export namespace Enterprise { DEVICES_REQUEST_FOR_ADMIN_APPROVAL = 20, USER_ALIASES = 21, COMPLIANCE_REPORT_CRITERIA_AND_FILTER = 22, - COMPLIANCE_REPORTS = 23, - QUEUED_TEAM_USERS_INCLUDING_PENDING = 24 + COMPLIANCE_REPORTS = 23 } /** CacheStatus enum. */ @@ -34358,6 +35121,424 @@ export namespace Enterprise { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TeamEnterpriseUserRemove. */ + interface ITeamEnterpriseUserRemove { + + /** TeamEnterpriseUserRemove teamUid */ + teamUid?: (Uint8Array|null); + + /** TeamEnterpriseUserRemove enterpriseUserId */ + enterpriseUserId?: (number|Long|null); + } + + /** Represents a TeamEnterpriseUserRemove. */ + class TeamEnterpriseUserRemove implements ITeamEnterpriseUserRemove { + + /** + * Constructs a new TeamEnterpriseUserRemove. + * @param [properties] Properties to set + */ + constructor(properties?: Enterprise.ITeamEnterpriseUserRemove); + + /** TeamEnterpriseUserRemove teamUid. */ + public teamUid: Uint8Array; + + /** TeamEnterpriseUserRemove enterpriseUserId. */ + public enterpriseUserId: (number|Long); + + /** + * Creates a new TeamEnterpriseUserRemove instance using the specified properties. + * @param [properties] Properties to set + * @returns TeamEnterpriseUserRemove instance + */ + public static create(properties?: Enterprise.ITeamEnterpriseUserRemove): Enterprise.TeamEnterpriseUserRemove; + + /** + * Encodes the specified TeamEnterpriseUserRemove message. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemove.verify|verify} messages. + * @param message TeamEnterpriseUserRemove message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: Enterprise.ITeamEnterpriseUserRemove, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TeamEnterpriseUserRemove message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemove.verify|verify} messages. + * @param message TeamEnterpriseUserRemove message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: Enterprise.ITeamEnterpriseUserRemove, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TeamEnterpriseUserRemove message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TeamEnterpriseUserRemove + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamEnterpriseUserRemove; + + /** + * Decodes a TeamEnterpriseUserRemove message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TeamEnterpriseUserRemove + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamEnterpriseUserRemove; + + /** + * Verifies a TeamEnterpriseUserRemove message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TeamEnterpriseUserRemove message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TeamEnterpriseUserRemove + */ + public static fromObject(object: { [k: string]: any }): Enterprise.TeamEnterpriseUserRemove; + + /** + * Creates a plain object from a TeamEnterpriseUserRemove message. Also converts values to other types if specified. + * @param message TeamEnterpriseUserRemove + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Enterprise.TeamEnterpriseUserRemove, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TeamEnterpriseUserRemove to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TeamEnterpriseUserRemove + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TeamEnterpriseUserRemovesRequest. */ + interface ITeamEnterpriseUserRemovesRequest { + + /** TeamEnterpriseUserRemovesRequest teamEnterpriseUserRemove */ + teamEnterpriseUserRemove?: (Enterprise.ITeamEnterpriseUserRemove[]|null); + } + + /** Represents a TeamEnterpriseUserRemovesRequest. */ + class TeamEnterpriseUserRemovesRequest implements ITeamEnterpriseUserRemovesRequest { + + /** + * Constructs a new TeamEnterpriseUserRemovesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: Enterprise.ITeamEnterpriseUserRemovesRequest); + + /** TeamEnterpriseUserRemovesRequest teamEnterpriseUserRemove. */ + public teamEnterpriseUserRemove: Enterprise.ITeamEnterpriseUserRemove[]; + + /** + * Creates a new TeamEnterpriseUserRemovesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TeamEnterpriseUserRemovesRequest instance + */ + public static create(properties?: Enterprise.ITeamEnterpriseUserRemovesRequest): Enterprise.TeamEnterpriseUserRemovesRequest; + + /** + * Encodes the specified TeamEnterpriseUserRemovesRequest message. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemovesRequest.verify|verify} messages. + * @param message TeamEnterpriseUserRemovesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: Enterprise.ITeamEnterpriseUserRemovesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TeamEnterpriseUserRemovesRequest message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemovesRequest.verify|verify} messages. + * @param message TeamEnterpriseUserRemovesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: Enterprise.ITeamEnterpriseUserRemovesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TeamEnterpriseUserRemovesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TeamEnterpriseUserRemovesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamEnterpriseUserRemovesRequest; + + /** + * Decodes a TeamEnterpriseUserRemovesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TeamEnterpriseUserRemovesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamEnterpriseUserRemovesRequest; + + /** + * Verifies a TeamEnterpriseUserRemovesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TeamEnterpriseUserRemovesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TeamEnterpriseUserRemovesRequest + */ + public static fromObject(object: { [k: string]: any }): Enterprise.TeamEnterpriseUserRemovesRequest; + + /** + * Creates a plain object from a TeamEnterpriseUserRemovesRequest message. Also converts values to other types if specified. + * @param message TeamEnterpriseUserRemovesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Enterprise.TeamEnterpriseUserRemovesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TeamEnterpriseUserRemovesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TeamEnterpriseUserRemovesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TeamEnterpriseUserRemovesResponse. */ + interface ITeamEnterpriseUserRemovesResponse { + + /** TeamEnterpriseUserRemovesResponse teamEnterpriseUserRemoveResponse */ + teamEnterpriseUserRemoveResponse?: (Enterprise.ITeamEnterpriseUserRemoveResponse[]|null); + } + + /** Represents a TeamEnterpriseUserRemovesResponse. */ + class TeamEnterpriseUserRemovesResponse implements ITeamEnterpriseUserRemovesResponse { + + /** + * Constructs a new TeamEnterpriseUserRemovesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: Enterprise.ITeamEnterpriseUserRemovesResponse); + + /** TeamEnterpriseUserRemovesResponse teamEnterpriseUserRemoveResponse. */ + public teamEnterpriseUserRemoveResponse: Enterprise.ITeamEnterpriseUserRemoveResponse[]; + + /** + * Creates a new TeamEnterpriseUserRemovesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TeamEnterpriseUserRemovesResponse instance + */ + public static create(properties?: Enterprise.ITeamEnterpriseUserRemovesResponse): Enterprise.TeamEnterpriseUserRemovesResponse; + + /** + * Encodes the specified TeamEnterpriseUserRemovesResponse message. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemovesResponse.verify|verify} messages. + * @param message TeamEnterpriseUserRemovesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: Enterprise.ITeamEnterpriseUserRemovesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TeamEnterpriseUserRemovesResponse message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemovesResponse.verify|verify} messages. + * @param message TeamEnterpriseUserRemovesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: Enterprise.ITeamEnterpriseUserRemovesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TeamEnterpriseUserRemovesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TeamEnterpriseUserRemovesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamEnterpriseUserRemovesResponse; + + /** + * Decodes a TeamEnterpriseUserRemovesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TeamEnterpriseUserRemovesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamEnterpriseUserRemovesResponse; + + /** + * Verifies a TeamEnterpriseUserRemovesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TeamEnterpriseUserRemovesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TeamEnterpriseUserRemovesResponse + */ + public static fromObject(object: { [k: string]: any }): Enterprise.TeamEnterpriseUserRemovesResponse; + + /** + * Creates a plain object from a TeamEnterpriseUserRemovesResponse message. Also converts values to other types if specified. + * @param message TeamEnterpriseUserRemovesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Enterprise.TeamEnterpriseUserRemovesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TeamEnterpriseUserRemovesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TeamEnterpriseUserRemovesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TeamEnterpriseUserRemoveResponse. */ + interface ITeamEnterpriseUserRemoveResponse { + + /** TeamEnterpriseUserRemoveResponse teamEnterpriseUserRemove */ + teamEnterpriseUserRemove?: (Enterprise.ITeamEnterpriseUserRemove|null); + + /** TeamEnterpriseUserRemoveResponse success */ + success?: (boolean|null); + + /** TeamEnterpriseUserRemoveResponse resultCode */ + resultCode?: (string|null); + + /** TeamEnterpriseUserRemoveResponse message */ + message?: (string|null); + + /** TeamEnterpriseUserRemoveResponse additionalInfo */ + additionalInfo?: (string|null); + } + + /** Represents a TeamEnterpriseUserRemoveResponse. */ + class TeamEnterpriseUserRemoveResponse implements ITeamEnterpriseUserRemoveResponse { + + /** + * Constructs a new TeamEnterpriseUserRemoveResponse. + * @param [properties] Properties to set + */ + constructor(properties?: Enterprise.ITeamEnterpriseUserRemoveResponse); + + /** TeamEnterpriseUserRemoveResponse teamEnterpriseUserRemove. */ + public teamEnterpriseUserRemove?: (Enterprise.ITeamEnterpriseUserRemove|null); + + /** TeamEnterpriseUserRemoveResponse success. */ + public success: boolean; + + /** TeamEnterpriseUserRemoveResponse resultCode. */ + public resultCode: string; + + /** TeamEnterpriseUserRemoveResponse message. */ + public message: string; + + /** TeamEnterpriseUserRemoveResponse additionalInfo. */ + public additionalInfo: string; + + /** + * Creates a new TeamEnterpriseUserRemoveResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TeamEnterpriseUserRemoveResponse instance + */ + public static create(properties?: Enterprise.ITeamEnterpriseUserRemoveResponse): Enterprise.TeamEnterpriseUserRemoveResponse; + + /** + * Encodes the specified TeamEnterpriseUserRemoveResponse message. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemoveResponse.verify|verify} messages. + * @param message TeamEnterpriseUserRemoveResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: Enterprise.ITeamEnterpriseUserRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TeamEnterpriseUserRemoveResponse message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemoveResponse.verify|verify} messages. + * @param message TeamEnterpriseUserRemoveResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: Enterprise.ITeamEnterpriseUserRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TeamEnterpriseUserRemoveResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TeamEnterpriseUserRemoveResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamEnterpriseUserRemoveResponse; + + /** + * Decodes a TeamEnterpriseUserRemoveResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TeamEnterpriseUserRemoveResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamEnterpriseUserRemoveResponse; + + /** + * Verifies a TeamEnterpriseUserRemoveResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TeamEnterpriseUserRemoveResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TeamEnterpriseUserRemoveResponse + */ + public static fromObject(object: { [k: string]: any }): Enterprise.TeamEnterpriseUserRemoveResponse; + + /** + * Creates a plain object from a TeamEnterpriseUserRemoveResponse message. Also converts values to other types if specified. + * @param message TeamEnterpriseUserRemoveResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Enterprise.TeamEnterpriseUserRemoveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TeamEnterpriseUserRemoveResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TeamEnterpriseUserRemoveResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DomainAlias. */ interface IDomainAlias { @@ -37071,6 +38252,9 @@ export namespace AccountSummary { /** License isPamEnabled */ isPamEnabled?: (boolean|null); + + /** License isKsmEnabled */ + isKsmEnabled?: (boolean|null); } /** Represents a License. */ @@ -37181,6 +38365,9 @@ export namespace AccountSummary { /** License isPamEnabled. */ public isPamEnabled: boolean; + /** License isKsmEnabled. */ + public isKsmEnabled: boolean; + /** * Creates a new License instance using the specified properties. * @param [properties] Properties to set @@ -38986,7 +40173,8 @@ export namespace Automator { */ enum SsoAuthenticationProtocolType { UNKNOWN_PROTOCOL = 0, - SAML2 = 1 + SAML2 = 1, + JWT = 2 } /** CertificateFormat enum. */ @@ -43709,7 +44897,8 @@ export namespace SsoCloud { /** Authentication protocols we support. */ enum AuthProtocolType { - SAML2 = 0 + SAML2 = 0, + JWT = 1 } /** Datatypes of SsoCloudSettings */ @@ -54819,6 +56008,12 @@ export namespace Tokens { /** VaultSyncDownContinuationToken notificationSyncPoint */ notificationSyncPoint?: (number|Long|null); + + /** VaultSyncDownContinuationToken skipUserRevision */ + skipUserRevision?: (boolean|null); + + /** VaultSyncDownContinuationToken multiPageIncrementalClientVersion */ + multiPageIncrementalClientVersion?: (number|null); } /** Represents a VaultSyncDownContinuationToken. */ @@ -54863,6 +56058,12 @@ export namespace Tokens { /** VaultSyncDownContinuationToken notificationSyncPoint. */ public notificationSyncPoint: (number|Long); + /** VaultSyncDownContinuationToken skipUserRevision. */ + public skipUserRevision: boolean; + + /** VaultSyncDownContinuationToken multiPageIncrementalClientVersion. */ + public multiPageIncrementalClientVersion: number; + /** * Creates a new VaultSyncDownContinuationToken instance using the specified properties. * @param [properties] Properties to set @@ -56715,6 +57916,109 @@ export namespace Tokens { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a KeyCloakToken. */ + interface IKeyCloakToken { + + /** KeyCloakToken email */ + email?: (string|null); + + /** KeyCloakToken groups */ + groups?: (string[]|null); + } + + /** Represents a KeyCloakToken. */ + class KeyCloakToken implements IKeyCloakToken { + + /** + * Constructs a new KeyCloakToken. + * @param [properties] Properties to set + */ + constructor(properties?: Tokens.IKeyCloakToken); + + /** KeyCloakToken email. */ + public email: string; + + /** KeyCloakToken groups. */ + public groups: string[]; + + /** + * Creates a new KeyCloakToken instance using the specified properties. + * @param [properties] Properties to set + * @returns KeyCloakToken instance + */ + public static create(properties?: Tokens.IKeyCloakToken): Tokens.KeyCloakToken; + + /** + * Encodes the specified KeyCloakToken message. Does not implicitly {@link Tokens.KeyCloakToken.verify|verify} messages. + * @param message KeyCloakToken message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: Tokens.IKeyCloakToken, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified KeyCloakToken message, length delimited. Does not implicitly {@link Tokens.KeyCloakToken.verify|verify} messages. + * @param message KeyCloakToken message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: Tokens.IKeyCloakToken, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a KeyCloakToken message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KeyCloakToken + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.KeyCloakToken; + + /** + * Decodes a KeyCloakToken message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns KeyCloakToken + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.KeyCloakToken; + + /** + * Verifies a KeyCloakToken message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a KeyCloakToken message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns KeyCloakToken + */ + public static fromObject(object: { [k: string]: any }): Tokens.KeyCloakToken; + + /** + * Creates a plain object from a KeyCloakToken message. Also converts values to other types if specified. + * @param message KeyCloakToken + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Tokens.KeyCloakToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this KeyCloakToken to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for KeyCloakToken + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a IPWhiteList. */ interface IIPWhiteList { @@ -56811,6 +58115,115 @@ export namespace Tokens { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** Properties of an IncrementalSecurityDataContToken. */ + interface IIncrementalSecurityDataContToken { + + /** IncrementalSecurityDataContToken enterpriseUserIdUpToSave */ + enterpriseUserIdUpToSave?: (number|Long|null); + + /** IncrementalSecurityDataContToken revisionUpToSave */ + revisionUpToSave?: (number|Long|null); + + /** IncrementalSecurityDataContToken recordUidUpToSave */ + recordUidUpToSave?: (Uint8Array|null); + } + + /** Represents an IncrementalSecurityDataContToken. */ + class IncrementalSecurityDataContToken implements IIncrementalSecurityDataContToken { + + /** + * Constructs a new IncrementalSecurityDataContToken. + * @param [properties] Properties to set + */ + constructor(properties?: Tokens.IIncrementalSecurityDataContToken); + + /** IncrementalSecurityDataContToken enterpriseUserIdUpToSave. */ + public enterpriseUserIdUpToSave: (number|Long); + + /** IncrementalSecurityDataContToken revisionUpToSave. */ + public revisionUpToSave: (number|Long); + + /** IncrementalSecurityDataContToken recordUidUpToSave. */ + public recordUidUpToSave: Uint8Array; + + /** + * Creates a new IncrementalSecurityDataContToken instance using the specified properties. + * @param [properties] Properties to set + * @returns IncrementalSecurityDataContToken instance + */ + public static create(properties?: Tokens.IIncrementalSecurityDataContToken): Tokens.IncrementalSecurityDataContToken; + + /** + * Encodes the specified IncrementalSecurityDataContToken message. Does not implicitly {@link Tokens.IncrementalSecurityDataContToken.verify|verify} messages. + * @param message IncrementalSecurityDataContToken message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: Tokens.IIncrementalSecurityDataContToken, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IncrementalSecurityDataContToken message, length delimited. Does not implicitly {@link Tokens.IncrementalSecurityDataContToken.verify|verify} messages. + * @param message IncrementalSecurityDataContToken message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: Tokens.IIncrementalSecurityDataContToken, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IncrementalSecurityDataContToken message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IncrementalSecurityDataContToken + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.IncrementalSecurityDataContToken; + + /** + * Decodes an IncrementalSecurityDataContToken message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IncrementalSecurityDataContToken + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.IncrementalSecurityDataContToken; + + /** + * Verifies an IncrementalSecurityDataContToken message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an IncrementalSecurityDataContToken message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IncrementalSecurityDataContToken + */ + public static fromObject(object: { [k: string]: any }): Tokens.IncrementalSecurityDataContToken; + + /** + * Creates a plain object from an IncrementalSecurityDataContToken message. Also converts values to other types if specified. + * @param message IncrementalSecurityDataContToken + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Tokens.IncrementalSecurityDataContToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IncrementalSecurityDataContToken to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for IncrementalSecurityDataContToken + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** Namespace ExternalService. */ @@ -74565,6 +75978,9 @@ export namespace Vault { /** BreachWatchSecurityData revision */ revision?: (number|Long|null); + + /** BreachWatchSecurityData removed */ + removed?: (boolean|null); } /** Represents a BreachWatchSecurityData. */ @@ -74582,6 +75998,9 @@ export namespace Vault { /** BreachWatchSecurityData revision. */ public revision: (number|Long); + /** BreachWatchSecurityData removed. */ + public removed: boolean; + /** * Creates a new BreachWatchSecurityData instance using the specified properties. * @param [properties] Properties to set @@ -76235,7 +77654,8 @@ export namespace NotificationCenter { NT_APPROVAL_REQUEST = 9, NT_APPROVED_RESPONSE = 10, NT_DENIED_RESPONSE = 11, - NT_2FA_CONFIGURED = 12 + NT_2FA_CONFIGURED = 12, + NT_SHARE_APPROVAL_DENIED = 13 } /** NotificationReadStatus enum. */ @@ -76618,6 +78038,9 @@ export namespace NotificationCenter { /** NotificationContent approvalStatus */ approvalStatus?: (NotificationCenter.NotificationApprovalStatus|null); + /** NotificationContent trimmingPoint */ + trimmingPoint?: (boolean|null); + /** NotificationContent clientTypeIDs */ clientTypeIDs?: (number[]|null); @@ -76643,6 +78066,9 @@ export namespace NotificationCenter { /** NotificationContent approvalStatus. */ public approvalStatus?: (NotificationCenter.NotificationApprovalStatus|null); + /** NotificationContent trimmingPoint. */ + public trimmingPoint?: (boolean|null); + /** NotificationContent clientTypeIDs. */ public clientTypeIDs: number[]; @@ -76650,7 +78076,7 @@ export namespace NotificationCenter { public deviceIDs: (number|Long)[]; /** NotificationContent type. */ - public type?: ("notification"|"readStatus"|"approvalStatus"); + public type?: ("notification"|"readStatus"|"approvalStatus"|"trimmingPoint"); /** * Creates a new NotificationContent instance using the specified properties. @@ -79792,7 +81218,10 @@ export namespace BI { MC_BUSINESS = 2, MC_BUSINESS_PLUS = 3, MC_ENTERPRISE = 4, - MC_ENTERPRISE_PLUS = 5 + MC_ENTERPRISE_PLUS = 5, + B2B_BUSINESS_STARTER = 6, + B2B_BUSINESS = 7, + B2B_ENTERPRISE = 8 } } @@ -81368,7 +82797,11 @@ export namespace BI { MONTH = 1, USER_MONTH = 2, USER_CONSUMED_MONTH = 3, - ENDPOINT_MONTH = 4 + ENDPOINT_MONTH = 4, + USER_YEAR = 5, + USER_CONSUMED_YEAR = 6, + YEAR = 7, + ENDPOINT_YEAR = 8 } } @@ -84961,7 +86394,9 @@ export namespace BI { TRACKING_POPUP_ACCEPTED = 2, TRACKING_POPUP_DISMISSED = 3, TRACKING_POPUP_PAID = 4, - TRACKING_PUSH_CLICKED = 5 + TRACKING_PUSH_CLICKED = 5, + CONSOLE_ACTION = 6, + VAULT_ACTION = 7 } /** Properties of an EventRequest. */ @@ -86297,6 +87732,859 @@ export namespace BI { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** Properties of an EnterpriseBasePlan. */ + interface IEnterpriseBasePlan { + + /** EnterpriseBasePlan baseplanVersion */ + baseplanVersion?: (BI.EnterpriseBasePlan.EnterpriseBasePlanVersion|null); + + /** EnterpriseBasePlan cost */ + cost?: (BI.ICost|null); + } + + /** Represents an EnterpriseBasePlan. */ + class EnterpriseBasePlan implements IEnterpriseBasePlan { + + /** + * Constructs a new EnterpriseBasePlan. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IEnterpriseBasePlan); + + /** EnterpriseBasePlan baseplanVersion. */ + public baseplanVersion: BI.EnterpriseBasePlan.EnterpriseBasePlanVersion; + + /** EnterpriseBasePlan cost. */ + public cost?: (BI.ICost|null); + + /** + * Creates a new EnterpriseBasePlan instance using the specified properties. + * @param [properties] Properties to set + * @returns EnterpriseBasePlan instance + */ + public static create(properties?: BI.IEnterpriseBasePlan): BI.EnterpriseBasePlan; + + /** + * Encodes the specified EnterpriseBasePlan message. Does not implicitly {@link BI.EnterpriseBasePlan.verify|verify} messages. + * @param message EnterpriseBasePlan message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.IEnterpriseBasePlan, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnterpriseBasePlan message, length delimited. Does not implicitly {@link BI.EnterpriseBasePlan.verify|verify} messages. + * @param message EnterpriseBasePlan message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: BI.IEnterpriseBasePlan, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnterpriseBasePlan message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnterpriseBasePlan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.EnterpriseBasePlan; + + /** + * Decodes an EnterpriseBasePlan message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnterpriseBasePlan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.EnterpriseBasePlan; + + /** + * Verifies an EnterpriseBasePlan message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EnterpriseBasePlan message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnterpriseBasePlan + */ + public static fromObject(object: { [k: string]: any }): BI.EnterpriseBasePlan; + + /** + * Creates a plain object from an EnterpriseBasePlan message. Also converts values to other types if specified. + * @param message EnterpriseBasePlan + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.EnterpriseBasePlan, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnterpriseBasePlan to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnterpriseBasePlan + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace EnterpriseBasePlan { + + /** EnterpriseBasePlanVersion enum. */ + enum EnterpriseBasePlanVersion { + UNKNOWN = 0, + BUSINESS_STARTER = 1, + BUSINESS = 2, + ENTERPRISE = 3 + } + } + + /** Properties of a SubscriptionEnterprisePricingRequest. */ + interface ISubscriptionEnterprisePricingRequest { + } + + /** Represents a SubscriptionEnterprisePricingRequest. */ + class SubscriptionEnterprisePricingRequest implements ISubscriptionEnterprisePricingRequest { + + /** + * Constructs a new SubscriptionEnterprisePricingRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISubscriptionEnterprisePricingRequest); + + /** + * Creates a new SubscriptionEnterprisePricingRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SubscriptionEnterprisePricingRequest instance + */ + public static create(properties?: BI.ISubscriptionEnterprisePricingRequest): BI.SubscriptionEnterprisePricingRequest; + + /** + * Encodes the specified SubscriptionEnterprisePricingRequest message. Does not implicitly {@link BI.SubscriptionEnterprisePricingRequest.verify|verify} messages. + * @param message SubscriptionEnterprisePricingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.ISubscriptionEnterprisePricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SubscriptionEnterprisePricingRequest message, length delimited. Does not implicitly {@link BI.SubscriptionEnterprisePricingRequest.verify|verify} messages. + * @param message SubscriptionEnterprisePricingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: BI.ISubscriptionEnterprisePricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SubscriptionEnterprisePricingRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SubscriptionEnterprisePricingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionEnterprisePricingRequest; + + /** + * Decodes a SubscriptionEnterprisePricingRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SubscriptionEnterprisePricingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SubscriptionEnterprisePricingRequest; + + /** + * Verifies a SubscriptionEnterprisePricingRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SubscriptionEnterprisePricingRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SubscriptionEnterprisePricingRequest + */ + public static fromObject(object: { [k: string]: any }): BI.SubscriptionEnterprisePricingRequest; + + /** + * Creates a plain object from a SubscriptionEnterprisePricingRequest message. Also converts values to other types if specified. + * @param message SubscriptionEnterprisePricingRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.SubscriptionEnterprisePricingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SubscriptionEnterprisePricingRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SubscriptionEnterprisePricingRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SubscriptionEnterprisePricingResponse. */ + interface ISubscriptionEnterprisePricingResponse { + + /** SubscriptionEnterprisePricingResponse basePlans */ + basePlans?: (BI.IEnterpriseBasePlan[]|null); + + /** SubscriptionEnterprisePricingResponse addons */ + addons?: (BI.IAddon[]|null); + + /** SubscriptionEnterprisePricingResponse filePlans */ + filePlans?: (BI.IFilePlan[]|null); + } + + /** Represents a SubscriptionEnterprisePricingResponse. */ + class SubscriptionEnterprisePricingResponse implements ISubscriptionEnterprisePricingResponse { + + /** + * Constructs a new SubscriptionEnterprisePricingResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISubscriptionEnterprisePricingResponse); + + /** SubscriptionEnterprisePricingResponse basePlans. */ + public basePlans: BI.IEnterpriseBasePlan[]; + + /** SubscriptionEnterprisePricingResponse addons. */ + public addons: BI.IAddon[]; + + /** SubscriptionEnterprisePricingResponse filePlans. */ + public filePlans: BI.IFilePlan[]; + + /** + * Creates a new SubscriptionEnterprisePricingResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SubscriptionEnterprisePricingResponse instance + */ + public static create(properties?: BI.ISubscriptionEnterprisePricingResponse): BI.SubscriptionEnterprisePricingResponse; + + /** + * Encodes the specified SubscriptionEnterprisePricingResponse message. Does not implicitly {@link BI.SubscriptionEnterprisePricingResponse.verify|verify} messages. + * @param message SubscriptionEnterprisePricingResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.ISubscriptionEnterprisePricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SubscriptionEnterprisePricingResponse message, length delimited. Does not implicitly {@link BI.SubscriptionEnterprisePricingResponse.verify|verify} messages. + * @param message SubscriptionEnterprisePricingResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: BI.ISubscriptionEnterprisePricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SubscriptionEnterprisePricingResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SubscriptionEnterprisePricingResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionEnterprisePricingResponse; + + /** + * Decodes a SubscriptionEnterprisePricingResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SubscriptionEnterprisePricingResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SubscriptionEnterprisePricingResponse; + + /** + * Verifies a SubscriptionEnterprisePricingResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SubscriptionEnterprisePricingResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SubscriptionEnterprisePricingResponse + */ + public static fromObject(object: { [k: string]: any }): BI.SubscriptionEnterprisePricingResponse; + + /** + * Creates a plain object from a SubscriptionEnterprisePricingResponse message. Also converts values to other types if specified. + * @param message SubscriptionEnterprisePricingResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.SubscriptionEnterprisePricingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SubscriptionEnterprisePricingResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SubscriptionEnterprisePricingResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** IdentifierType enum. */ + enum IdentifierType { + UNKNOWN_IDENTIFIER_TYPE = 0, + IOS_ID = 1, + ANDROID_GOOGLE_PLAY_ID = 2, + ANDROID_APP_SET_ID = 3, + ANDROID_ID = 4, + AMAZON_ADVERTISING_ID = 5, + OPEN_ADVERTISING_ID = 6, + SINGULAR_DEVICE_ID = 7, + CLIENT_DEFINED_ID = 8 + } + + /** Properties of a SingularDeviceIdentifier. */ + interface ISingularDeviceIdentifier { + + /** SingularDeviceIdentifier id */ + id?: (string|null); + + /** SingularDeviceIdentifier idType */ + idType?: (BI.IdentifierType|null); + } + + /** Represents a SingularDeviceIdentifier. */ + class SingularDeviceIdentifier implements ISingularDeviceIdentifier { + + /** + * Constructs a new SingularDeviceIdentifier. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISingularDeviceIdentifier); + + /** SingularDeviceIdentifier id. */ + public id: string; + + /** SingularDeviceIdentifier idType. */ + public idType: BI.IdentifierType; + + /** + * Creates a new SingularDeviceIdentifier instance using the specified properties. + * @param [properties] Properties to set + * @returns SingularDeviceIdentifier instance + */ + public static create(properties?: BI.ISingularDeviceIdentifier): BI.SingularDeviceIdentifier; + + /** + * Encodes the specified SingularDeviceIdentifier message. Does not implicitly {@link BI.SingularDeviceIdentifier.verify|verify} messages. + * @param message SingularDeviceIdentifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.ISingularDeviceIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SingularDeviceIdentifier message, length delimited. Does not implicitly {@link BI.SingularDeviceIdentifier.verify|verify} messages. + * @param message SingularDeviceIdentifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: BI.ISingularDeviceIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SingularDeviceIdentifier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SingularDeviceIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SingularDeviceIdentifier; + + /** + * Decodes a SingularDeviceIdentifier message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SingularDeviceIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SingularDeviceIdentifier; + + /** + * Verifies a SingularDeviceIdentifier message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SingularDeviceIdentifier message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SingularDeviceIdentifier + */ + public static fromObject(object: { [k: string]: any }): BI.SingularDeviceIdentifier; + + /** + * Creates a plain object from a SingularDeviceIdentifier message. Also converts values to other types if specified. + * @param message SingularDeviceIdentifier + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.SingularDeviceIdentifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SingularDeviceIdentifier to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SingularDeviceIdentifier + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SingularSharedData. */ + interface ISingularSharedData { + + /** SingularSharedData platform */ + platform?: (string|null); + + /** SingularSharedData osVersion */ + osVersion?: (string|null); + + /** SingularSharedData make */ + make?: (string|null); + + /** SingularSharedData model */ + model?: (string|null); + + /** SingularSharedData locale */ + locale?: (string|null); + + /** SingularSharedData build */ + build?: (string|null); + + /** SingularSharedData appIdentifier */ + appIdentifier?: (string|null); + + /** SingularSharedData attAuthorizationStatus */ + attAuthorizationStatus?: (number|null); + } + + /** Represents a SingularSharedData. */ + class SingularSharedData implements ISingularSharedData { + + /** + * Constructs a new SingularSharedData. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISingularSharedData); + + /** SingularSharedData platform. */ + public platform: string; + + /** SingularSharedData osVersion. */ + public osVersion: string; + + /** SingularSharedData make. */ + public make: string; + + /** SingularSharedData model. */ + public model: string; + + /** SingularSharedData locale. */ + public locale: string; + + /** SingularSharedData build. */ + public build: string; + + /** SingularSharedData appIdentifier. */ + public appIdentifier: string; + + /** SingularSharedData attAuthorizationStatus. */ + public attAuthorizationStatus: number; + + /** + * Creates a new SingularSharedData instance using the specified properties. + * @param [properties] Properties to set + * @returns SingularSharedData instance + */ + public static create(properties?: BI.ISingularSharedData): BI.SingularSharedData; + + /** + * Encodes the specified SingularSharedData message. Does not implicitly {@link BI.SingularSharedData.verify|verify} messages. + * @param message SingularSharedData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.ISingularSharedData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SingularSharedData message, length delimited. Does not implicitly {@link BI.SingularSharedData.verify|verify} messages. + * @param message SingularSharedData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: BI.ISingularSharedData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SingularSharedData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SingularSharedData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SingularSharedData; + + /** + * Decodes a SingularSharedData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SingularSharedData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SingularSharedData; + + /** + * Verifies a SingularSharedData message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SingularSharedData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SingularSharedData + */ + public static fromObject(object: { [k: string]: any }): BI.SingularSharedData; + + /** + * Creates a plain object from a SingularSharedData message. Also converts values to other types if specified. + * @param message SingularSharedData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.SingularSharedData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SingularSharedData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SingularSharedData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SingularSessionRequest. */ + interface ISingularSessionRequest { + + /** SingularSessionRequest deviceIdentifiers */ + deviceIdentifiers?: (BI.ISingularDeviceIdentifier[]|null); + + /** SingularSessionRequest sharedData */ + sharedData?: (BI.ISingularSharedData|null); + + /** SingularSessionRequest applicationVersion */ + applicationVersion?: (string|null); + + /** SingularSessionRequest install */ + install?: (boolean|null); + + /** SingularSessionRequest installTime */ + installTime?: (number|Long|null); + + /** SingularSessionRequest updateTime */ + updateTime?: (number|Long|null); + + /** SingularSessionRequest installSource */ + installSource?: (string|null); + + /** SingularSessionRequest installReceipt */ + installReceipt?: (string|null); + + /** SingularSessionRequest openuri */ + openuri?: (string|null); + + /** SingularSessionRequest ddlEnabled */ + ddlEnabled?: (boolean|null); + + /** SingularSessionRequest singularLinkResolveRequired */ + singularLinkResolveRequired?: (boolean|null); + + /** SingularSessionRequest installRef */ + installRef?: (string|null); + + /** SingularSessionRequest metaRef */ + metaRef?: (string|null); + + /** SingularSessionRequest attributionToken */ + attributionToken?: (string|null); + } + + /** Represents a SingularSessionRequest. */ + class SingularSessionRequest implements ISingularSessionRequest { + + /** + * Constructs a new SingularSessionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISingularSessionRequest); + + /** SingularSessionRequest deviceIdentifiers. */ + public deviceIdentifiers: BI.ISingularDeviceIdentifier[]; + + /** SingularSessionRequest sharedData. */ + public sharedData?: (BI.ISingularSharedData|null); + + /** SingularSessionRequest applicationVersion. */ + public applicationVersion: string; + + /** SingularSessionRequest install. */ + public install: boolean; + + /** SingularSessionRequest installTime. */ + public installTime: (number|Long); + + /** SingularSessionRequest updateTime. */ + public updateTime: (number|Long); + + /** SingularSessionRequest installSource. */ + public installSource: string; + + /** SingularSessionRequest installReceipt. */ + public installReceipt: string; + + /** SingularSessionRequest openuri. */ + public openuri: string; + + /** SingularSessionRequest ddlEnabled. */ + public ddlEnabled: boolean; + + /** SingularSessionRequest singularLinkResolveRequired. */ + public singularLinkResolveRequired: boolean; + + /** SingularSessionRequest installRef. */ + public installRef: string; + + /** SingularSessionRequest metaRef. */ + public metaRef: string; + + /** SingularSessionRequest attributionToken. */ + public attributionToken: string; + + /** + * Creates a new SingularSessionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SingularSessionRequest instance + */ + public static create(properties?: BI.ISingularSessionRequest): BI.SingularSessionRequest; + + /** + * Encodes the specified SingularSessionRequest message. Does not implicitly {@link BI.SingularSessionRequest.verify|verify} messages. + * @param message SingularSessionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.ISingularSessionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SingularSessionRequest message, length delimited. Does not implicitly {@link BI.SingularSessionRequest.verify|verify} messages. + * @param message SingularSessionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: BI.ISingularSessionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SingularSessionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SingularSessionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SingularSessionRequest; + + /** + * Decodes a SingularSessionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SingularSessionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SingularSessionRequest; + + /** + * Verifies a SingularSessionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SingularSessionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SingularSessionRequest + */ + public static fromObject(object: { [k: string]: any }): BI.SingularSessionRequest; + + /** + * Creates a plain object from a SingularSessionRequest message. Also converts values to other types if specified. + * @param message SingularSessionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.SingularSessionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SingularSessionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SingularSessionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SingularEventRequest. */ + interface ISingularEventRequest { + + /** SingularEventRequest deviceIdentifiers */ + deviceIdentifiers?: (BI.ISingularDeviceIdentifier[]|null); + + /** SingularEventRequest sharedData */ + sharedData?: (BI.ISingularSharedData|null); + + /** SingularEventRequest eventName */ + eventName?: (string|null); + } + + /** Represents a SingularEventRequest. */ + class SingularEventRequest implements ISingularEventRequest { + + /** + * Constructs a new SingularEventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISingularEventRequest); + + /** SingularEventRequest deviceIdentifiers. */ + public deviceIdentifiers: BI.ISingularDeviceIdentifier[]; + + /** SingularEventRequest sharedData. */ + public sharedData?: (BI.ISingularSharedData|null); + + /** SingularEventRequest eventName. */ + public eventName: string; + + /** + * Creates a new SingularEventRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SingularEventRequest instance + */ + public static create(properties?: BI.ISingularEventRequest): BI.SingularEventRequest; + + /** + * Encodes the specified SingularEventRequest message. Does not implicitly {@link BI.SingularEventRequest.verify|verify} messages. + * @param message SingularEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.ISingularEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SingularEventRequest message, length delimited. Does not implicitly {@link BI.SingularEventRequest.verify|verify} messages. + * @param message SingularEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: BI.ISingularEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SingularEventRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SingularEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SingularEventRequest; + + /** + * Decodes a SingularEventRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SingularEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SingularEventRequest; + + /** + * Verifies a SingularEventRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SingularEventRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SingularEventRequest + */ + public static fromObject(object: { [k: string]: any }): BI.SingularEventRequest; + + /** + * Creates a plain object from a SingularEventRequest message. Also converts values to other types if specified. + * @param message SingularEventRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.SingularEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SingularEventRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SingularEventRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** Namespace google. */ diff --git a/keeperapi/src/proto.js b/keeperapi/src/proto.js index abef51f..4687e46 100644 --- a/keeperapi/src/proto.js +++ b/keeperapi/src/proto.js @@ -1127,6 +1127,7 @@ export const Authentication = $root.Authentication = (() => { * @property {string|null} [deviceName] DeviceRequest deviceName * @property {string|null} [devicePlatform] DeviceRequest devicePlatform * @property {Authentication.ClientFormFactor|null} [clientFormFactor] DeviceRequest clientFormFactor + * @property {string|null} [username] DeviceRequest username */ /** @@ -1176,6 +1177,14 @@ export const Authentication = $root.Authentication = (() => { */ DeviceRequest.prototype.clientFormFactor = 0; + /** + * DeviceRequest username. + * @member {string} username + * @memberof Authentication.DeviceRequest + * @instance + */ + DeviceRequest.prototype.username = ""; + /** * Creates a new DeviceRequest instance using the specified properties. * @function create @@ -1208,6 +1217,8 @@ export const Authentication = $root.Authentication = (() => { writer.uint32(/* id 3, wireType 2 =*/26).string(message.devicePlatform); if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, "clientFormFactor")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.clientFormFactor); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.username); return writer; }; @@ -1258,6 +1269,10 @@ export const Authentication = $root.Authentication = (() => { message.clientFormFactor = reader.int32(); break; } + case 5: { + message.username = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -1312,6 +1327,9 @@ export const Authentication = $root.Authentication = (() => { case 3: break; } + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; return null; }; @@ -1357,6 +1375,8 @@ export const Authentication = $root.Authentication = (() => { message.clientFormFactor = 3; break; } + if (object.username != null) + message.username = String(object.username); return message; }; @@ -1378,6 +1398,7 @@ export const Authentication = $root.Authentication = (() => { object.deviceName = ""; object.devicePlatform = ""; object.clientFormFactor = options.enums === String ? "FF_EMPTY" : 0; + object.username = ""; } if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) object.clientVersion = message.clientVersion; @@ -1387,6 +1408,8 @@ export const Authentication = $root.Authentication = (() => { object.devicePlatform = message.devicePlatform; if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) object.clientFormFactor = options.enums === String ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined ? message.clientFormFactor : $root.Authentication.ClientFormFactor[message.clientFormFactor] : message.clientFormFactor; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; return object; }; @@ -12588,6 +12611,424 @@ export const Authentication = $root.Authentication = (() => { return DeviceUpdateRequest; })(); + Authentication.DeviceUpdateResponse = (function() { + + /** + * Properties of a DeviceUpdateResponse. + * @memberof Authentication + * @interface IDeviceUpdateResponse + * @property {Uint8Array|null} [encryptedDeviceToken] DeviceUpdateResponse encryptedDeviceToken + * @property {string|null} [clientVersion] DeviceUpdateResponse clientVersion + * @property {string|null} [deviceName] DeviceUpdateResponse deviceName + * @property {Uint8Array|null} [devicePublicKey] DeviceUpdateResponse devicePublicKey + * @property {Authentication.DeviceStatus|null} [deviceStatus] DeviceUpdateResponse deviceStatus + * @property {string|null} [devicePlatform] DeviceUpdateResponse devicePlatform + * @property {Authentication.ClientFormFactor|null} [clientFormFactor] DeviceUpdateResponse clientFormFactor + */ + + /** + * Constructs a new DeviceUpdateResponse. + * @memberof Authentication + * @classdesc Represents a DeviceUpdateResponse. + * @implements IDeviceUpdateResponse + * @constructor + * @param {Authentication.IDeviceUpdateResponse=} [properties] Properties to set + */ + function DeviceUpdateResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeviceUpdateResponse encryptedDeviceToken. + * @member {Uint8Array} encryptedDeviceToken + * @memberof Authentication.DeviceUpdateResponse + * @instance + */ + DeviceUpdateResponse.prototype.encryptedDeviceToken = $util.newBuffer([]); + + /** + * DeviceUpdateResponse clientVersion. + * @member {string} clientVersion + * @memberof Authentication.DeviceUpdateResponse + * @instance + */ + DeviceUpdateResponse.prototype.clientVersion = ""; + + /** + * DeviceUpdateResponse deviceName. + * @member {string} deviceName + * @memberof Authentication.DeviceUpdateResponse + * @instance + */ + DeviceUpdateResponse.prototype.deviceName = ""; + + /** + * DeviceUpdateResponse devicePublicKey. + * @member {Uint8Array} devicePublicKey + * @memberof Authentication.DeviceUpdateResponse + * @instance + */ + DeviceUpdateResponse.prototype.devicePublicKey = $util.newBuffer([]); + + /** + * DeviceUpdateResponse deviceStatus. + * @member {Authentication.DeviceStatus} deviceStatus + * @memberof Authentication.DeviceUpdateResponse + * @instance + */ + DeviceUpdateResponse.prototype.deviceStatus = 0; + + /** + * DeviceUpdateResponse devicePlatform. + * @member {string} devicePlatform + * @memberof Authentication.DeviceUpdateResponse + * @instance + */ + DeviceUpdateResponse.prototype.devicePlatform = ""; + + /** + * DeviceUpdateResponse clientFormFactor. + * @member {Authentication.ClientFormFactor} clientFormFactor + * @memberof Authentication.DeviceUpdateResponse + * @instance + */ + DeviceUpdateResponse.prototype.clientFormFactor = 0; + + /** + * Creates a new DeviceUpdateResponse instance using the specified properties. + * @function create + * @memberof Authentication.DeviceUpdateResponse + * @static + * @param {Authentication.IDeviceUpdateResponse=} [properties] Properties to set + * @returns {Authentication.DeviceUpdateResponse} DeviceUpdateResponse instance + */ + DeviceUpdateResponse.create = function create(properties) { + return new DeviceUpdateResponse(properties); + }; + + /** + * Encodes the specified DeviceUpdateResponse message. Does not implicitly {@link Authentication.DeviceUpdateResponse.verify|verify} messages. + * @function encode + * @memberof Authentication.DeviceUpdateResponse + * @static + * @param {Authentication.IDeviceUpdateResponse} message DeviceUpdateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeviceUpdateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.clientVersion); + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.deviceName); + if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, "devicePublicKey")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.devicePublicKey); + if (message.deviceStatus != null && Object.hasOwnProperty.call(message, "deviceStatus")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.deviceStatus); + if (message.devicePlatform != null && Object.hasOwnProperty.call(message, "devicePlatform")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.devicePlatform); + if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, "clientFormFactor")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.clientFormFactor); + return writer; + }; + + /** + * Encodes the specified DeviceUpdateResponse message, length delimited. Does not implicitly {@link Authentication.DeviceUpdateResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof Authentication.DeviceUpdateResponse + * @static + * @param {Authentication.IDeviceUpdateResponse} message DeviceUpdateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeviceUpdateResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeviceUpdateResponse message from the specified reader or buffer. + * @function decode + * @memberof Authentication.DeviceUpdateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {Authentication.DeviceUpdateResponse} DeviceUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeviceUpdateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceUpdateResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.encryptedDeviceToken = reader.bytes(); + break; + } + case 2: { + message.clientVersion = reader.string(); + break; + } + case 3: { + message.deviceName = reader.string(); + break; + } + case 4: { + message.devicePublicKey = reader.bytes(); + break; + } + case 5: { + message.deviceStatus = reader.int32(); + break; + } + case 6: { + message.devicePlatform = reader.string(); + break; + } + case 7: { + message.clientFormFactor = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeviceUpdateResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof Authentication.DeviceUpdateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {Authentication.DeviceUpdateResponse} DeviceUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeviceUpdateResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeviceUpdateResponse message. + * @function verify + * @memberof Authentication.DeviceUpdateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeviceUpdateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) + return "encryptedDeviceToken: buffer expected"; + if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (!$util.isString(message.clientVersion)) + return "clientVersion: string expected"; + if (message.deviceName != null && message.hasOwnProperty("deviceName")) + if (!$util.isString(message.deviceName)) + return "deviceName: string expected"; + if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) + if (!(message.devicePublicKey && typeof message.devicePublicKey.length === "number" || $util.isString(message.devicePublicKey))) + return "devicePublicKey: buffer expected"; + if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) + switch (message.deviceStatus) { + default: + return "deviceStatus: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) + if (!$util.isString(message.devicePlatform)) + return "devicePlatform: string expected"; + if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) + switch (message.clientFormFactor) { + default: + return "clientFormFactor: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + return null; + }; + + /** + * Creates a DeviceUpdateResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Authentication.DeviceUpdateResponse + * @static + * @param {Object.} object Plain object + * @returns {Authentication.DeviceUpdateResponse} DeviceUpdateResponse + */ + DeviceUpdateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Authentication.DeviceUpdateResponse) + return object; + let message = new $root.Authentication.DeviceUpdateResponse(); + if (object.encryptedDeviceToken != null) + if (typeof object.encryptedDeviceToken === "string") + $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + else if (object.encryptedDeviceToken.length >= 0) + message.encryptedDeviceToken = object.encryptedDeviceToken; + if (object.clientVersion != null) + message.clientVersion = String(object.clientVersion); + if (object.deviceName != null) + message.deviceName = String(object.deviceName); + if (object.devicePublicKey != null) + if (typeof object.devicePublicKey === "string") + $util.base64.decode(object.devicePublicKey, message.devicePublicKey = $util.newBuffer($util.base64.length(object.devicePublicKey)), 0); + else if (object.devicePublicKey.length >= 0) + message.devicePublicKey = object.devicePublicKey; + switch (object.deviceStatus) { + default: + if (typeof object.deviceStatus === "number") { + message.deviceStatus = object.deviceStatus; + break; + } + break; + case "DEVICE_NEEDS_APPROVAL": + case 0: + message.deviceStatus = 0; + break; + case "DEVICE_OK": + case 1: + message.deviceStatus = 1; + break; + case "DEVICE_DISABLED_BY_USER": + case 2: + message.deviceStatus = 2; + break; + case "DEVICE_LOCKED_BY_ADMIN": + case 3: + message.deviceStatus = 3; + break; + } + if (object.devicePlatform != null) + message.devicePlatform = String(object.devicePlatform); + switch (object.clientFormFactor) { + default: + if (typeof object.clientFormFactor === "number") { + message.clientFormFactor = object.clientFormFactor; + break; + } + break; + case "FF_EMPTY": + case 0: + message.clientFormFactor = 0; + break; + case "FF_PHONE": + case 1: + message.clientFormFactor = 1; + break; + case "FF_TABLET": + case 2: + message.clientFormFactor = 2; + break; + case "FF_WATCH": + case 3: + message.clientFormFactor = 3; + break; + } + return message; + }; + + /** + * Creates a plain object from a DeviceUpdateResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof Authentication.DeviceUpdateResponse + * @static + * @param {Authentication.DeviceUpdateResponse} message DeviceUpdateResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeviceUpdateResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.encryptedDeviceToken = ""; + else { + object.encryptedDeviceToken = []; + if (options.bytes !== Array) + object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); + } + object.clientVersion = ""; + object.deviceName = ""; + if (options.bytes === String) + object.devicePublicKey = ""; + else { + object.devicePublicKey = []; + if (options.bytes !== Array) + object.devicePublicKey = $util.newBuffer(object.devicePublicKey); + } + object.deviceStatus = options.enums === String ? "DEVICE_NEEDS_APPROVAL" : 0; + object.devicePlatform = ""; + object.clientFormFactor = options.enums === String ? "FF_EMPTY" : 0; + } + if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) + object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; + if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + object.clientVersion = message.clientVersion; + if (message.deviceName != null && message.hasOwnProperty("deviceName")) + object.deviceName = message.deviceName; + if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) + object.devicePublicKey = options.bytes === String ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.devicePublicKey) : message.devicePublicKey; + if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) + object.deviceStatus = options.enums === String ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined ? message.deviceStatus : $root.Authentication.DeviceStatus[message.deviceStatus] : message.deviceStatus; + if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) + object.devicePlatform = message.devicePlatform; + if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) + object.clientFormFactor = options.enums === String ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined ? message.clientFormFactor : $root.Authentication.ClientFormFactor[message.clientFormFactor] : message.clientFormFactor; + return object; + }; + + /** + * Converts this DeviceUpdateResponse to JSON. + * @function toJSON + * @memberof Authentication.DeviceUpdateResponse + * @instance + * @returns {Object.} JSON object + */ + DeviceUpdateResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeviceUpdateResponse + * @function getTypeUrl + * @memberof Authentication.DeviceUpdateResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeviceUpdateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Authentication.DeviceUpdateResponse"; + }; + + return DeviceUpdateResponse; + })(); + Authentication.RegisterDeviceInRegionRequest = (function() { /** @@ -15517,6 +15958,7 @@ export const Authentication = $root.Authentication = (() => { * @property {number|Long|null} [oldSecurityDataRevision] SecurityReportIncrementalData oldSecurityDataRevision * @property {Enterprise.EncryptedKeyType|null} [currentDataEncryptionType] SecurityReportIncrementalData currentDataEncryptionType * @property {Enterprise.EncryptedKeyType|null} [oldDataEncryptionType] SecurityReportIncrementalData oldDataEncryptionType + * @property {Uint8Array|null} [recordUid] SecurityReportIncrementalData recordUid */ /** @@ -15590,6 +16032,14 @@ export const Authentication = $root.Authentication = (() => { */ SecurityReportIncrementalData.prototype.oldDataEncryptionType = 0; + /** + * SecurityReportIncrementalData recordUid. + * @member {Uint8Array} recordUid + * @memberof Authentication.SecurityReportIncrementalData + * @instance + */ + SecurityReportIncrementalData.prototype.recordUid = $util.newBuffer([]); + /** * Creates a new SecurityReportIncrementalData instance using the specified properties. * @function create @@ -15628,6 +16078,8 @@ export const Authentication = $root.Authentication = (() => { writer.uint32(/* id 6, wireType 0 =*/48).int32(message.currentDataEncryptionType); if (message.oldDataEncryptionType != null && Object.hasOwnProperty.call(message, "oldDataEncryptionType")) writer.uint32(/* id 7, wireType 0 =*/56).int32(message.oldDataEncryptionType); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.recordUid); return writer; }; @@ -15690,6 +16142,10 @@ export const Authentication = $root.Authentication = (() => { message.oldDataEncryptionType = reader.int32(); break; } + case 8: { + message.recordUid = reader.bytes(); + break; + } default: reader.skipType(tag & 7); break; @@ -15762,6 +16218,9 @@ export const Authentication = $root.Authentication = (() => { case 4: break; } + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) + return "recordUid: buffer expected"; return null; }; @@ -15870,6 +16329,11 @@ export const Authentication = $root.Authentication = (() => { message.oldDataEncryptionType = 4; break; } + if (object.recordUid != null) + if (typeof object.recordUid === "string") + $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); + else if (object.recordUid.length >= 0) + message.recordUid = object.recordUid; return message; }; @@ -15918,6 +16382,13 @@ export const Authentication = $root.Authentication = (() => { object.oldSecurityDataRevision = options.longs === String ? "0" : 0; object.currentDataEncryptionType = options.enums === String ? "KT_NO_KEY" : 0; object.oldDataEncryptionType = options.enums === String ? "KT_NO_KEY" : 0; + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } } if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) if (typeof message.enterpriseUserId === "number") @@ -15942,6 +16413,8 @@ export const Authentication = $root.Authentication = (() => { object.currentDataEncryptionType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.currentDataEncryptionType] === undefined ? message.currentDataEncryptionType : $root.Enterprise.EncryptedKeyType[message.currentDataEncryptionType] : message.currentDataEncryptionType; if (message.oldDataEncryptionType != null && message.hasOwnProperty("oldDataEncryptionType")) object.oldDataEncryptionType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.oldDataEncryptionType] === undefined ? message.oldDataEncryptionType : $root.Enterprise.EncryptedKeyType[message.oldDataEncryptionType] : message.oldDataEncryptionType; + if (message.recordUid != null && message.hasOwnProperty("recordUid")) + object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; return object; }; @@ -16442,6 +16915,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication * @interface ISecurityReportSaveRequest * @property {Array.|null} [securityReport] SecurityReportSaveRequest securityReport + * @property {Uint8Array|null} [continuationToken] SecurityReportSaveRequest continuationToken */ /** @@ -16468,6 +16942,14 @@ export const Authentication = $root.Authentication = (() => { */ SecurityReportSaveRequest.prototype.securityReport = $util.emptyArray; + /** + * SecurityReportSaveRequest continuationToken. + * @member {Uint8Array} continuationToken + * @memberof Authentication.SecurityReportSaveRequest + * @instance + */ + SecurityReportSaveRequest.prototype.continuationToken = $util.newBuffer([]); + /** * Creates a new SecurityReportSaveRequest instance using the specified properties. * @function create @@ -16495,6 +16977,8 @@ export const Authentication = $root.Authentication = (() => { if (message.securityReport != null && message.securityReport.length) for (let i = 0; i < message.securityReport.length; ++i) $root.Authentication.SecurityReport.encode(message.securityReport[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.continuationToken); return writer; }; @@ -16535,6 +17019,10 @@ export const Authentication = $root.Authentication = (() => { message.securityReport.push($root.Authentication.SecurityReport.decode(reader, reader.uint32())); break; } + case 2: { + message.continuationToken = reader.bytes(); + break; + } default: reader.skipType(tag & 7); break; @@ -16579,6 +17067,9 @@ export const Authentication = $root.Authentication = (() => { return "securityReport." + error; } } + if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) + return "continuationToken: buffer expected"; return null; }; @@ -16604,6 +17095,11 @@ export const Authentication = $root.Authentication = (() => { message.securityReport[i] = $root.Authentication.SecurityReport.fromObject(object.securityReport[i]); } } + if (object.continuationToken != null) + if (typeof object.continuationToken === "string") + $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); + else if (object.continuationToken.length >= 0) + message.continuationToken = object.continuationToken; return message; }; @@ -16622,11 +17118,21 @@ export const Authentication = $root.Authentication = (() => { let object = {}; if (options.arrays || options.defaults) object.securityReport = []; + if (options.defaults) + if (options.bytes === String) + object.continuationToken = ""; + else { + object.continuationToken = []; + if (options.bytes !== Array) + object.continuationToken = $util.newBuffer(object.continuationToken); + } if (message.securityReport && message.securityReport.length) { object.securityReport = []; for (let j = 0; j < message.securityReport.length; ++j) object.securityReport[j] = $root.Authentication.SecurityReport.toObject(message.securityReport[j], options); } + if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; return object; }; @@ -16889,6 +17395,7 @@ export const Authentication = $root.Authentication = (() => { * @property {number|Long|null} [toPage] SecurityReportResponse toPage * @property {boolean|null} [complete] SecurityReportResponse complete * @property {Uint8Array|null} [enterpriseEccPrivateKey] SecurityReportResponse enterpriseEccPrivateKey + * @property {boolean|null} [hasIncrementalData] SecurityReportResponse hasIncrementalData */ /** @@ -16963,6 +17470,14 @@ export const Authentication = $root.Authentication = (() => { */ SecurityReportResponse.prototype.enterpriseEccPrivateKey = $util.newBuffer([]); + /** + * SecurityReportResponse hasIncrementalData. + * @member {boolean} hasIncrementalData + * @memberof Authentication.SecurityReportResponse + * @instance + */ + SecurityReportResponse.prototype.hasIncrementalData = false; + /** * Creates a new SecurityReportResponse instance using the specified properties. * @function create @@ -17002,6 +17517,8 @@ export const Authentication = $root.Authentication = (() => { writer.uint32(/* id 6, wireType 0 =*/48).bool(message.complete); if (message.enterpriseEccPrivateKey != null && Object.hasOwnProperty.call(message, "enterpriseEccPrivateKey")) writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.enterpriseEccPrivateKey); + if (message.hasIncrementalData != null && Object.hasOwnProperty.call(message, "hasIncrementalData")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.hasIncrementalData); return writer; }; @@ -17066,6 +17583,10 @@ export const Authentication = $root.Authentication = (() => { message.enterpriseEccPrivateKey = reader.bytes(); break; } + case 8: { + message.hasIncrementalData = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -17128,6 +17649,9 @@ export const Authentication = $root.Authentication = (() => { if (message.enterpriseEccPrivateKey != null && message.hasOwnProperty("enterpriseEccPrivateKey")) if (!(message.enterpriseEccPrivateKey && typeof message.enterpriseEccPrivateKey.length === "number" || $util.isString(message.enterpriseEccPrivateKey))) return "enterpriseEccPrivateKey: buffer expected"; + if (message.hasIncrementalData != null && message.hasOwnProperty("hasIncrementalData")) + if (typeof message.hasIncrementalData !== "boolean") + return "hasIncrementalData: boolean expected"; return null; }; @@ -17192,6 +17716,8 @@ export const Authentication = $root.Authentication = (() => { $util.base64.decode(object.enterpriseEccPrivateKey, message.enterpriseEccPrivateKey = $util.newBuffer($util.base64.length(object.enterpriseEccPrivateKey)), 0); else if (object.enterpriseEccPrivateKey.length >= 0) message.enterpriseEccPrivateKey = object.enterpriseEccPrivateKey; + if (object.hasIncrementalData != null) + message.hasIncrementalData = Boolean(object.hasIncrementalData); return message; }; @@ -17241,6 +17767,7 @@ export const Authentication = $root.Authentication = (() => { if (options.bytes !== Array) object.enterpriseEccPrivateKey = $util.newBuffer(object.enterpriseEccPrivateKey); } + object.hasIncrementalData = false; } if (message.enterprisePrivateKey != null && message.hasOwnProperty("enterprisePrivateKey")) object.enterprisePrivateKey = options.bytes === String ? $util.base64.encode(message.enterprisePrivateKey, 0, message.enterprisePrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterprisePrivateKey) : message.enterprisePrivateKey; @@ -17268,6 +17795,8 @@ export const Authentication = $root.Authentication = (() => { object.complete = message.complete; if (message.enterpriseEccPrivateKey != null && message.hasOwnProperty("enterpriseEccPrivateKey")) object.enterpriseEccPrivateKey = options.bytes === String ? $util.base64.encode(message.enterpriseEccPrivateKey, 0, message.enterpriseEccPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterpriseEccPrivateKey) : message.enterpriseEccPrivateKey; + if (message.hasIncrementalData != null && message.hasOwnProperty("hasIncrementalData")) + object.hasIncrementalData = message.hasIncrementalData; return object; }; @@ -17300,6 +17829,475 @@ export const Authentication = $root.Authentication = (() => { return SecurityReportResponse; })(); + Authentication.IncrementalSecurityDataRequest = (function() { + + /** + * Properties of an IncrementalSecurityDataRequest. + * @memberof Authentication + * @interface IIncrementalSecurityDataRequest + * @property {Uint8Array|null} [continuationToken] IncrementalSecurityDataRequest continuationToken + */ + + /** + * Constructs a new IncrementalSecurityDataRequest. + * @memberof Authentication + * @classdesc Represents an IncrementalSecurityDataRequest. + * @implements IIncrementalSecurityDataRequest + * @constructor + * @param {Authentication.IIncrementalSecurityDataRequest=} [properties] Properties to set + */ + function IncrementalSecurityDataRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IncrementalSecurityDataRequest continuationToken. + * @member {Uint8Array} continuationToken + * @memberof Authentication.IncrementalSecurityDataRequest + * @instance + */ + IncrementalSecurityDataRequest.prototype.continuationToken = $util.newBuffer([]); + + /** + * Creates a new IncrementalSecurityDataRequest instance using the specified properties. + * @function create + * @memberof Authentication.IncrementalSecurityDataRequest + * @static + * @param {Authentication.IIncrementalSecurityDataRequest=} [properties] Properties to set + * @returns {Authentication.IncrementalSecurityDataRequest} IncrementalSecurityDataRequest instance + */ + IncrementalSecurityDataRequest.create = function create(properties) { + return new IncrementalSecurityDataRequest(properties); + }; + + /** + * Encodes the specified IncrementalSecurityDataRequest message. Does not implicitly {@link Authentication.IncrementalSecurityDataRequest.verify|verify} messages. + * @function encode + * @memberof Authentication.IncrementalSecurityDataRequest + * @static + * @param {Authentication.IIncrementalSecurityDataRequest} message IncrementalSecurityDataRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IncrementalSecurityDataRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); + return writer; + }; + + /** + * Encodes the specified IncrementalSecurityDataRequest message, length delimited. Does not implicitly {@link Authentication.IncrementalSecurityDataRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof Authentication.IncrementalSecurityDataRequest + * @static + * @param {Authentication.IIncrementalSecurityDataRequest} message IncrementalSecurityDataRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IncrementalSecurityDataRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IncrementalSecurityDataRequest message from the specified reader or buffer. + * @function decode + * @memberof Authentication.IncrementalSecurityDataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {Authentication.IncrementalSecurityDataRequest} IncrementalSecurityDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IncrementalSecurityDataRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.IncrementalSecurityDataRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.continuationToken = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IncrementalSecurityDataRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof Authentication.IncrementalSecurityDataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {Authentication.IncrementalSecurityDataRequest} IncrementalSecurityDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IncrementalSecurityDataRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IncrementalSecurityDataRequest message. + * @function verify + * @memberof Authentication.IncrementalSecurityDataRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IncrementalSecurityDataRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) + return "continuationToken: buffer expected"; + return null; + }; + + /** + * Creates an IncrementalSecurityDataRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Authentication.IncrementalSecurityDataRequest + * @static + * @param {Object.} object Plain object + * @returns {Authentication.IncrementalSecurityDataRequest} IncrementalSecurityDataRequest + */ + IncrementalSecurityDataRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Authentication.IncrementalSecurityDataRequest) + return object; + let message = new $root.Authentication.IncrementalSecurityDataRequest(); + if (object.continuationToken != null) + if (typeof object.continuationToken === "string") + $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); + else if (object.continuationToken.length >= 0) + message.continuationToken = object.continuationToken; + return message; + }; + + /** + * Creates a plain object from an IncrementalSecurityDataRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof Authentication.IncrementalSecurityDataRequest + * @static + * @param {Authentication.IncrementalSecurityDataRequest} message IncrementalSecurityDataRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IncrementalSecurityDataRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + if (options.bytes === String) + object.continuationToken = ""; + else { + object.continuationToken = []; + if (options.bytes !== Array) + object.continuationToken = $util.newBuffer(object.continuationToken); + } + if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; + return object; + }; + + /** + * Converts this IncrementalSecurityDataRequest to JSON. + * @function toJSON + * @memberof Authentication.IncrementalSecurityDataRequest + * @instance + * @returns {Object.} JSON object + */ + IncrementalSecurityDataRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IncrementalSecurityDataRequest + * @function getTypeUrl + * @memberof Authentication.IncrementalSecurityDataRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IncrementalSecurityDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Authentication.IncrementalSecurityDataRequest"; + }; + + return IncrementalSecurityDataRequest; + })(); + + Authentication.IncrementalSecurityDataResponse = (function() { + + /** + * Properties of an IncrementalSecurityDataResponse. + * @memberof Authentication + * @interface IIncrementalSecurityDataResponse + * @property {Array.|null} [securityReportIncrementalData] IncrementalSecurityDataResponse securityReportIncrementalData + * @property {Uint8Array|null} [continuationToken] IncrementalSecurityDataResponse continuationToken + */ + + /** + * Constructs a new IncrementalSecurityDataResponse. + * @memberof Authentication + * @classdesc Represents an IncrementalSecurityDataResponse. + * @implements IIncrementalSecurityDataResponse + * @constructor + * @param {Authentication.IIncrementalSecurityDataResponse=} [properties] Properties to set + */ + function IncrementalSecurityDataResponse(properties) { + this.securityReportIncrementalData = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IncrementalSecurityDataResponse securityReportIncrementalData. + * @member {Array.} securityReportIncrementalData + * @memberof Authentication.IncrementalSecurityDataResponse + * @instance + */ + IncrementalSecurityDataResponse.prototype.securityReportIncrementalData = $util.emptyArray; + + /** + * IncrementalSecurityDataResponse continuationToken. + * @member {Uint8Array} continuationToken + * @memberof Authentication.IncrementalSecurityDataResponse + * @instance + */ + IncrementalSecurityDataResponse.prototype.continuationToken = $util.newBuffer([]); + + /** + * Creates a new IncrementalSecurityDataResponse instance using the specified properties. + * @function create + * @memberof Authentication.IncrementalSecurityDataResponse + * @static + * @param {Authentication.IIncrementalSecurityDataResponse=} [properties] Properties to set + * @returns {Authentication.IncrementalSecurityDataResponse} IncrementalSecurityDataResponse instance + */ + IncrementalSecurityDataResponse.create = function create(properties) { + return new IncrementalSecurityDataResponse(properties); + }; + + /** + * Encodes the specified IncrementalSecurityDataResponse message. Does not implicitly {@link Authentication.IncrementalSecurityDataResponse.verify|verify} messages. + * @function encode + * @memberof Authentication.IncrementalSecurityDataResponse + * @static + * @param {Authentication.IIncrementalSecurityDataResponse} message IncrementalSecurityDataResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IncrementalSecurityDataResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.securityReportIncrementalData != null && message.securityReportIncrementalData.length) + for (let i = 0; i < message.securityReportIncrementalData.length; ++i) + $root.Authentication.SecurityReportIncrementalData.encode(message.securityReportIncrementalData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.continuationToken); + return writer; + }; + + /** + * Encodes the specified IncrementalSecurityDataResponse message, length delimited. Does not implicitly {@link Authentication.IncrementalSecurityDataResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof Authentication.IncrementalSecurityDataResponse + * @static + * @param {Authentication.IIncrementalSecurityDataResponse} message IncrementalSecurityDataResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IncrementalSecurityDataResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IncrementalSecurityDataResponse message from the specified reader or buffer. + * @function decode + * @memberof Authentication.IncrementalSecurityDataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {Authentication.IncrementalSecurityDataResponse} IncrementalSecurityDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IncrementalSecurityDataResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.IncrementalSecurityDataResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.securityReportIncrementalData && message.securityReportIncrementalData.length)) + message.securityReportIncrementalData = []; + message.securityReportIncrementalData.push($root.Authentication.SecurityReportIncrementalData.decode(reader, reader.uint32())); + break; + } + case 2: { + message.continuationToken = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IncrementalSecurityDataResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof Authentication.IncrementalSecurityDataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {Authentication.IncrementalSecurityDataResponse} IncrementalSecurityDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IncrementalSecurityDataResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IncrementalSecurityDataResponse message. + * @function verify + * @memberof Authentication.IncrementalSecurityDataResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IncrementalSecurityDataResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.securityReportIncrementalData != null && message.hasOwnProperty("securityReportIncrementalData")) { + if (!Array.isArray(message.securityReportIncrementalData)) + return "securityReportIncrementalData: array expected"; + for (let i = 0; i < message.securityReportIncrementalData.length; ++i) { + let error = $root.Authentication.SecurityReportIncrementalData.verify(message.securityReportIncrementalData[i]); + if (error) + return "securityReportIncrementalData." + error; + } + } + if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) + return "continuationToken: buffer expected"; + return null; + }; + + /** + * Creates an IncrementalSecurityDataResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Authentication.IncrementalSecurityDataResponse + * @static + * @param {Object.} object Plain object + * @returns {Authentication.IncrementalSecurityDataResponse} IncrementalSecurityDataResponse + */ + IncrementalSecurityDataResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Authentication.IncrementalSecurityDataResponse) + return object; + let message = new $root.Authentication.IncrementalSecurityDataResponse(); + if (object.securityReportIncrementalData) { + if (!Array.isArray(object.securityReportIncrementalData)) + throw TypeError(".Authentication.IncrementalSecurityDataResponse.securityReportIncrementalData: array expected"); + message.securityReportIncrementalData = []; + for (let i = 0; i < object.securityReportIncrementalData.length; ++i) { + if (typeof object.securityReportIncrementalData[i] !== "object") + throw TypeError(".Authentication.IncrementalSecurityDataResponse.securityReportIncrementalData: object expected"); + message.securityReportIncrementalData[i] = $root.Authentication.SecurityReportIncrementalData.fromObject(object.securityReportIncrementalData[i]); + } + } + if (object.continuationToken != null) + if (typeof object.continuationToken === "string") + $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); + else if (object.continuationToken.length >= 0) + message.continuationToken = object.continuationToken; + return message; + }; + + /** + * Creates a plain object from an IncrementalSecurityDataResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof Authentication.IncrementalSecurityDataResponse + * @static + * @param {Authentication.IncrementalSecurityDataResponse} message IncrementalSecurityDataResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IncrementalSecurityDataResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.securityReportIncrementalData = []; + if (options.defaults) + if (options.bytes === String) + object.continuationToken = ""; + else { + object.continuationToken = []; + if (options.bytes !== Array) + object.continuationToken = $util.newBuffer(object.continuationToken); + } + if (message.securityReportIncrementalData && message.securityReportIncrementalData.length) { + object.securityReportIncrementalData = []; + for (let j = 0; j < message.securityReportIncrementalData.length; ++j) + object.securityReportIncrementalData[j] = $root.Authentication.SecurityReportIncrementalData.toObject(message.securityReportIncrementalData[j], options); + } + if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) + object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; + return object; + }; + + /** + * Converts this IncrementalSecurityDataResponse to JSON. + * @function toJSON + * @memberof Authentication.IncrementalSecurityDataResponse + * @instance + * @returns {Object.} JSON object + */ + IncrementalSecurityDataResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IncrementalSecurityDataResponse + * @function getTypeUrl + * @memberof Authentication.IncrementalSecurityDataResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IncrementalSecurityDataResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Authentication.IncrementalSecurityDataResponse"; + }; + + return IncrementalSecurityDataResponse; + })(); + Authentication.ReusedPasswordsRequest = (function() { /** @@ -24295,6 +25293,7 @@ export const Authentication = $root.Authentication = (() => { * @property {Uint8Array|null} [devicePublicKey] DeviceRegistrationRequest devicePublicKey * @property {string|null} [devicePlatform] DeviceRegistrationRequest devicePlatform * @property {Authentication.ClientFormFactor|null} [clientFormFactor] DeviceRegistrationRequest clientFormFactor + * @property {string|null} [username] DeviceRegistrationRequest username */ /** @@ -24352,6 +25351,14 @@ export const Authentication = $root.Authentication = (() => { */ DeviceRegistrationRequest.prototype.clientFormFactor = 0; + /** + * DeviceRegistrationRequest username. + * @member {string} username + * @memberof Authentication.DeviceRegistrationRequest + * @instance + */ + DeviceRegistrationRequest.prototype.username = ""; + /** * Creates a new DeviceRegistrationRequest instance using the specified properties. * @function create @@ -24386,6 +25393,8 @@ export const Authentication = $root.Authentication = (() => { writer.uint32(/* id 4, wireType 2 =*/34).string(message.devicePlatform); if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, "clientFormFactor")) writer.uint32(/* id 5, wireType 0 =*/40).int32(message.clientFormFactor); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.username); return writer; }; @@ -24440,6 +25449,10 @@ export const Authentication = $root.Authentication = (() => { message.clientFormFactor = reader.int32(); break; } + case 6: { + message.username = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -24497,6 +25510,9 @@ export const Authentication = $root.Authentication = (() => { case 3: break; } + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; return null; }; @@ -24547,6 +25563,8 @@ export const Authentication = $root.Authentication = (() => { message.clientFormFactor = 3; break; } + if (object.username != null) + message.username = String(object.username); return message; }; @@ -24575,6 +25593,7 @@ export const Authentication = $root.Authentication = (() => { } object.devicePlatform = ""; object.clientFormFactor = options.enums === String ? "FF_EMPTY" : 0; + object.username = ""; } if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) object.clientVersion = message.clientVersion; @@ -24586,6 +25605,8 @@ export const Authentication = $root.Authentication = (() => { object.devicePlatform = message.devicePlatform; if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) object.clientFormFactor = options.enums === String ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined ? message.clientFormFactor : $root.Authentication.ClientFormFactor[message.clientFormFactor] : message.clientFormFactor; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; return object; }; @@ -49473,6 +50494,676 @@ export const Authentication = $root.Authentication = (() => { return values; })(); + Authentication.TranslationInfo = (function() { + + /** + * Properties of a TranslationInfo. + * @memberof Authentication + * @interface ITranslationInfo + * @property {string|null} [translationKey] TranslationInfo translationKey + * @property {string|null} [translationValue] TranslationInfo translationValue + */ + + /** + * Constructs a new TranslationInfo. + * @memberof Authentication + * @classdesc Represents a TranslationInfo. + * @implements ITranslationInfo + * @constructor + * @param {Authentication.ITranslationInfo=} [properties] Properties to set + */ + function TranslationInfo(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TranslationInfo translationKey. + * @member {string} translationKey + * @memberof Authentication.TranslationInfo + * @instance + */ + TranslationInfo.prototype.translationKey = ""; + + /** + * TranslationInfo translationValue. + * @member {string} translationValue + * @memberof Authentication.TranslationInfo + * @instance + */ + TranslationInfo.prototype.translationValue = ""; + + /** + * Creates a new TranslationInfo instance using the specified properties. + * @function create + * @memberof Authentication.TranslationInfo + * @static + * @param {Authentication.ITranslationInfo=} [properties] Properties to set + * @returns {Authentication.TranslationInfo} TranslationInfo instance + */ + TranslationInfo.create = function create(properties) { + return new TranslationInfo(properties); + }; + + /** + * Encodes the specified TranslationInfo message. Does not implicitly {@link Authentication.TranslationInfo.verify|verify} messages. + * @function encode + * @memberof Authentication.TranslationInfo + * @static + * @param {Authentication.ITranslationInfo} message TranslationInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TranslationInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.translationKey != null && Object.hasOwnProperty.call(message, "translationKey")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.translationKey); + if (message.translationValue != null && Object.hasOwnProperty.call(message, "translationValue")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.translationValue); + return writer; + }; + + /** + * Encodes the specified TranslationInfo message, length delimited. Does not implicitly {@link Authentication.TranslationInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof Authentication.TranslationInfo + * @static + * @param {Authentication.ITranslationInfo} message TranslationInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TranslationInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TranslationInfo message from the specified reader or buffer. + * @function decode + * @memberof Authentication.TranslationInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {Authentication.TranslationInfo} TranslationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TranslationInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TranslationInfo(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.translationKey = reader.string(); + break; + } + case 2: { + message.translationValue = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TranslationInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof Authentication.TranslationInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {Authentication.TranslationInfo} TranslationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TranslationInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TranslationInfo message. + * @function verify + * @memberof Authentication.TranslationInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TranslationInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.translationKey != null && message.hasOwnProperty("translationKey")) + if (!$util.isString(message.translationKey)) + return "translationKey: string expected"; + if (message.translationValue != null && message.hasOwnProperty("translationValue")) + if (!$util.isString(message.translationValue)) + return "translationValue: string expected"; + return null; + }; + + /** + * Creates a TranslationInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Authentication.TranslationInfo + * @static + * @param {Object.} object Plain object + * @returns {Authentication.TranslationInfo} TranslationInfo + */ + TranslationInfo.fromObject = function fromObject(object) { + if (object instanceof $root.Authentication.TranslationInfo) + return object; + let message = new $root.Authentication.TranslationInfo(); + if (object.translationKey != null) + message.translationKey = String(object.translationKey); + if (object.translationValue != null) + message.translationValue = String(object.translationValue); + return message; + }; + + /** + * Creates a plain object from a TranslationInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof Authentication.TranslationInfo + * @static + * @param {Authentication.TranslationInfo} message TranslationInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TranslationInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.translationKey = ""; + object.translationValue = ""; + } + if (message.translationKey != null && message.hasOwnProperty("translationKey")) + object.translationKey = message.translationKey; + if (message.translationValue != null && message.hasOwnProperty("translationValue")) + object.translationValue = message.translationValue; + return object; + }; + + /** + * Converts this TranslationInfo to JSON. + * @function toJSON + * @memberof Authentication.TranslationInfo + * @instance + * @returns {Object.} JSON object + */ + TranslationInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TranslationInfo + * @function getTypeUrl + * @memberof Authentication.TranslationInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TranslationInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Authentication.TranslationInfo"; + }; + + return TranslationInfo; + })(); + + Authentication.TranslationRequest = (function() { + + /** + * Properties of a TranslationRequest. + * @memberof Authentication + * @interface ITranslationRequest + * @property {Array.|null} [translationKey] TranslationRequest translationKey + */ + + /** + * Constructs a new TranslationRequest. + * @memberof Authentication + * @classdesc Represents a TranslationRequest. + * @implements ITranslationRequest + * @constructor + * @param {Authentication.ITranslationRequest=} [properties] Properties to set + */ + function TranslationRequest(properties) { + this.translationKey = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TranslationRequest translationKey. + * @member {Array.} translationKey + * @memberof Authentication.TranslationRequest + * @instance + */ + TranslationRequest.prototype.translationKey = $util.emptyArray; + + /** + * Creates a new TranslationRequest instance using the specified properties. + * @function create + * @memberof Authentication.TranslationRequest + * @static + * @param {Authentication.ITranslationRequest=} [properties] Properties to set + * @returns {Authentication.TranslationRequest} TranslationRequest instance + */ + TranslationRequest.create = function create(properties) { + return new TranslationRequest(properties); + }; + + /** + * Encodes the specified TranslationRequest message. Does not implicitly {@link Authentication.TranslationRequest.verify|verify} messages. + * @function encode + * @memberof Authentication.TranslationRequest + * @static + * @param {Authentication.ITranslationRequest} message TranslationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TranslationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.translationKey != null && message.translationKey.length) + for (let i = 0; i < message.translationKey.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.translationKey[i]); + return writer; + }; + + /** + * Encodes the specified TranslationRequest message, length delimited. Does not implicitly {@link Authentication.TranslationRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof Authentication.TranslationRequest + * @static + * @param {Authentication.ITranslationRequest} message TranslationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TranslationRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TranslationRequest message from the specified reader or buffer. + * @function decode + * @memberof Authentication.TranslationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {Authentication.TranslationRequest} TranslationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TranslationRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TranslationRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.translationKey && message.translationKey.length)) + message.translationKey = []; + message.translationKey.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TranslationRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof Authentication.TranslationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {Authentication.TranslationRequest} TranslationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TranslationRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TranslationRequest message. + * @function verify + * @memberof Authentication.TranslationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TranslationRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.translationKey != null && message.hasOwnProperty("translationKey")) { + if (!Array.isArray(message.translationKey)) + return "translationKey: array expected"; + for (let i = 0; i < message.translationKey.length; ++i) + if (!$util.isString(message.translationKey[i])) + return "translationKey: string[] expected"; + } + return null; + }; + + /** + * Creates a TranslationRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Authentication.TranslationRequest + * @static + * @param {Object.} object Plain object + * @returns {Authentication.TranslationRequest} TranslationRequest + */ + TranslationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Authentication.TranslationRequest) + return object; + let message = new $root.Authentication.TranslationRequest(); + if (object.translationKey) { + if (!Array.isArray(object.translationKey)) + throw TypeError(".Authentication.TranslationRequest.translationKey: array expected"); + message.translationKey = []; + for (let i = 0; i < object.translationKey.length; ++i) + message.translationKey[i] = String(object.translationKey[i]); + } + return message; + }; + + /** + * Creates a plain object from a TranslationRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof Authentication.TranslationRequest + * @static + * @param {Authentication.TranslationRequest} message TranslationRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TranslationRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.translationKey = []; + if (message.translationKey && message.translationKey.length) { + object.translationKey = []; + for (let j = 0; j < message.translationKey.length; ++j) + object.translationKey[j] = message.translationKey[j]; + } + return object; + }; + + /** + * Converts this TranslationRequest to JSON. + * @function toJSON + * @memberof Authentication.TranslationRequest + * @instance + * @returns {Object.} JSON object + */ + TranslationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TranslationRequest + * @function getTypeUrl + * @memberof Authentication.TranslationRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TranslationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Authentication.TranslationRequest"; + }; + + return TranslationRequest; + })(); + + Authentication.TranslationResponse = (function() { + + /** + * Properties of a TranslationResponse. + * @memberof Authentication + * @interface ITranslationResponse + * @property {Array.|null} [translationInfo] TranslationResponse translationInfo + */ + + /** + * Constructs a new TranslationResponse. + * @memberof Authentication + * @classdesc Represents a TranslationResponse. + * @implements ITranslationResponse + * @constructor + * @param {Authentication.ITranslationResponse=} [properties] Properties to set + */ + function TranslationResponse(properties) { + this.translationInfo = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TranslationResponse translationInfo. + * @member {Array.} translationInfo + * @memberof Authentication.TranslationResponse + * @instance + */ + TranslationResponse.prototype.translationInfo = $util.emptyArray; + + /** + * Creates a new TranslationResponse instance using the specified properties. + * @function create + * @memberof Authentication.TranslationResponse + * @static + * @param {Authentication.ITranslationResponse=} [properties] Properties to set + * @returns {Authentication.TranslationResponse} TranslationResponse instance + */ + TranslationResponse.create = function create(properties) { + return new TranslationResponse(properties); + }; + + /** + * Encodes the specified TranslationResponse message. Does not implicitly {@link Authentication.TranslationResponse.verify|verify} messages. + * @function encode + * @memberof Authentication.TranslationResponse + * @static + * @param {Authentication.ITranslationResponse} message TranslationResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TranslationResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.translationInfo != null && message.translationInfo.length) + for (let i = 0; i < message.translationInfo.length; ++i) + $root.Authentication.TranslationInfo.encode(message.translationInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TranslationResponse message, length delimited. Does not implicitly {@link Authentication.TranslationResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof Authentication.TranslationResponse + * @static + * @param {Authentication.ITranslationResponse} message TranslationResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TranslationResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TranslationResponse message from the specified reader or buffer. + * @function decode + * @memberof Authentication.TranslationResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {Authentication.TranslationResponse} TranslationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TranslationResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TranslationResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.translationInfo && message.translationInfo.length)) + message.translationInfo = []; + message.translationInfo.push($root.Authentication.TranslationInfo.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TranslationResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof Authentication.TranslationResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {Authentication.TranslationResponse} TranslationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TranslationResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TranslationResponse message. + * @function verify + * @memberof Authentication.TranslationResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TranslationResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.translationInfo != null && message.hasOwnProperty("translationInfo")) { + if (!Array.isArray(message.translationInfo)) + return "translationInfo: array expected"; + for (let i = 0; i < message.translationInfo.length; ++i) { + let error = $root.Authentication.TranslationInfo.verify(message.translationInfo[i]); + if (error) + return "translationInfo." + error; + } + } + return null; + }; + + /** + * Creates a TranslationResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Authentication.TranslationResponse + * @static + * @param {Object.} object Plain object + * @returns {Authentication.TranslationResponse} TranslationResponse + */ + TranslationResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Authentication.TranslationResponse) + return object; + let message = new $root.Authentication.TranslationResponse(); + if (object.translationInfo) { + if (!Array.isArray(object.translationInfo)) + throw TypeError(".Authentication.TranslationResponse.translationInfo: array expected"); + message.translationInfo = []; + for (let i = 0; i < object.translationInfo.length; ++i) { + if (typeof object.translationInfo[i] !== "object") + throw TypeError(".Authentication.TranslationResponse.translationInfo: object expected"); + message.translationInfo[i] = $root.Authentication.TranslationInfo.fromObject(object.translationInfo[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a TranslationResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof Authentication.TranslationResponse + * @static + * @param {Authentication.TranslationResponse} message TranslationResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TranslationResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.translationInfo = []; + if (message.translationInfo && message.translationInfo.length) { + object.translationInfo = []; + for (let j = 0; j < message.translationInfo.length; ++j) + object.translationInfo[j] = $root.Authentication.TranslationInfo.toObject(message.translationInfo[j], options); + } + return object; + }; + + /** + * Converts this TranslationResponse to JSON. + * @function toJSON + * @memberof Authentication.TranslationResponse + * @instance + * @returns {Object.} JSON object + */ + TranslationResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TranslationResponse + * @function getTypeUrl + * @memberof Authentication.TranslationResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TranslationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Authentication.TranslationResponse"; + }; + + return TranslationResponse; + })(); + return Authentication; })(); @@ -52957,6 +54648,266 @@ export const Enterprise = $root.Enterprise = (() => { return RoleTeams; })(); + Enterprise.TeamsByRole = (function() { + + /** + * Properties of a TeamsByRole. + * @memberof Enterprise + * @interface ITeamsByRole + * @property {number|Long|null} [roleId] TeamsByRole roleId + * @property {Array.|null} [teamUid] TeamsByRole teamUid + */ + + /** + * Constructs a new TeamsByRole. + * @memberof Enterprise + * @classdesc Represents a TeamsByRole. + * @implements ITeamsByRole + * @constructor + * @param {Enterprise.ITeamsByRole=} [properties] Properties to set + */ + function TeamsByRole(properties) { + this.teamUid = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TeamsByRole roleId. + * @member {number|Long} roleId + * @memberof Enterprise.TeamsByRole + * @instance + */ + TeamsByRole.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * TeamsByRole teamUid. + * @member {Array.} teamUid + * @memberof Enterprise.TeamsByRole + * @instance + */ + TeamsByRole.prototype.teamUid = $util.emptyArray; + + /** + * Creates a new TeamsByRole instance using the specified properties. + * @function create + * @memberof Enterprise.TeamsByRole + * @static + * @param {Enterprise.ITeamsByRole=} [properties] Properties to set + * @returns {Enterprise.TeamsByRole} TeamsByRole instance + */ + TeamsByRole.create = function create(properties) { + return new TeamsByRole(properties); + }; + + /** + * Encodes the specified TeamsByRole message. Does not implicitly {@link Enterprise.TeamsByRole.verify|verify} messages. + * @function encode + * @memberof Enterprise.TeamsByRole + * @static + * @param {Enterprise.ITeamsByRole} message TeamsByRole message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TeamsByRole.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); + if (message.teamUid != null && message.teamUid.length) + for (let i = 0; i < message.teamUid.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.teamUid[i]); + return writer; + }; + + /** + * Encodes the specified TeamsByRole message, length delimited. Does not implicitly {@link Enterprise.TeamsByRole.verify|verify} messages. + * @function encodeDelimited + * @memberof Enterprise.TeamsByRole + * @static + * @param {Enterprise.ITeamsByRole} message TeamsByRole message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TeamsByRole.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TeamsByRole message from the specified reader or buffer. + * @function decode + * @memberof Enterprise.TeamsByRole + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {Enterprise.TeamsByRole} TeamsByRole + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TeamsByRole.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamsByRole(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.roleId = reader.int64(); + break; + } + case 2: { + if (!(message.teamUid && message.teamUid.length)) + message.teamUid = []; + message.teamUid.push(reader.bytes()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TeamsByRole message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof Enterprise.TeamsByRole + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {Enterprise.TeamsByRole} TeamsByRole + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TeamsByRole.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TeamsByRole message. + * @function verify + * @memberof Enterprise.TeamsByRole + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TeamsByRole.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.roleId != null && message.hasOwnProperty("roleId")) + if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) + return "roleId: integer|Long expected"; + if (message.teamUid != null && message.hasOwnProperty("teamUid")) { + if (!Array.isArray(message.teamUid)) + return "teamUid: array expected"; + for (let i = 0; i < message.teamUid.length; ++i) + if (!(message.teamUid[i] && typeof message.teamUid[i].length === "number" || $util.isString(message.teamUid[i]))) + return "teamUid: buffer[] expected"; + } + return null; + }; + + /** + * Creates a TeamsByRole message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Enterprise.TeamsByRole + * @static + * @param {Object.} object Plain object + * @returns {Enterprise.TeamsByRole} TeamsByRole + */ + TeamsByRole.fromObject = function fromObject(object) { + if (object instanceof $root.Enterprise.TeamsByRole) + return object; + let message = new $root.Enterprise.TeamsByRole(); + if (object.roleId != null) + if ($util.Long) + (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === "string") + message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === "number") + message.roleId = object.roleId; + else if (typeof object.roleId === "object") + message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); + if (object.teamUid) { + if (!Array.isArray(object.teamUid)) + throw TypeError(".Enterprise.TeamsByRole.teamUid: array expected"); + message.teamUid = []; + for (let i = 0; i < object.teamUid.length; ++i) + if (typeof object.teamUid[i] === "string") + $util.base64.decode(object.teamUid[i], message.teamUid[i] = $util.newBuffer($util.base64.length(object.teamUid[i])), 0); + else if (object.teamUid[i].length >= 0) + message.teamUid[i] = object.teamUid[i]; + } + return message; + }; + + /** + * Creates a plain object from a TeamsByRole message. Also converts values to other types if specified. + * @function toObject + * @memberof Enterprise.TeamsByRole + * @static + * @param {Enterprise.TeamsByRole} message TeamsByRole + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TeamsByRole.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.teamUid = []; + if (options.defaults) + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.roleId = options.longs === String ? "0" : 0; + if (message.roleId != null && message.hasOwnProperty("roleId")) + if (typeof message.roleId === "number") + object.roleId = options.longs === String ? String(message.roleId) : message.roleId; + else + object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; + if (message.teamUid && message.teamUid.length) { + object.teamUid = []; + for (let j = 0; j < message.teamUid.length; ++j) + object.teamUid[j] = options.bytes === String ? $util.base64.encode(message.teamUid[j], 0, message.teamUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid[j]) : message.teamUid[j]; + } + return object; + }; + + /** + * Converts this TeamsByRole to JSON. + * @function toJSON + * @memberof Enterprise.TeamsByRole + * @instance + * @returns {Object.} JSON object + */ + TeamsByRole.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TeamsByRole + * @function getTypeUrl + * @memberof Enterprise.TeamsByRole + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TeamsByRole.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Enterprise.TeamsByRole"; + }; + + return TeamsByRole; + })(); + Enterprise.RoleUserAddKeys = (function() { /** @@ -53719,6 +55670,7 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} INVALID_NODE_ID=5 INVALID_NODE_ID value * @property {number} MAY_NOT_REMOVE_SELF_FROM_ROLE=6 MAY_NOT_REMOVE_SELF_FROM_ROLE value * @property {number} MUST_HAVE_ONE_USER_ADMIN=7 MUST_HAVE_ONE_USER_ADMIN value + * @property {number} INVALID_ROLE_ID=8 INVALID_ROLE_ID value */ Enterprise.RoleUserModifyStatus = (function() { const valuesById = {}, values = Object.create(valuesById); @@ -53730,6 +55682,7 @@ export const Enterprise = $root.Enterprise = (() => { values[valuesById[5] = "INVALID_NODE_ID"] = 5; values[valuesById[6] = "MAY_NOT_REMOVE_SELF_FROM_ROLE"] = 6; values[valuesById[7] = "MUST_HAVE_ONE_USER_ADMIN"] = 7; + values[valuesById[8] = "INVALID_ROLE_ID"] = 8; return values; })(); @@ -53927,6 +55880,7 @@ export const Enterprise = $root.Enterprise = (() => { case 5: case 6: case 7: + case 8: break; } if (message.message != null && message.hasOwnProperty("message")) @@ -54004,6 +55958,10 @@ export const Enterprise = $root.Enterprise = (() => { case 7: message.status = 7; break; + case "INVALID_ROLE_ID": + case 8: + message.status = 8; + break; } if (object.message != null) message.message = String(object.message); @@ -55000,6 +56958,7 @@ export const Enterprise = $root.Enterprise = (() => { case 5: case 6: case 7: + case 8: break; } if (message.message != null && message.hasOwnProperty("message")) @@ -55077,6 +57036,10 @@ export const Enterprise = $root.Enterprise = (() => { case 7: message.status = 7; break; + case "INVALID_ROLE_ID": + case 8: + message.status = 8; + break; } if (object.message != null) message.message = String(object.message); @@ -72000,7 +73963,6 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} USER_ALIASES=21 USER_ALIASES value * @property {number} COMPLIANCE_REPORT_CRITERIA_AND_FILTER=22 COMPLIANCE_REPORT_CRITERIA_AND_FILTER value * @property {number} COMPLIANCE_REPORTS=23 COMPLIANCE_REPORTS value - * @property {number} QUEUED_TEAM_USERS_INCLUDING_PENDING=24 QUEUED_TEAM_USERS_INCLUDING_PENDING value */ Enterprise.EnterpriseDataEntity = (function() { const valuesById = {}, values = Object.create(valuesById); @@ -72028,7 +73990,6 @@ export const Enterprise = $root.Enterprise = (() => { values[valuesById[21] = "USER_ALIASES"] = 21; values[valuesById[22] = "COMPLIANCE_REPORT_CRITERIA_AND_FILTER"] = 22; values[valuesById[23] = "COMPLIANCE_REPORTS"] = 23; - values[valuesById[24] = "QUEUED_TEAM_USERS_INCLUDING_PENDING"] = 24; return values; })(); @@ -72239,7 +74200,6 @@ export const Enterprise = $root.Enterprise = (() => { case 21: case 22: case 23: - case 24: break; } if (message["delete"] != null && message.hasOwnProperty("delete")) @@ -72370,10 +74330,6 @@ export const Enterprise = $root.Enterprise = (() => { case 23: message.entity = 23; break; - case "QUEUED_TEAM_USERS_INCLUDING_PENDING": - case 24: - message.entity = 24; - break; } if (object["delete"] != null) message["delete"] = Boolean(object["delete"]); @@ -91420,6 +93376,1005 @@ export const Enterprise = $root.Enterprise = (() => { return TeamsEnterpriseUsersAddUserResponse; })(); + Enterprise.TeamEnterpriseUserRemove = (function() { + + /** + * Properties of a TeamEnterpriseUserRemove. + * @memberof Enterprise + * @interface ITeamEnterpriseUserRemove + * @property {Uint8Array|null} [teamUid] TeamEnterpriseUserRemove teamUid + * @property {number|Long|null} [enterpriseUserId] TeamEnterpriseUserRemove enterpriseUserId + */ + + /** + * Constructs a new TeamEnterpriseUserRemove. + * @memberof Enterprise + * @classdesc Represents a TeamEnterpriseUserRemove. + * @implements ITeamEnterpriseUserRemove + * @constructor + * @param {Enterprise.ITeamEnterpriseUserRemove=} [properties] Properties to set + */ + function TeamEnterpriseUserRemove(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TeamEnterpriseUserRemove teamUid. + * @member {Uint8Array} teamUid + * @memberof Enterprise.TeamEnterpriseUserRemove + * @instance + */ + TeamEnterpriseUserRemove.prototype.teamUid = $util.newBuffer([]); + + /** + * TeamEnterpriseUserRemove enterpriseUserId. + * @member {number|Long} enterpriseUserId + * @memberof Enterprise.TeamEnterpriseUserRemove + * @instance + */ + TeamEnterpriseUserRemove.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new TeamEnterpriseUserRemove instance using the specified properties. + * @function create + * @memberof Enterprise.TeamEnterpriseUserRemove + * @static + * @param {Enterprise.ITeamEnterpriseUserRemove=} [properties] Properties to set + * @returns {Enterprise.TeamEnterpriseUserRemove} TeamEnterpriseUserRemove instance + */ + TeamEnterpriseUserRemove.create = function create(properties) { + return new TeamEnterpriseUserRemove(properties); + }; + + /** + * Encodes the specified TeamEnterpriseUserRemove message. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemove.verify|verify} messages. + * @function encode + * @memberof Enterprise.TeamEnterpriseUserRemove + * @static + * @param {Enterprise.ITeamEnterpriseUserRemove} message TeamEnterpriseUserRemove message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TeamEnterpriseUserRemove.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.enterpriseUserId); + return writer; + }; + + /** + * Encodes the specified TeamEnterpriseUserRemove message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemove.verify|verify} messages. + * @function encodeDelimited + * @memberof Enterprise.TeamEnterpriseUserRemove + * @static + * @param {Enterprise.ITeamEnterpriseUserRemove} message TeamEnterpriseUserRemove message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TeamEnterpriseUserRemove.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TeamEnterpriseUserRemove message from the specified reader or buffer. + * @function decode + * @memberof Enterprise.TeamEnterpriseUserRemove + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {Enterprise.TeamEnterpriseUserRemove} TeamEnterpriseUserRemove + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TeamEnterpriseUserRemove.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamEnterpriseUserRemove(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.teamUid = reader.bytes(); + break; + } + case 2: { + message.enterpriseUserId = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TeamEnterpriseUserRemove message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof Enterprise.TeamEnterpriseUserRemove + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {Enterprise.TeamEnterpriseUserRemove} TeamEnterpriseUserRemove + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TeamEnterpriseUserRemove.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TeamEnterpriseUserRemove message. + * @function verify + * @memberof Enterprise.TeamEnterpriseUserRemove + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TeamEnterpriseUserRemove.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.teamUid != null && message.hasOwnProperty("teamUid")) + if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) + return "teamUid: buffer expected"; + if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) + return "enterpriseUserId: integer|Long expected"; + return null; + }; + + /** + * Creates a TeamEnterpriseUserRemove message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Enterprise.TeamEnterpriseUserRemove + * @static + * @param {Object.} object Plain object + * @returns {Enterprise.TeamEnterpriseUserRemove} TeamEnterpriseUserRemove + */ + TeamEnterpriseUserRemove.fromObject = function fromObject(object) { + if (object instanceof $root.Enterprise.TeamEnterpriseUserRemove) + return object; + let message = new $root.Enterprise.TeamEnterpriseUserRemove(); + if (object.teamUid != null) + if (typeof object.teamUid === "string") + $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); + else if (object.teamUid.length >= 0) + message.teamUid = object.teamUid; + if (object.enterpriseUserId != null) + if ($util.Long) + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; + else if (typeof object.enterpriseUserId === "string") + message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); + else if (typeof object.enterpriseUserId === "number") + message.enterpriseUserId = object.enterpriseUserId; + else if (typeof object.enterpriseUserId === "object") + message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a TeamEnterpriseUserRemove message. Also converts values to other types if specified. + * @function toObject + * @memberof Enterprise.TeamEnterpriseUserRemove + * @static + * @param {Enterprise.TeamEnterpriseUserRemove} message TeamEnterpriseUserRemove + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TeamEnterpriseUserRemove.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.teamUid = ""; + else { + object.teamUid = []; + if (options.bytes !== Array) + object.teamUid = $util.newBuffer(object.teamUid); + } + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.enterpriseUserId = options.longs === String ? "0" : 0; + } + if (message.teamUid != null && message.hasOwnProperty("teamUid")) + object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; + if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) + if (typeof message.enterpriseUserId === "number") + object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + else + object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; + return object; + }; + + /** + * Converts this TeamEnterpriseUserRemove to JSON. + * @function toJSON + * @memberof Enterprise.TeamEnterpriseUserRemove + * @instance + * @returns {Object.} JSON object + */ + TeamEnterpriseUserRemove.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TeamEnterpriseUserRemove + * @function getTypeUrl + * @memberof Enterprise.TeamEnterpriseUserRemove + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TeamEnterpriseUserRemove.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Enterprise.TeamEnterpriseUserRemove"; + }; + + return TeamEnterpriseUserRemove; + })(); + + Enterprise.TeamEnterpriseUserRemovesRequest = (function() { + + /** + * Properties of a TeamEnterpriseUserRemovesRequest. + * @memberof Enterprise + * @interface ITeamEnterpriseUserRemovesRequest + * @property {Array.|null} [teamEnterpriseUserRemove] TeamEnterpriseUserRemovesRequest teamEnterpriseUserRemove + */ + + /** + * Constructs a new TeamEnterpriseUserRemovesRequest. + * @memberof Enterprise + * @classdesc Represents a TeamEnterpriseUserRemovesRequest. + * @implements ITeamEnterpriseUserRemovesRequest + * @constructor + * @param {Enterprise.ITeamEnterpriseUserRemovesRequest=} [properties] Properties to set + */ + function TeamEnterpriseUserRemovesRequest(properties) { + this.teamEnterpriseUserRemove = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TeamEnterpriseUserRemovesRequest teamEnterpriseUserRemove. + * @member {Array.} teamEnterpriseUserRemove + * @memberof Enterprise.TeamEnterpriseUserRemovesRequest + * @instance + */ + TeamEnterpriseUserRemovesRequest.prototype.teamEnterpriseUserRemove = $util.emptyArray; + + /** + * Creates a new TeamEnterpriseUserRemovesRequest instance using the specified properties. + * @function create + * @memberof Enterprise.TeamEnterpriseUserRemovesRequest + * @static + * @param {Enterprise.ITeamEnterpriseUserRemovesRequest=} [properties] Properties to set + * @returns {Enterprise.TeamEnterpriseUserRemovesRequest} TeamEnterpriseUserRemovesRequest instance + */ + TeamEnterpriseUserRemovesRequest.create = function create(properties) { + return new TeamEnterpriseUserRemovesRequest(properties); + }; + + /** + * Encodes the specified TeamEnterpriseUserRemovesRequest message. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemovesRequest.verify|verify} messages. + * @function encode + * @memberof Enterprise.TeamEnterpriseUserRemovesRequest + * @static + * @param {Enterprise.ITeamEnterpriseUserRemovesRequest} message TeamEnterpriseUserRemovesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TeamEnterpriseUserRemovesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.teamEnterpriseUserRemove != null && message.teamEnterpriseUserRemove.length) + for (let i = 0; i < message.teamEnterpriseUserRemove.length; ++i) + $root.Enterprise.TeamEnterpriseUserRemove.encode(message.teamEnterpriseUserRemove[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TeamEnterpriseUserRemovesRequest message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemovesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof Enterprise.TeamEnterpriseUserRemovesRequest + * @static + * @param {Enterprise.ITeamEnterpriseUserRemovesRequest} message TeamEnterpriseUserRemovesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TeamEnterpriseUserRemovesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TeamEnterpriseUserRemovesRequest message from the specified reader or buffer. + * @function decode + * @memberof Enterprise.TeamEnterpriseUserRemovesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {Enterprise.TeamEnterpriseUserRemovesRequest} TeamEnterpriseUserRemovesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TeamEnterpriseUserRemovesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamEnterpriseUserRemovesRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.teamEnterpriseUserRemove && message.teamEnterpriseUserRemove.length)) + message.teamEnterpriseUserRemove = []; + message.teamEnterpriseUserRemove.push($root.Enterprise.TeamEnterpriseUserRemove.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TeamEnterpriseUserRemovesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof Enterprise.TeamEnterpriseUserRemovesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {Enterprise.TeamEnterpriseUserRemovesRequest} TeamEnterpriseUserRemovesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TeamEnterpriseUserRemovesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TeamEnterpriseUserRemovesRequest message. + * @function verify + * @memberof Enterprise.TeamEnterpriseUserRemovesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TeamEnterpriseUserRemovesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.teamEnterpriseUserRemove != null && message.hasOwnProperty("teamEnterpriseUserRemove")) { + if (!Array.isArray(message.teamEnterpriseUserRemove)) + return "teamEnterpriseUserRemove: array expected"; + for (let i = 0; i < message.teamEnterpriseUserRemove.length; ++i) { + let error = $root.Enterprise.TeamEnterpriseUserRemove.verify(message.teamEnterpriseUserRemove[i]); + if (error) + return "teamEnterpriseUserRemove." + error; + } + } + return null; + }; + + /** + * Creates a TeamEnterpriseUserRemovesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Enterprise.TeamEnterpriseUserRemovesRequest + * @static + * @param {Object.} object Plain object + * @returns {Enterprise.TeamEnterpriseUserRemovesRequest} TeamEnterpriseUserRemovesRequest + */ + TeamEnterpriseUserRemovesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Enterprise.TeamEnterpriseUserRemovesRequest) + return object; + let message = new $root.Enterprise.TeamEnterpriseUserRemovesRequest(); + if (object.teamEnterpriseUserRemove) { + if (!Array.isArray(object.teamEnterpriseUserRemove)) + throw TypeError(".Enterprise.TeamEnterpriseUserRemovesRequest.teamEnterpriseUserRemove: array expected"); + message.teamEnterpriseUserRemove = []; + for (let i = 0; i < object.teamEnterpriseUserRemove.length; ++i) { + if (typeof object.teamEnterpriseUserRemove[i] !== "object") + throw TypeError(".Enterprise.TeamEnterpriseUserRemovesRequest.teamEnterpriseUserRemove: object expected"); + message.teamEnterpriseUserRemove[i] = $root.Enterprise.TeamEnterpriseUserRemove.fromObject(object.teamEnterpriseUserRemove[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a TeamEnterpriseUserRemovesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof Enterprise.TeamEnterpriseUserRemovesRequest + * @static + * @param {Enterprise.TeamEnterpriseUserRemovesRequest} message TeamEnterpriseUserRemovesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TeamEnterpriseUserRemovesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.teamEnterpriseUserRemove = []; + if (message.teamEnterpriseUserRemove && message.teamEnterpriseUserRemove.length) { + object.teamEnterpriseUserRemove = []; + for (let j = 0; j < message.teamEnterpriseUserRemove.length; ++j) + object.teamEnterpriseUserRemove[j] = $root.Enterprise.TeamEnterpriseUserRemove.toObject(message.teamEnterpriseUserRemove[j], options); + } + return object; + }; + + /** + * Converts this TeamEnterpriseUserRemovesRequest to JSON. + * @function toJSON + * @memberof Enterprise.TeamEnterpriseUserRemovesRequest + * @instance + * @returns {Object.} JSON object + */ + TeamEnterpriseUserRemovesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TeamEnterpriseUserRemovesRequest + * @function getTypeUrl + * @memberof Enterprise.TeamEnterpriseUserRemovesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TeamEnterpriseUserRemovesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Enterprise.TeamEnterpriseUserRemovesRequest"; + }; + + return TeamEnterpriseUserRemovesRequest; + })(); + + Enterprise.TeamEnterpriseUserRemovesResponse = (function() { + + /** + * Properties of a TeamEnterpriseUserRemovesResponse. + * @memberof Enterprise + * @interface ITeamEnterpriseUserRemovesResponse + * @property {Array.|null} [teamEnterpriseUserRemoveResponse] TeamEnterpriseUserRemovesResponse teamEnterpriseUserRemoveResponse + */ + + /** + * Constructs a new TeamEnterpriseUserRemovesResponse. + * @memberof Enterprise + * @classdesc Represents a TeamEnterpriseUserRemovesResponse. + * @implements ITeamEnterpriseUserRemovesResponse + * @constructor + * @param {Enterprise.ITeamEnterpriseUserRemovesResponse=} [properties] Properties to set + */ + function TeamEnterpriseUserRemovesResponse(properties) { + this.teamEnterpriseUserRemoveResponse = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TeamEnterpriseUserRemovesResponse teamEnterpriseUserRemoveResponse. + * @member {Array.} teamEnterpriseUserRemoveResponse + * @memberof Enterprise.TeamEnterpriseUserRemovesResponse + * @instance + */ + TeamEnterpriseUserRemovesResponse.prototype.teamEnterpriseUserRemoveResponse = $util.emptyArray; + + /** + * Creates a new TeamEnterpriseUserRemovesResponse instance using the specified properties. + * @function create + * @memberof Enterprise.TeamEnterpriseUserRemovesResponse + * @static + * @param {Enterprise.ITeamEnterpriseUserRemovesResponse=} [properties] Properties to set + * @returns {Enterprise.TeamEnterpriseUserRemovesResponse} TeamEnterpriseUserRemovesResponse instance + */ + TeamEnterpriseUserRemovesResponse.create = function create(properties) { + return new TeamEnterpriseUserRemovesResponse(properties); + }; + + /** + * Encodes the specified TeamEnterpriseUserRemovesResponse message. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemovesResponse.verify|verify} messages. + * @function encode + * @memberof Enterprise.TeamEnterpriseUserRemovesResponse + * @static + * @param {Enterprise.ITeamEnterpriseUserRemovesResponse} message TeamEnterpriseUserRemovesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TeamEnterpriseUserRemovesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.teamEnterpriseUserRemoveResponse != null && message.teamEnterpriseUserRemoveResponse.length) + for (let i = 0; i < message.teamEnterpriseUserRemoveResponse.length; ++i) + $root.Enterprise.TeamEnterpriseUserRemoveResponse.encode(message.teamEnterpriseUserRemoveResponse[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TeamEnterpriseUserRemovesResponse message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemovesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof Enterprise.TeamEnterpriseUserRemovesResponse + * @static + * @param {Enterprise.ITeamEnterpriseUserRemovesResponse} message TeamEnterpriseUserRemovesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TeamEnterpriseUserRemovesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TeamEnterpriseUserRemovesResponse message from the specified reader or buffer. + * @function decode + * @memberof Enterprise.TeamEnterpriseUserRemovesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {Enterprise.TeamEnterpriseUserRemovesResponse} TeamEnterpriseUserRemovesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TeamEnterpriseUserRemovesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamEnterpriseUserRemovesResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.teamEnterpriseUserRemoveResponse && message.teamEnterpriseUserRemoveResponse.length)) + message.teamEnterpriseUserRemoveResponse = []; + message.teamEnterpriseUserRemoveResponse.push($root.Enterprise.TeamEnterpriseUserRemoveResponse.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TeamEnterpriseUserRemovesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof Enterprise.TeamEnterpriseUserRemovesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {Enterprise.TeamEnterpriseUserRemovesResponse} TeamEnterpriseUserRemovesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TeamEnterpriseUserRemovesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TeamEnterpriseUserRemovesResponse message. + * @function verify + * @memberof Enterprise.TeamEnterpriseUserRemovesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TeamEnterpriseUserRemovesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.teamEnterpriseUserRemoveResponse != null && message.hasOwnProperty("teamEnterpriseUserRemoveResponse")) { + if (!Array.isArray(message.teamEnterpriseUserRemoveResponse)) + return "teamEnterpriseUserRemoveResponse: array expected"; + for (let i = 0; i < message.teamEnterpriseUserRemoveResponse.length; ++i) { + let error = $root.Enterprise.TeamEnterpriseUserRemoveResponse.verify(message.teamEnterpriseUserRemoveResponse[i]); + if (error) + return "teamEnterpriseUserRemoveResponse." + error; + } + } + return null; + }; + + /** + * Creates a TeamEnterpriseUserRemovesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Enterprise.TeamEnterpriseUserRemovesResponse + * @static + * @param {Object.} object Plain object + * @returns {Enterprise.TeamEnterpriseUserRemovesResponse} TeamEnterpriseUserRemovesResponse + */ + TeamEnterpriseUserRemovesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Enterprise.TeamEnterpriseUserRemovesResponse) + return object; + let message = new $root.Enterprise.TeamEnterpriseUserRemovesResponse(); + if (object.teamEnterpriseUserRemoveResponse) { + if (!Array.isArray(object.teamEnterpriseUserRemoveResponse)) + throw TypeError(".Enterprise.TeamEnterpriseUserRemovesResponse.teamEnterpriseUserRemoveResponse: array expected"); + message.teamEnterpriseUserRemoveResponse = []; + for (let i = 0; i < object.teamEnterpriseUserRemoveResponse.length; ++i) { + if (typeof object.teamEnterpriseUserRemoveResponse[i] !== "object") + throw TypeError(".Enterprise.TeamEnterpriseUserRemovesResponse.teamEnterpriseUserRemoveResponse: object expected"); + message.teamEnterpriseUserRemoveResponse[i] = $root.Enterprise.TeamEnterpriseUserRemoveResponse.fromObject(object.teamEnterpriseUserRemoveResponse[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a TeamEnterpriseUserRemovesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof Enterprise.TeamEnterpriseUserRemovesResponse + * @static + * @param {Enterprise.TeamEnterpriseUserRemovesResponse} message TeamEnterpriseUserRemovesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TeamEnterpriseUserRemovesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.teamEnterpriseUserRemoveResponse = []; + if (message.teamEnterpriseUserRemoveResponse && message.teamEnterpriseUserRemoveResponse.length) { + object.teamEnterpriseUserRemoveResponse = []; + for (let j = 0; j < message.teamEnterpriseUserRemoveResponse.length; ++j) + object.teamEnterpriseUserRemoveResponse[j] = $root.Enterprise.TeamEnterpriseUserRemoveResponse.toObject(message.teamEnterpriseUserRemoveResponse[j], options); + } + return object; + }; + + /** + * Converts this TeamEnterpriseUserRemovesResponse to JSON. + * @function toJSON + * @memberof Enterprise.TeamEnterpriseUserRemovesResponse + * @instance + * @returns {Object.} JSON object + */ + TeamEnterpriseUserRemovesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TeamEnterpriseUserRemovesResponse + * @function getTypeUrl + * @memberof Enterprise.TeamEnterpriseUserRemovesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TeamEnterpriseUserRemovesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Enterprise.TeamEnterpriseUserRemovesResponse"; + }; + + return TeamEnterpriseUserRemovesResponse; + })(); + + Enterprise.TeamEnterpriseUserRemoveResponse = (function() { + + /** + * Properties of a TeamEnterpriseUserRemoveResponse. + * @memberof Enterprise + * @interface ITeamEnterpriseUserRemoveResponse + * @property {Enterprise.ITeamEnterpriseUserRemove|null} [teamEnterpriseUserRemove] TeamEnterpriseUserRemoveResponse teamEnterpriseUserRemove + * @property {boolean|null} [success] TeamEnterpriseUserRemoveResponse success + * @property {string|null} [resultCode] TeamEnterpriseUserRemoveResponse resultCode + * @property {string|null} [message] TeamEnterpriseUserRemoveResponse message + * @property {string|null} [additionalInfo] TeamEnterpriseUserRemoveResponse additionalInfo + */ + + /** + * Constructs a new TeamEnterpriseUserRemoveResponse. + * @memberof Enterprise + * @classdesc Represents a TeamEnterpriseUserRemoveResponse. + * @implements ITeamEnterpriseUserRemoveResponse + * @constructor + * @param {Enterprise.ITeamEnterpriseUserRemoveResponse=} [properties] Properties to set + */ + function TeamEnterpriseUserRemoveResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TeamEnterpriseUserRemoveResponse teamEnterpriseUserRemove. + * @member {Enterprise.ITeamEnterpriseUserRemove|null|undefined} teamEnterpriseUserRemove + * @memberof Enterprise.TeamEnterpriseUserRemoveResponse + * @instance + */ + TeamEnterpriseUserRemoveResponse.prototype.teamEnterpriseUserRemove = null; + + /** + * TeamEnterpriseUserRemoveResponse success. + * @member {boolean} success + * @memberof Enterprise.TeamEnterpriseUserRemoveResponse + * @instance + */ + TeamEnterpriseUserRemoveResponse.prototype.success = false; + + /** + * TeamEnterpriseUserRemoveResponse resultCode. + * @member {string} resultCode + * @memberof Enterprise.TeamEnterpriseUserRemoveResponse + * @instance + */ + TeamEnterpriseUserRemoveResponse.prototype.resultCode = ""; + + /** + * TeamEnterpriseUserRemoveResponse message. + * @member {string} message + * @memberof Enterprise.TeamEnterpriseUserRemoveResponse + * @instance + */ + TeamEnterpriseUserRemoveResponse.prototype.message = ""; + + /** + * TeamEnterpriseUserRemoveResponse additionalInfo. + * @member {string} additionalInfo + * @memberof Enterprise.TeamEnterpriseUserRemoveResponse + * @instance + */ + TeamEnterpriseUserRemoveResponse.prototype.additionalInfo = ""; + + /** + * Creates a new TeamEnterpriseUserRemoveResponse instance using the specified properties. + * @function create + * @memberof Enterprise.TeamEnterpriseUserRemoveResponse + * @static + * @param {Enterprise.ITeamEnterpriseUserRemoveResponse=} [properties] Properties to set + * @returns {Enterprise.TeamEnterpriseUserRemoveResponse} TeamEnterpriseUserRemoveResponse instance + */ + TeamEnterpriseUserRemoveResponse.create = function create(properties) { + return new TeamEnterpriseUserRemoveResponse(properties); + }; + + /** + * Encodes the specified TeamEnterpriseUserRemoveResponse message. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemoveResponse.verify|verify} messages. + * @function encode + * @memberof Enterprise.TeamEnterpriseUserRemoveResponse + * @static + * @param {Enterprise.ITeamEnterpriseUserRemoveResponse} message TeamEnterpriseUserRemoveResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TeamEnterpriseUserRemoveResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.teamEnterpriseUserRemove != null && Object.hasOwnProperty.call(message, "teamEnterpriseUserRemove")) + $root.Enterprise.TeamEnterpriseUserRemove.encode(message.teamEnterpriseUserRemove, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.success != null && Object.hasOwnProperty.call(message, "success")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.success); + if (message.resultCode != null && Object.hasOwnProperty.call(message, "resultCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resultCode); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.message); + if (message.additionalInfo != null && Object.hasOwnProperty.call(message, "additionalInfo")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.additionalInfo); + return writer; + }; + + /** + * Encodes the specified TeamEnterpriseUserRemoveResponse message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemoveResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof Enterprise.TeamEnterpriseUserRemoveResponse + * @static + * @param {Enterprise.ITeamEnterpriseUserRemoveResponse} message TeamEnterpriseUserRemoveResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TeamEnterpriseUserRemoveResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TeamEnterpriseUserRemoveResponse message from the specified reader or buffer. + * @function decode + * @memberof Enterprise.TeamEnterpriseUserRemoveResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {Enterprise.TeamEnterpriseUserRemoveResponse} TeamEnterpriseUserRemoveResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TeamEnterpriseUserRemoveResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamEnterpriseUserRemoveResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.teamEnterpriseUserRemove = $root.Enterprise.TeamEnterpriseUserRemove.decode(reader, reader.uint32()); + break; + } + case 2: { + message.success = reader.bool(); + break; + } + case 3: { + message.resultCode = reader.string(); + break; + } + case 4: { + message.message = reader.string(); + break; + } + case 5: { + message.additionalInfo = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TeamEnterpriseUserRemoveResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof Enterprise.TeamEnterpriseUserRemoveResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {Enterprise.TeamEnterpriseUserRemoveResponse} TeamEnterpriseUserRemoveResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TeamEnterpriseUserRemoveResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TeamEnterpriseUserRemoveResponse message. + * @function verify + * @memberof Enterprise.TeamEnterpriseUserRemoveResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TeamEnterpriseUserRemoveResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.teamEnterpriseUserRemove != null && message.hasOwnProperty("teamEnterpriseUserRemove")) { + let error = $root.Enterprise.TeamEnterpriseUserRemove.verify(message.teamEnterpriseUserRemove); + if (error) + return "teamEnterpriseUserRemove." + error; + } + if (message.success != null && message.hasOwnProperty("success")) + if (typeof message.success !== "boolean") + return "success: boolean expected"; + if (message.resultCode != null && message.hasOwnProperty("resultCode")) + if (!$util.isString(message.resultCode)) + return "resultCode: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) + if (!$util.isString(message.additionalInfo)) + return "additionalInfo: string expected"; + return null; + }; + + /** + * Creates a TeamEnterpriseUserRemoveResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Enterprise.TeamEnterpriseUserRemoveResponse + * @static + * @param {Object.} object Plain object + * @returns {Enterprise.TeamEnterpriseUserRemoveResponse} TeamEnterpriseUserRemoveResponse + */ + TeamEnterpriseUserRemoveResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Enterprise.TeamEnterpriseUserRemoveResponse) + return object; + let message = new $root.Enterprise.TeamEnterpriseUserRemoveResponse(); + if (object.teamEnterpriseUserRemove != null) { + if (typeof object.teamEnterpriseUserRemove !== "object") + throw TypeError(".Enterprise.TeamEnterpriseUserRemoveResponse.teamEnterpriseUserRemove: object expected"); + message.teamEnterpriseUserRemove = $root.Enterprise.TeamEnterpriseUserRemove.fromObject(object.teamEnterpriseUserRemove); + } + if (object.success != null) + message.success = Boolean(object.success); + if (object.resultCode != null) + message.resultCode = String(object.resultCode); + if (object.message != null) + message.message = String(object.message); + if (object.additionalInfo != null) + message.additionalInfo = String(object.additionalInfo); + return message; + }; + + /** + * Creates a plain object from a TeamEnterpriseUserRemoveResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof Enterprise.TeamEnterpriseUserRemoveResponse + * @static + * @param {Enterprise.TeamEnterpriseUserRemoveResponse} message TeamEnterpriseUserRemoveResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TeamEnterpriseUserRemoveResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.teamEnterpriseUserRemove = null; + object.success = false; + object.resultCode = ""; + object.message = ""; + object.additionalInfo = ""; + } + if (message.teamEnterpriseUserRemove != null && message.hasOwnProperty("teamEnterpriseUserRemove")) + object.teamEnterpriseUserRemove = $root.Enterprise.TeamEnterpriseUserRemove.toObject(message.teamEnterpriseUserRemove, options); + if (message.success != null && message.hasOwnProperty("success")) + object.success = message.success; + if (message.resultCode != null && message.hasOwnProperty("resultCode")) + object.resultCode = message.resultCode; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) + object.additionalInfo = message.additionalInfo; + return object; + }; + + /** + * Converts this TeamEnterpriseUserRemoveResponse to JSON. + * @function toJSON + * @memberof Enterprise.TeamEnterpriseUserRemoveResponse + * @instance + * @returns {Object.} JSON object + */ + TeamEnterpriseUserRemoveResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TeamEnterpriseUserRemoveResponse + * @function getTypeUrl + * @memberof Enterprise.TeamEnterpriseUserRemoveResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TeamEnterpriseUserRemoveResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Enterprise.TeamEnterpriseUserRemoveResponse"; + }; + + return TeamEnterpriseUserRemoveResponse; + })(); + Enterprise.DomainAlias = (function() { /** @@ -98779,6 +101734,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @property {number|null} [units] License units * @property {boolean|null} [pendingEnterprise] License pendingEnterprise * @property {boolean|null} [isPamEnabled] License isPamEnabled + * @property {boolean|null} [isKsmEnabled] License isKsmEnabled */ /** @@ -99060,6 +102016,14 @@ export const AccountSummary = $root.AccountSummary = (() => { */ License.prototype.isPamEnabled = false; + /** + * License isKsmEnabled. + * @member {boolean} isKsmEnabled + * @memberof AccountSummary.License + * @instance + */ + License.prototype.isKsmEnabled = false; + /** * Creates a new License instance using the specified properties. * @function create @@ -99150,6 +102114,8 @@ export const AccountSummary = $root.AccountSummary = (() => { writer.uint32(/* id 33, wireType 0 =*/264).bool(message.pendingEnterprise); if (message.isPamEnabled != null && Object.hasOwnProperty.call(message, "isPamEnabled")) writer.uint32(/* id 34, wireType 0 =*/272).bool(message.isPamEnabled); + if (message.isKsmEnabled != null && Object.hasOwnProperty.call(message, "isKsmEnabled")) + writer.uint32(/* id 35, wireType 0 =*/280).bool(message.isKsmEnabled); return writer; }; @@ -99316,6 +102282,10 @@ export const AccountSummary = $root.AccountSummary = (() => { message.isPamEnabled = reader.bool(); break; } + case 35: { + message.isKsmEnabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -99452,6 +102422,9 @@ export const AccountSummary = $root.AccountSummary = (() => { if (message.isPamEnabled != null && message.hasOwnProperty("isPamEnabled")) if (typeof message.isPamEnabled !== "boolean") return "isPamEnabled: boolean expected"; + if (message.isKsmEnabled != null && message.hasOwnProperty("isKsmEnabled")) + if (typeof message.isKsmEnabled !== "boolean") + return "isKsmEnabled: boolean expected"; return null; }; @@ -99595,6 +102568,8 @@ export const AccountSummary = $root.AccountSummary = (() => { message.pendingEnterprise = Boolean(object.pendingEnterprise); if (object.isPamEnabled != null) message.isPamEnabled = Boolean(object.isPamEnabled); + if (object.isKsmEnabled != null) + message.isKsmEnabled = Boolean(object.isKsmEnabled); return message; }; @@ -99683,6 +102658,7 @@ export const AccountSummary = $root.AccountSummary = (() => { object.units = 0; object.pendingEnterprise = false; object.isPamEnabled = false; + object.isKsmEnabled = false; } if (message.subscriptionCode != null && message.hasOwnProperty("subscriptionCode")) object.subscriptionCode = message.subscriptionCode; @@ -99774,6 +102750,8 @@ export const AccountSummary = $root.AccountSummary = (() => { object.pendingEnterprise = message.pendingEnterprise; if (message.isPamEnabled != null && message.hasOwnProperty("isPamEnabled")) object.isPamEnabled = message.isPamEnabled; + if (message.isKsmEnabled != null && message.hasOwnProperty("isKsmEnabled")) + object.isKsmEnabled = message.isKsmEnabled; return object; }; @@ -104657,11 +107635,13 @@ export const Automator = $root.Automator = (() => { * @enum {number} * @property {number} UNKNOWN_PROTOCOL=0 UNKNOWN_PROTOCOL value * @property {number} SAML2=1 SAML2 value + * @property {number} JWT=2 JWT value */ Automator.SsoAuthenticationProtocolType = (function() { const valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNKNOWN_PROTOCOL"] = 0; values[valuesById[1] = "SAML2"] = 1; + values[valuesById[2] = "JWT"] = 2; return values; })(); @@ -105560,6 +108540,7 @@ export const Automator = $root.Automator = (() => { return "ssoAuthenticationProtocolType: enum value expected"; case 0: case 1: + case 2: break; } if (message.authMessage != null && message.hasOwnProperty("authMessage")) @@ -105636,6 +108617,10 @@ export const Automator = $root.Automator = (() => { case 1: message.ssoAuthenticationProtocolType = 1; break; + case "JWT": + case 2: + message.ssoAuthenticationProtocolType = 2; + break; } if (object.authMessage != null) message.authMessage = String(object.authMessage); @@ -115246,6 +118231,7 @@ export const Automator = $root.Automator = (() => { return "ssoAuthenticationProtocolType: enum value expected"; case 0: case 1: + case 2: break; } if (message.authMessage != null && message.hasOwnProperty("authMessage")) @@ -115320,6 +118306,10 @@ export const Automator = $root.Automator = (() => { case 1: message.ssoAuthenticationProtocolType = 1; break; + case "JWT": + case 2: + message.ssoAuthenticationProtocolType = 2; + break; } if (object.authMessage != null) message.authMessage = String(object.authMessage); @@ -116830,6 +119820,7 @@ export const Automator = $root.Automator = (() => { return "ssoAuthenticationProtocolType: enum value expected"; case 0: case 1: + case 2: break; } if (message.authMessage != null && message.hasOwnProperty("authMessage")) @@ -116898,6 +119889,10 @@ export const Automator = $root.Automator = (() => { case 1: message.ssoAuthenticationProtocolType = 1; break; + case "JWT": + case 2: + message.ssoAuthenticationProtocolType = 2; + break; } if (object.authMessage != null) message.authMessage = String(object.authMessage); @@ -118021,10 +121016,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @name SsoCloud.AuthProtocolType * @enum {number} * @property {number} SAML2=0 SAML2 value + * @property {number} JWT=1 JWT value */ SsoCloud.AuthProtocolType = (function() { const valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "SAML2"] = 0; + values[valuesById[1] = "JWT"] = 1; return values; })(); @@ -119135,6 +122132,7 @@ export const SsoCloud = $root.SsoCloud = (() => { default: return "ssoAuthProtocolType: enum value expected"; case 0: + case 1: break; } if (message.ssoCloudSettingAction != null && message.hasOwnProperty("ssoCloudSettingAction")) { @@ -119192,6 +122190,10 @@ export const SsoCloud = $root.SsoCloud = (() => { case 0: message.ssoAuthProtocolType = 0; break; + case "JWT": + case 1: + message.ssoAuthProtocolType = 1; + break; } if (object.ssoCloudSettingAction) { if (!Array.isArray(object.ssoCloudSettingAction)) @@ -144446,7 +147448,6 @@ export const Tokens = $root.Tokens = (() => { case 21: case 22: case 23: - case 24: break; } if (message.nodeId != null && message.hasOwnProperty("nodeId")) @@ -144573,10 +147574,6 @@ export const Tokens = $root.Tokens = (() => { case 23: message.entity = 23; break; - case "QUEUED_TEAM_USERS_INCLUDING_PENDING": - case 24: - message.entity = 24; - break; } if (object.nodeId != null) if ($util.Long) @@ -148604,6 +151601,8 @@ export const Tokens = $root.Tokens = (() => { * @property {number|null} [clientDataVersion] VaultSyncDownContinuationToken clientDataVersion * @property {boolean|null} [noRemovedSharedFoldersWithTeamAccess] VaultSyncDownContinuationToken noRemovedSharedFoldersWithTeamAccess * @property {number|Long|null} [notificationSyncPoint] VaultSyncDownContinuationToken notificationSyncPoint + * @property {boolean|null} [skipUserRevision] VaultSyncDownContinuationToken skipUserRevision + * @property {number|null} [multiPageIncrementalClientVersion] VaultSyncDownContinuationToken multiPageIncrementalClientVersion */ /** @@ -148709,6 +151708,22 @@ export const Tokens = $root.Tokens = (() => { */ VaultSyncDownContinuationToken.prototype.notificationSyncPoint = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * VaultSyncDownContinuationToken skipUserRevision. + * @member {boolean} skipUserRevision + * @memberof Tokens.VaultSyncDownContinuationToken + * @instance + */ + VaultSyncDownContinuationToken.prototype.skipUserRevision = false; + + /** + * VaultSyncDownContinuationToken multiPageIncrementalClientVersion. + * @member {number} multiPageIncrementalClientVersion + * @memberof Tokens.VaultSyncDownContinuationToken + * @instance + */ + VaultSyncDownContinuationToken.prototype.multiPageIncrementalClientVersion = 0; + /** * Creates a new VaultSyncDownContinuationToken instance using the specified properties. * @function create @@ -148755,6 +151770,10 @@ export const Tokens = $root.Tokens = (() => { writer.uint32(/* id 10, wireType 0 =*/80).bool(message.noRemovedSharedFoldersWithTeamAccess); if (message.notificationSyncPoint != null && Object.hasOwnProperty.call(message, "notificationSyncPoint")) writer.uint32(/* id 11, wireType 0 =*/88).int64(message.notificationSyncPoint); + if (message.skipUserRevision != null && Object.hasOwnProperty.call(message, "skipUserRevision")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.skipUserRevision); + if (message.multiPageIncrementalClientVersion != null && Object.hasOwnProperty.call(message, "multiPageIncrementalClientVersion")) + writer.uint32(/* id 14, wireType 0 =*/112).int32(message.multiPageIncrementalClientVersion); return writer; }; @@ -148833,6 +151852,14 @@ export const Tokens = $root.Tokens = (() => { message.notificationSyncPoint = reader.int64(); break; } + case 12: { + message.skipUserRevision = reader.bool(); + break; + } + case 14: { + message.multiPageIncrementalClientVersion = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -148903,6 +151930,12 @@ export const Tokens = $root.Tokens = (() => { if (message.notificationSyncPoint != null && message.hasOwnProperty("notificationSyncPoint")) if (!$util.isInteger(message.notificationSyncPoint) && !(message.notificationSyncPoint && $util.isInteger(message.notificationSyncPoint.low) && $util.isInteger(message.notificationSyncPoint.high))) return "notificationSyncPoint: integer|Long expected"; + if (message.skipUserRevision != null && message.hasOwnProperty("skipUserRevision")) + if (typeof message.skipUserRevision !== "boolean") + return "skipUserRevision: boolean expected"; + if (message.multiPageIncrementalClientVersion != null && message.hasOwnProperty("multiPageIncrementalClientVersion")) + if (!$util.isInteger(message.multiPageIncrementalClientVersion)) + return "multiPageIncrementalClientVersion: integer expected"; return null; }; @@ -148964,6 +151997,10 @@ export const Tokens = $root.Tokens = (() => { message.notificationSyncPoint = object.notificationSyncPoint; else if (typeof object.notificationSyncPoint === "object") message.notificationSyncPoint = new $util.LongBits(object.notificationSyncPoint.low >>> 0, object.notificationSyncPoint.high >>> 0).toNumber(); + if (object.skipUserRevision != null) + message.skipUserRevision = Boolean(object.skipUserRevision); + if (object.multiPageIncrementalClientVersion != null) + message.multiPageIncrementalClientVersion = object.multiPageIncrementalClientVersion | 0; return message; }; @@ -149004,6 +152041,8 @@ export const Tokens = $root.Tokens = (() => { object.notificationSyncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.notificationSyncPoint = options.longs === String ? "0" : 0; + object.skipUserRevision = false; + object.multiPageIncrementalClientVersion = 0; } if (message.tokenVersion != null && message.hasOwnProperty("tokenVersion")) object.tokenVersion = message.tokenVersion; @@ -149036,6 +152075,10 @@ export const Tokens = $root.Tokens = (() => { object.notificationSyncPoint = options.longs === String ? String(message.notificationSyncPoint) : message.notificationSyncPoint; else object.notificationSyncPoint = options.longs === String ? $util.Long.prototype.toString.call(message.notificationSyncPoint) : options.longs === Number ? new $util.LongBits(message.notificationSyncPoint.low >>> 0, message.notificationSyncPoint.high >>> 0).toNumber() : message.notificationSyncPoint; + if (message.skipUserRevision != null && message.hasOwnProperty("skipUserRevision")) + object.skipUserRevision = message.skipUserRevision; + if (message.multiPageIncrementalClientVersion != null && message.hasOwnProperty("multiPageIncrementalClientVersion")) + object.multiPageIncrementalClientVersion = message.multiPageIncrementalClientVersion; return object; }; @@ -153622,6 +156665,249 @@ export const Tokens = $root.Tokens = (() => { return UserLocation; })(); + Tokens.KeyCloakToken = (function() { + + /** + * Properties of a KeyCloakToken. + * @memberof Tokens + * @interface IKeyCloakToken + * @property {string|null} [email] KeyCloakToken email + * @property {Array.|null} [groups] KeyCloakToken groups + */ + + /** + * Constructs a new KeyCloakToken. + * @memberof Tokens + * @classdesc Represents a KeyCloakToken. + * @implements IKeyCloakToken + * @constructor + * @param {Tokens.IKeyCloakToken=} [properties] Properties to set + */ + function KeyCloakToken(properties) { + this.groups = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * KeyCloakToken email. + * @member {string} email + * @memberof Tokens.KeyCloakToken + * @instance + */ + KeyCloakToken.prototype.email = ""; + + /** + * KeyCloakToken groups. + * @member {Array.} groups + * @memberof Tokens.KeyCloakToken + * @instance + */ + KeyCloakToken.prototype.groups = $util.emptyArray; + + /** + * Creates a new KeyCloakToken instance using the specified properties. + * @function create + * @memberof Tokens.KeyCloakToken + * @static + * @param {Tokens.IKeyCloakToken=} [properties] Properties to set + * @returns {Tokens.KeyCloakToken} KeyCloakToken instance + */ + KeyCloakToken.create = function create(properties) { + return new KeyCloakToken(properties); + }; + + /** + * Encodes the specified KeyCloakToken message. Does not implicitly {@link Tokens.KeyCloakToken.verify|verify} messages. + * @function encode + * @memberof Tokens.KeyCloakToken + * @static + * @param {Tokens.IKeyCloakToken} message KeyCloakToken message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KeyCloakToken.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.email != null && Object.hasOwnProperty.call(message, "email")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); + if (message.groups != null && message.groups.length) + for (let i = 0; i < message.groups.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.groups[i]); + return writer; + }; + + /** + * Encodes the specified KeyCloakToken message, length delimited. Does not implicitly {@link Tokens.KeyCloakToken.verify|verify} messages. + * @function encodeDelimited + * @memberof Tokens.KeyCloakToken + * @static + * @param {Tokens.IKeyCloakToken} message KeyCloakToken message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KeyCloakToken.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a KeyCloakToken message from the specified reader or buffer. + * @function decode + * @memberof Tokens.KeyCloakToken + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {Tokens.KeyCloakToken} KeyCloakToken + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KeyCloakToken.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.KeyCloakToken(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.email = reader.string(); + break; + } + case 2: { + if (!(message.groups && message.groups.length)) + message.groups = []; + message.groups.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a KeyCloakToken message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof Tokens.KeyCloakToken + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {Tokens.KeyCloakToken} KeyCloakToken + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KeyCloakToken.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a KeyCloakToken message. + * @function verify + * @memberof Tokens.KeyCloakToken + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + KeyCloakToken.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.email != null && message.hasOwnProperty("email")) + if (!$util.isString(message.email)) + return "email: string expected"; + if (message.groups != null && message.hasOwnProperty("groups")) { + if (!Array.isArray(message.groups)) + return "groups: array expected"; + for (let i = 0; i < message.groups.length; ++i) + if (!$util.isString(message.groups[i])) + return "groups: string[] expected"; + } + return null; + }; + + /** + * Creates a KeyCloakToken message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Tokens.KeyCloakToken + * @static + * @param {Object.} object Plain object + * @returns {Tokens.KeyCloakToken} KeyCloakToken + */ + KeyCloakToken.fromObject = function fromObject(object) { + if (object instanceof $root.Tokens.KeyCloakToken) + return object; + let message = new $root.Tokens.KeyCloakToken(); + if (object.email != null) + message.email = String(object.email); + if (object.groups) { + if (!Array.isArray(object.groups)) + throw TypeError(".Tokens.KeyCloakToken.groups: array expected"); + message.groups = []; + for (let i = 0; i < object.groups.length; ++i) + message.groups[i] = String(object.groups[i]); + } + return message; + }; + + /** + * Creates a plain object from a KeyCloakToken message. Also converts values to other types if specified. + * @function toObject + * @memberof Tokens.KeyCloakToken + * @static + * @param {Tokens.KeyCloakToken} message KeyCloakToken + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + KeyCloakToken.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.groups = []; + if (options.defaults) + object.email = ""; + if (message.email != null && message.hasOwnProperty("email")) + object.email = message.email; + if (message.groups && message.groups.length) { + object.groups = []; + for (let j = 0; j < message.groups.length; ++j) + object.groups[j] = message.groups[j]; + } + return object; + }; + + /** + * Converts this KeyCloakToken to JSON. + * @function toJSON + * @memberof Tokens.KeyCloakToken + * @instance + * @returns {Object.} JSON object + */ + KeyCloakToken.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for KeyCloakToken + * @function getTypeUrl + * @memberof Tokens.KeyCloakToken + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + KeyCloakToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Tokens.KeyCloakToken"; + }; + + return KeyCloakToken; + })(); + Tokens.IPWhiteList = (function() { /** @@ -153825,6 +157111,293 @@ export const Tokens = $root.Tokens = (() => { return IPWhiteList; })(); + Tokens.IncrementalSecurityDataContToken = (function() { + + /** + * Properties of an IncrementalSecurityDataContToken. + * @memberof Tokens + * @interface IIncrementalSecurityDataContToken + * @property {number|Long|null} [enterpriseUserIdUpToSave] IncrementalSecurityDataContToken enterpriseUserIdUpToSave + * @property {number|Long|null} [revisionUpToSave] IncrementalSecurityDataContToken revisionUpToSave + * @property {Uint8Array|null} [recordUidUpToSave] IncrementalSecurityDataContToken recordUidUpToSave + */ + + /** + * Constructs a new IncrementalSecurityDataContToken. + * @memberof Tokens + * @classdesc Represents an IncrementalSecurityDataContToken. + * @implements IIncrementalSecurityDataContToken + * @constructor + * @param {Tokens.IIncrementalSecurityDataContToken=} [properties] Properties to set + */ + function IncrementalSecurityDataContToken(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IncrementalSecurityDataContToken enterpriseUserIdUpToSave. + * @member {number|Long} enterpriseUserIdUpToSave + * @memberof Tokens.IncrementalSecurityDataContToken + * @instance + */ + IncrementalSecurityDataContToken.prototype.enterpriseUserIdUpToSave = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * IncrementalSecurityDataContToken revisionUpToSave. + * @member {number|Long} revisionUpToSave + * @memberof Tokens.IncrementalSecurityDataContToken + * @instance + */ + IncrementalSecurityDataContToken.prototype.revisionUpToSave = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * IncrementalSecurityDataContToken recordUidUpToSave. + * @member {Uint8Array} recordUidUpToSave + * @memberof Tokens.IncrementalSecurityDataContToken + * @instance + */ + IncrementalSecurityDataContToken.prototype.recordUidUpToSave = $util.newBuffer([]); + + /** + * Creates a new IncrementalSecurityDataContToken instance using the specified properties. + * @function create + * @memberof Tokens.IncrementalSecurityDataContToken + * @static + * @param {Tokens.IIncrementalSecurityDataContToken=} [properties] Properties to set + * @returns {Tokens.IncrementalSecurityDataContToken} IncrementalSecurityDataContToken instance + */ + IncrementalSecurityDataContToken.create = function create(properties) { + return new IncrementalSecurityDataContToken(properties); + }; + + /** + * Encodes the specified IncrementalSecurityDataContToken message. Does not implicitly {@link Tokens.IncrementalSecurityDataContToken.verify|verify} messages. + * @function encode + * @memberof Tokens.IncrementalSecurityDataContToken + * @static + * @param {Tokens.IIncrementalSecurityDataContToken} message IncrementalSecurityDataContToken message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IncrementalSecurityDataContToken.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enterpriseUserIdUpToSave != null && Object.hasOwnProperty.call(message, "enterpriseUserIdUpToSave")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserIdUpToSave); + if (message.revisionUpToSave != null && Object.hasOwnProperty.call(message, "revisionUpToSave")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revisionUpToSave); + if (message.recordUidUpToSave != null && Object.hasOwnProperty.call(message, "recordUidUpToSave")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUidUpToSave); + return writer; + }; + + /** + * Encodes the specified IncrementalSecurityDataContToken message, length delimited. Does not implicitly {@link Tokens.IncrementalSecurityDataContToken.verify|verify} messages. + * @function encodeDelimited + * @memberof Tokens.IncrementalSecurityDataContToken + * @static + * @param {Tokens.IIncrementalSecurityDataContToken} message IncrementalSecurityDataContToken message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IncrementalSecurityDataContToken.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IncrementalSecurityDataContToken message from the specified reader or buffer. + * @function decode + * @memberof Tokens.IncrementalSecurityDataContToken + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {Tokens.IncrementalSecurityDataContToken} IncrementalSecurityDataContToken + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IncrementalSecurityDataContToken.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.IncrementalSecurityDataContToken(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enterpriseUserIdUpToSave = reader.int64(); + break; + } + case 2: { + message.revisionUpToSave = reader.int64(); + break; + } + case 3: { + message.recordUidUpToSave = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IncrementalSecurityDataContToken message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof Tokens.IncrementalSecurityDataContToken + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {Tokens.IncrementalSecurityDataContToken} IncrementalSecurityDataContToken + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IncrementalSecurityDataContToken.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IncrementalSecurityDataContToken message. + * @function verify + * @memberof Tokens.IncrementalSecurityDataContToken + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IncrementalSecurityDataContToken.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enterpriseUserIdUpToSave != null && message.hasOwnProperty("enterpriseUserIdUpToSave")) + if (!$util.isInteger(message.enterpriseUserIdUpToSave) && !(message.enterpriseUserIdUpToSave && $util.isInteger(message.enterpriseUserIdUpToSave.low) && $util.isInteger(message.enterpriseUserIdUpToSave.high))) + return "enterpriseUserIdUpToSave: integer|Long expected"; + if (message.revisionUpToSave != null && message.hasOwnProperty("revisionUpToSave")) + if (!$util.isInteger(message.revisionUpToSave) && !(message.revisionUpToSave && $util.isInteger(message.revisionUpToSave.low) && $util.isInteger(message.revisionUpToSave.high))) + return "revisionUpToSave: integer|Long expected"; + if (message.recordUidUpToSave != null && message.hasOwnProperty("recordUidUpToSave")) + if (!(message.recordUidUpToSave && typeof message.recordUidUpToSave.length === "number" || $util.isString(message.recordUidUpToSave))) + return "recordUidUpToSave: buffer expected"; + return null; + }; + + /** + * Creates an IncrementalSecurityDataContToken message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Tokens.IncrementalSecurityDataContToken + * @static + * @param {Object.} object Plain object + * @returns {Tokens.IncrementalSecurityDataContToken} IncrementalSecurityDataContToken + */ + IncrementalSecurityDataContToken.fromObject = function fromObject(object) { + if (object instanceof $root.Tokens.IncrementalSecurityDataContToken) + return object; + let message = new $root.Tokens.IncrementalSecurityDataContToken(); + if (object.enterpriseUserIdUpToSave != null) + if ($util.Long) + (message.enterpriseUserIdUpToSave = $util.Long.fromValue(object.enterpriseUserIdUpToSave)).unsigned = false; + else if (typeof object.enterpriseUserIdUpToSave === "string") + message.enterpriseUserIdUpToSave = parseInt(object.enterpriseUserIdUpToSave, 10); + else if (typeof object.enterpriseUserIdUpToSave === "number") + message.enterpriseUserIdUpToSave = object.enterpriseUserIdUpToSave; + else if (typeof object.enterpriseUserIdUpToSave === "object") + message.enterpriseUserIdUpToSave = new $util.LongBits(object.enterpriseUserIdUpToSave.low >>> 0, object.enterpriseUserIdUpToSave.high >>> 0).toNumber(); + if (object.revisionUpToSave != null) + if ($util.Long) + (message.revisionUpToSave = $util.Long.fromValue(object.revisionUpToSave)).unsigned = false; + else if (typeof object.revisionUpToSave === "string") + message.revisionUpToSave = parseInt(object.revisionUpToSave, 10); + else if (typeof object.revisionUpToSave === "number") + message.revisionUpToSave = object.revisionUpToSave; + else if (typeof object.revisionUpToSave === "object") + message.revisionUpToSave = new $util.LongBits(object.revisionUpToSave.low >>> 0, object.revisionUpToSave.high >>> 0).toNumber(); + if (object.recordUidUpToSave != null) + if (typeof object.recordUidUpToSave === "string") + $util.base64.decode(object.recordUidUpToSave, message.recordUidUpToSave = $util.newBuffer($util.base64.length(object.recordUidUpToSave)), 0); + else if (object.recordUidUpToSave.length >= 0) + message.recordUidUpToSave = object.recordUidUpToSave; + return message; + }; + + /** + * Creates a plain object from an IncrementalSecurityDataContToken message. Also converts values to other types if specified. + * @function toObject + * @memberof Tokens.IncrementalSecurityDataContToken + * @static + * @param {Tokens.IncrementalSecurityDataContToken} message IncrementalSecurityDataContToken + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IncrementalSecurityDataContToken.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.enterpriseUserIdUpToSave = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.enterpriseUserIdUpToSave = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.revisionUpToSave = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revisionUpToSave = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.recordUidUpToSave = ""; + else { + object.recordUidUpToSave = []; + if (options.bytes !== Array) + object.recordUidUpToSave = $util.newBuffer(object.recordUidUpToSave); + } + } + if (message.enterpriseUserIdUpToSave != null && message.hasOwnProperty("enterpriseUserIdUpToSave")) + if (typeof message.enterpriseUserIdUpToSave === "number") + object.enterpriseUserIdUpToSave = options.longs === String ? String(message.enterpriseUserIdUpToSave) : message.enterpriseUserIdUpToSave; + else + object.enterpriseUserIdUpToSave = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserIdUpToSave) : options.longs === Number ? new $util.LongBits(message.enterpriseUserIdUpToSave.low >>> 0, message.enterpriseUserIdUpToSave.high >>> 0).toNumber() : message.enterpriseUserIdUpToSave; + if (message.revisionUpToSave != null && message.hasOwnProperty("revisionUpToSave")) + if (typeof message.revisionUpToSave === "number") + object.revisionUpToSave = options.longs === String ? String(message.revisionUpToSave) : message.revisionUpToSave; + else + object.revisionUpToSave = options.longs === String ? $util.Long.prototype.toString.call(message.revisionUpToSave) : options.longs === Number ? new $util.LongBits(message.revisionUpToSave.low >>> 0, message.revisionUpToSave.high >>> 0).toNumber() : message.revisionUpToSave; + if (message.recordUidUpToSave != null && message.hasOwnProperty("recordUidUpToSave")) + object.recordUidUpToSave = options.bytes === String ? $util.base64.encode(message.recordUidUpToSave, 0, message.recordUidUpToSave.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUidUpToSave) : message.recordUidUpToSave; + return object; + }; + + /** + * Converts this IncrementalSecurityDataContToken to JSON. + * @function toJSON + * @memberof Tokens.IncrementalSecurityDataContToken + * @instance + * @returns {Object.} JSON object + */ + IncrementalSecurityDataContToken.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IncrementalSecurityDataContToken + * @function getTypeUrl + * @memberof Tokens.IncrementalSecurityDataContToken + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IncrementalSecurityDataContToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/Tokens.IncrementalSecurityDataContToken"; + }; + + return IncrementalSecurityDataContToken; + })(); + return Tokens; })(); @@ -204267,6 +207840,7 @@ export const Vault = $root.Vault = (() => { * @interface IBreachWatchSecurityData * @property {Uint8Array|null} [recordUid] BreachWatchSecurityData recordUid * @property {number|Long|null} [revision] BreachWatchSecurityData revision + * @property {boolean|null} [removed] BreachWatchSecurityData removed */ /** @@ -204300,6 +207874,14 @@ export const Vault = $root.Vault = (() => { */ BreachWatchSecurityData.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * BreachWatchSecurityData removed. + * @member {boolean} removed + * @memberof Vault.BreachWatchSecurityData + * @instance + */ + BreachWatchSecurityData.prototype.removed = false; + /** * Creates a new BreachWatchSecurityData instance using the specified properties. * @function create @@ -204328,6 +207910,8 @@ export const Vault = $root.Vault = (() => { writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + if (message.removed != null && Object.hasOwnProperty.call(message, "removed")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.removed); return writer; }; @@ -204370,6 +207954,10 @@ export const Vault = $root.Vault = (() => { message.revision = reader.int64(); break; } + case 3: { + message.removed = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -204411,6 +207999,9 @@ export const Vault = $root.Vault = (() => { if (message.revision != null && message.hasOwnProperty("revision")) if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) return "revision: integer|Long expected"; + if (message.removed != null && message.hasOwnProperty("removed")) + if (typeof message.removed !== "boolean") + return "removed: boolean expected"; return null; }; @@ -204440,6 +208031,8 @@ export const Vault = $root.Vault = (() => { message.revision = object.revision; else if (typeof object.revision === "object") message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if (object.removed != null) + message.removed = Boolean(object.removed); return message; }; @@ -204469,6 +208062,7 @@ export const Vault = $root.Vault = (() => { object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.revision = options.longs === String ? "0" : 0; + object.removed = false; } if (message.recordUid != null && message.hasOwnProperty("recordUid")) object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; @@ -204477,6 +208071,8 @@ export const Vault = $root.Vault = (() => { object.revision = options.longs === String ? String(message.revision) : message.revision; else object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + if (message.removed != null && message.hasOwnProperty("removed")) + object.removed = message.removed; return object; }; @@ -208843,6 +212439,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @property {number} NT_APPROVED_RESPONSE=10 NT_APPROVED_RESPONSE value * @property {number} NT_DENIED_RESPONSE=11 NT_DENIED_RESPONSE value * @property {number} NT_2FA_CONFIGURED=12 NT_2FA_CONFIGURED value + * @property {number} NT_SHARE_APPROVAL_DENIED=13 NT_SHARE_APPROVAL_DENIED value */ NotificationCenter.NotificationType = (function() { const valuesById = {}, values = Object.create(valuesById); @@ -208859,6 +212456,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { values[valuesById[10] = "NT_APPROVED_RESPONSE"] = 10; values[valuesById[11] = "NT_DENIED_RESPONSE"] = 11; values[valuesById[12] = "NT_2FA_CONFIGURED"] = 12; + values[valuesById[13] = "NT_SHARE_APPROVAL_DENIED"] = 13; return values; })(); @@ -209390,6 +212988,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { case 10: case 11: case 12: + case 13: break; } if (message.category != null && message.hasOwnProperty("category")) @@ -209520,6 +213119,10 @@ export const NotificationCenter = $root.NotificationCenter = (() => { case 12: message.type = 12; break; + case "NT_SHARE_APPROVAL_DENIED": + case 13: + message.type = 13; + break; } switch (object.category) { default: @@ -210055,6 +213658,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @property {NotificationCenter.INotification|null} [notification] NotificationContent notification * @property {NotificationCenter.NotificationReadStatus|null} [readStatus] NotificationContent readStatus * @property {NotificationCenter.NotificationApprovalStatus|null} [approvalStatus] NotificationContent approvalStatus + * @property {boolean|null} [trimmingPoint] NotificationContent trimmingPoint * @property {Array.|null} [clientTypeIDs] NotificationContent clientTypeIDs * @property {Array.|null} [deviceIDs] NotificationContent deviceIDs */ @@ -210100,6 +213704,14 @@ export const NotificationCenter = $root.NotificationCenter = (() => { */ NotificationContent.prototype.approvalStatus = null; + /** + * NotificationContent trimmingPoint. + * @member {boolean|null|undefined} trimmingPoint + * @memberof NotificationCenter.NotificationContent + * @instance + */ + NotificationContent.prototype.trimmingPoint = null; + /** * NotificationContent clientTypeIDs. * @member {Array.} clientTypeIDs @@ -210121,12 +213733,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { /** * NotificationContent type. - * @member {"notification"|"readStatus"|"approvalStatus"|undefined} type + * @member {"notification"|"readStatus"|"approvalStatus"|"trimmingPoint"|undefined} type * @memberof NotificationCenter.NotificationContent * @instance */ Object.defineProperty(NotificationContent.prototype, "type", { - get: $util.oneOfGetter($oneOfFields = ["notification", "readStatus", "approvalStatus"]), + get: $util.oneOfGetter($oneOfFields = ["notification", "readStatus", "approvalStatus", "trimmingPoint"]), set: $util.oneOfSetter($oneOfFields) }); @@ -210160,14 +213772,16 @@ export const NotificationCenter = $root.NotificationCenter = (() => { writer.uint32(/* id 2, wireType 0 =*/16).int32(message.readStatus); if (message.approvalStatus != null && Object.hasOwnProperty.call(message, "approvalStatus")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.approvalStatus); + if (message.trimmingPoint != null && Object.hasOwnProperty.call(message, "trimmingPoint")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.trimmingPoint); if (message.clientTypeIDs != null && message.clientTypeIDs.length) { - writer.uint32(/* id 4, wireType 2 =*/34).fork(); + writer.uint32(/* id 5, wireType 2 =*/42).fork(); for (let i = 0; i < message.clientTypeIDs.length; ++i) writer.int32(message.clientTypeIDs[i]); writer.ldelim(); } if (message.deviceIDs != null && message.deviceIDs.length) { - writer.uint32(/* id 5, wireType 2 =*/42).fork(); + writer.uint32(/* id 6, wireType 2 =*/50).fork(); for (let i = 0; i < message.deviceIDs.length; ++i) writer.int64(message.deviceIDs[i]); writer.ldelim(); @@ -210219,6 +213833,10 @@ export const NotificationCenter = $root.NotificationCenter = (() => { break; } case 4: { + message.trimmingPoint = reader.bool(); + break; + } + case 5: { if (!(message.clientTypeIDs && message.clientTypeIDs.length)) message.clientTypeIDs = []; if ((tag & 7) === 2) { @@ -210229,7 +213847,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { message.clientTypeIDs.push(reader.int32()); break; } - case 5: { + case 6: { if (!(message.deviceIDs && message.deviceIDs.length)) message.deviceIDs = []; if ((tag & 7) === 2) { @@ -210313,6 +213931,13 @@ export const NotificationCenter = $root.NotificationCenter = (() => { break; } } + if (message.trimmingPoint != null && message.hasOwnProperty("trimmingPoint")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + if (typeof message.trimmingPoint !== "boolean") + return "trimmingPoint: boolean expected"; + } if (message.clientTypeIDs != null && message.hasOwnProperty("clientTypeIDs")) { if (!Array.isArray(message.clientTypeIDs)) return "clientTypeIDs: array expected"; @@ -210399,6 +214024,8 @@ export const NotificationCenter = $root.NotificationCenter = (() => { message.approvalStatus = 4; break; } + if (object.trimmingPoint != null) + message.trimmingPoint = Boolean(object.trimmingPoint); if (object.clientTypeIDs) { if (!Array.isArray(object.clientTypeIDs)) throw TypeError(".NotificationCenter.NotificationContent.clientTypeIDs: array expected"); @@ -210455,6 +214082,11 @@ export const NotificationCenter = $root.NotificationCenter = (() => { if (options.oneofs) object.type = "approvalStatus"; } + if (message.trimmingPoint != null && message.hasOwnProperty("trimmingPoint")) { + object.trimmingPoint = message.trimmingPoint; + if (options.oneofs) + object.type = "trimmingPoint"; + } if (message.clientTypeIDs && message.clientTypeIDs.length) { object.clientTypeIDs = []; for (let j = 0; j < message.clientTypeIDs.length; ++j) @@ -218336,6 +221968,9 @@ export const BI = $root.BI = (() => { case 3: case 4: case 5: + case 6: + case 7: + case 8: break; } if (message.available != null && message.hasOwnProperty("available")) @@ -218390,6 +222025,18 @@ export const BI = $root.BI = (() => { case 5: message.type = 5; break; + case "B2B_BUSINESS_STARTER": + case 6: + message.type = 6; + break; + case "B2B_BUSINESS": + case 7: + message.type = 7; + break; + case "B2B_ENTERPRISE": + case 8: + message.type = 8; + break; } if (object.available != null) message.available = object.available | 0; @@ -218461,6 +222108,9 @@ export const BI = $root.BI = (() => { * @property {number} MC_BUSINESS_PLUS=3 MC_BUSINESS_PLUS value * @property {number} MC_ENTERPRISE=4 MC_ENTERPRISE value * @property {number} MC_ENTERPRISE_PLUS=5 MC_ENTERPRISE_PLUS value + * @property {number} B2B_BUSINESS_STARTER=6 B2B_BUSINESS_STARTER value + * @property {number} B2B_BUSINESS=7 B2B_BUSINESS value + * @property {number} B2B_ENTERPRISE=8 B2B_ENTERPRISE value */ LicenseStats.Type = (function() { const valuesById = {}, values = Object.create(valuesById); @@ -218470,6 +222120,9 @@ export const BI = $root.BI = (() => { values[valuesById[3] = "MC_BUSINESS_PLUS"] = 3; values[valuesById[4] = "MC_ENTERPRISE"] = 4; values[valuesById[5] = "MC_ENTERPRISE_PLUS"] = 5; + values[valuesById[6] = "B2B_BUSINESS_STARTER"] = 6; + values[valuesById[7] = "B2B_BUSINESS"] = 7; + values[valuesById[8] = "B2B_ENTERPRISE"] = 8; return values; })(); @@ -222041,6 +225694,10 @@ export const BI = $root.BI = (() => { case 2: case 3: case 4: + case 5: + case 6: + case 7: + case 8: break; } if (message.currency != null && message.hasOwnProperty("currency")) @@ -222100,6 +225757,22 @@ export const BI = $root.BI = (() => { case 4: message.amountPer = 4; break; + case "USER_YEAR": + case 5: + message.amountPer = 5; + break; + case "USER_CONSUMED_YEAR": + case 6: + message.amountPer = 6; + break; + case "YEAR": + case 7: + message.amountPer = 7; + break; + case "ENDPOINT_YEAR": + case 8: + message.amountPer = 8; + break; } switch (object.currency) { default: @@ -222202,6 +225875,10 @@ export const BI = $root.BI = (() => { * @property {number} USER_MONTH=2 USER_MONTH value * @property {number} USER_CONSUMED_MONTH=3 USER_CONSUMED_MONTH value * @property {number} ENDPOINT_MONTH=4 ENDPOINT_MONTH value + * @property {number} USER_YEAR=5 USER_YEAR value + * @property {number} USER_CONSUMED_YEAR=6 USER_CONSUMED_YEAR value + * @property {number} YEAR=7 YEAR value + * @property {number} ENDPOINT_YEAR=8 ENDPOINT_YEAR value */ Cost.AmountPer = (function() { const valuesById = {}, values = Object.create(valuesById); @@ -222210,6 +225887,10 @@ export const BI = $root.BI = (() => { values[valuesById[2] = "USER_MONTH"] = 2; values[valuesById[3] = "USER_CONSUMED_MONTH"] = 3; values[valuesById[4] = "ENDPOINT_MONTH"] = 4; + values[valuesById[5] = "USER_YEAR"] = 5; + values[valuesById[6] = "USER_CONSUMED_YEAR"] = 6; + values[valuesById[7] = "YEAR"] = 7; + values[valuesById[8] = "ENDPOINT_YEAR"] = 8; return values; })(); @@ -230443,6 +234124,8 @@ export const BI = $root.BI = (() => { * @property {number} TRACKING_POPUP_DISMISSED=3 TRACKING_POPUP_DISMISSED value * @property {number} TRACKING_POPUP_PAID=4 TRACKING_POPUP_PAID value * @property {number} TRACKING_PUSH_CLICKED=5 TRACKING_PUSH_CLICKED value + * @property {number} CONSOLE_ACTION=6 CONSOLE_ACTION value + * @property {number} VAULT_ACTION=7 VAULT_ACTION value */ BI.EventType = (function() { const valuesById = {}, values = Object.create(valuesById); @@ -230452,6 +234135,8 @@ export const BI = $root.BI = (() => { values[valuesById[3] = "TRACKING_POPUP_DISMISSED"] = 3; values[valuesById[4] = "TRACKING_POPUP_PAID"] = 4; values[valuesById[5] = "TRACKING_PUSH_CLICKED"] = 5; + values[valuesById[6] = "CONSOLE_ACTION"] = 6; + values[valuesById[7] = "VAULT_ACTION"] = 7; return values; })(); @@ -230641,6 +234326,8 @@ export const BI = $root.BI = (() => { case 3: case 4: case 5: + case 6: + case 7: break; } if (message.eventValue != null && message.hasOwnProperty("eventValue")) @@ -230700,6 +234387,14 @@ export const BI = $root.BI = (() => { case 5: message.eventType = 5; break; + case "CONSOLE_ACTION": + case 6: + message.eventType = 6; + break; + case "VAULT_ACTION": + case 7: + message.eventType = 7; + break; } if (object.eventValue != null) message.eventValue = String(object.eventValue); @@ -233781,6 +237476,2282 @@ export const BI = $root.BI = (() => { return UpgradeLicenseCompletePurchaseResponse; })(); + BI.EnterpriseBasePlan = (function() { + + /** + * Properties of an EnterpriseBasePlan. + * @memberof BI + * @interface IEnterpriseBasePlan + * @property {BI.EnterpriseBasePlan.EnterpriseBasePlanVersion|null} [baseplanVersion] EnterpriseBasePlan baseplanVersion + * @property {BI.ICost|null} [cost] EnterpriseBasePlan cost + */ + + /** + * Constructs a new EnterpriseBasePlan. + * @memberof BI + * @classdesc Represents an EnterpriseBasePlan. + * @implements IEnterpriseBasePlan + * @constructor + * @param {BI.IEnterpriseBasePlan=} [properties] Properties to set + */ + function EnterpriseBasePlan(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnterpriseBasePlan baseplanVersion. + * @member {BI.EnterpriseBasePlan.EnterpriseBasePlanVersion} baseplanVersion + * @memberof BI.EnterpriseBasePlan + * @instance + */ + EnterpriseBasePlan.prototype.baseplanVersion = 0; + + /** + * EnterpriseBasePlan cost. + * @member {BI.ICost|null|undefined} cost + * @memberof BI.EnterpriseBasePlan + * @instance + */ + EnterpriseBasePlan.prototype.cost = null; + + /** + * Creates a new EnterpriseBasePlan instance using the specified properties. + * @function create + * @memberof BI.EnterpriseBasePlan + * @static + * @param {BI.IEnterpriseBasePlan=} [properties] Properties to set + * @returns {BI.EnterpriseBasePlan} EnterpriseBasePlan instance + */ + EnterpriseBasePlan.create = function create(properties) { + return new EnterpriseBasePlan(properties); + }; + + /** + * Encodes the specified EnterpriseBasePlan message. Does not implicitly {@link BI.EnterpriseBasePlan.verify|verify} messages. + * @function encode + * @memberof BI.EnterpriseBasePlan + * @static + * @param {BI.IEnterpriseBasePlan} message EnterpriseBasePlan message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnterpriseBasePlan.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.baseplanVersion != null && Object.hasOwnProperty.call(message, "baseplanVersion")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.baseplanVersion); + if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) + $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnterpriseBasePlan message, length delimited. Does not implicitly {@link BI.EnterpriseBasePlan.verify|verify} messages. + * @function encodeDelimited + * @memberof BI.EnterpriseBasePlan + * @static + * @param {BI.IEnterpriseBasePlan} message EnterpriseBasePlan message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnterpriseBasePlan.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnterpriseBasePlan message from the specified reader or buffer. + * @function decode + * @memberof BI.EnterpriseBasePlan + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {BI.EnterpriseBasePlan} EnterpriseBasePlan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnterpriseBasePlan.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EnterpriseBasePlan(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.baseplanVersion = reader.int32(); + break; + } + case 2: { + message.cost = $root.BI.Cost.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnterpriseBasePlan message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof BI.EnterpriseBasePlan + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {BI.EnterpriseBasePlan} EnterpriseBasePlan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnterpriseBasePlan.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnterpriseBasePlan message. + * @function verify + * @memberof BI.EnterpriseBasePlan + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnterpriseBasePlan.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.baseplanVersion != null && message.hasOwnProperty("baseplanVersion")) + switch (message.baseplanVersion) { + default: + return "baseplanVersion: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.cost != null && message.hasOwnProperty("cost")) { + let error = $root.BI.Cost.verify(message.cost); + if (error) + return "cost." + error; + } + return null; + }; + + /** + * Creates an EnterpriseBasePlan message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof BI.EnterpriseBasePlan + * @static + * @param {Object.} object Plain object + * @returns {BI.EnterpriseBasePlan} EnterpriseBasePlan + */ + EnterpriseBasePlan.fromObject = function fromObject(object) { + if (object instanceof $root.BI.EnterpriseBasePlan) + return object; + let message = new $root.BI.EnterpriseBasePlan(); + switch (object.baseplanVersion) { + default: + if (typeof object.baseplanVersion === "number") { + message.baseplanVersion = object.baseplanVersion; + break; + } + break; + case "UNKNOWN": + case 0: + message.baseplanVersion = 0; + break; + case "BUSINESS_STARTER": + case 1: + message.baseplanVersion = 1; + break; + case "BUSINESS": + case 2: + message.baseplanVersion = 2; + break; + case "ENTERPRISE": + case 3: + message.baseplanVersion = 3; + break; + } + if (object.cost != null) { + if (typeof object.cost !== "object") + throw TypeError(".BI.EnterpriseBasePlan.cost: object expected"); + message.cost = $root.BI.Cost.fromObject(object.cost); + } + return message; + }; + + /** + * Creates a plain object from an EnterpriseBasePlan message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.EnterpriseBasePlan + * @static + * @param {BI.EnterpriseBasePlan} message EnterpriseBasePlan + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnterpriseBasePlan.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.baseplanVersion = options.enums === String ? "UNKNOWN" : 0; + object.cost = null; + } + if (message.baseplanVersion != null && message.hasOwnProperty("baseplanVersion")) + object.baseplanVersion = options.enums === String ? $root.BI.EnterpriseBasePlan.EnterpriseBasePlanVersion[message.baseplanVersion] === undefined ? message.baseplanVersion : $root.BI.EnterpriseBasePlan.EnterpriseBasePlanVersion[message.baseplanVersion] : message.baseplanVersion; + if (message.cost != null && message.hasOwnProperty("cost")) + object.cost = $root.BI.Cost.toObject(message.cost, options); + return object; + }; + + /** + * Converts this EnterpriseBasePlan to JSON. + * @function toJSON + * @memberof BI.EnterpriseBasePlan + * @instance + * @returns {Object.} JSON object + */ + EnterpriseBasePlan.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnterpriseBasePlan + * @function getTypeUrl + * @memberof BI.EnterpriseBasePlan + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnterpriseBasePlan.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.EnterpriseBasePlan"; + }; + + /** + * EnterpriseBasePlanVersion enum. + * @name BI.EnterpriseBasePlan.EnterpriseBasePlanVersion + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} BUSINESS_STARTER=1 BUSINESS_STARTER value + * @property {number} BUSINESS=2 BUSINESS value + * @property {number} ENTERPRISE=3 ENTERPRISE value + */ + EnterpriseBasePlan.EnterpriseBasePlanVersion = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "BUSINESS_STARTER"] = 1; + values[valuesById[2] = "BUSINESS"] = 2; + values[valuesById[3] = "ENTERPRISE"] = 3; + return values; + })(); + + return EnterpriseBasePlan; + })(); + + BI.SubscriptionEnterprisePricingRequest = (function() { + + /** + * Properties of a SubscriptionEnterprisePricingRequest. + * @memberof BI + * @interface ISubscriptionEnterprisePricingRequest + */ + + /** + * Constructs a new SubscriptionEnterprisePricingRequest. + * @memberof BI + * @classdesc Represents a SubscriptionEnterprisePricingRequest. + * @implements ISubscriptionEnterprisePricingRequest + * @constructor + * @param {BI.ISubscriptionEnterprisePricingRequest=} [properties] Properties to set + */ + function SubscriptionEnterprisePricingRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new SubscriptionEnterprisePricingRequest instance using the specified properties. + * @function create + * @memberof BI.SubscriptionEnterprisePricingRequest + * @static + * @param {BI.ISubscriptionEnterprisePricingRequest=} [properties] Properties to set + * @returns {BI.SubscriptionEnterprisePricingRequest} SubscriptionEnterprisePricingRequest instance + */ + SubscriptionEnterprisePricingRequest.create = function create(properties) { + return new SubscriptionEnterprisePricingRequest(properties); + }; + + /** + * Encodes the specified SubscriptionEnterprisePricingRequest message. Does not implicitly {@link BI.SubscriptionEnterprisePricingRequest.verify|verify} messages. + * @function encode + * @memberof BI.SubscriptionEnterprisePricingRequest + * @static + * @param {BI.ISubscriptionEnterprisePricingRequest} message SubscriptionEnterprisePricingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SubscriptionEnterprisePricingRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified SubscriptionEnterprisePricingRequest message, length delimited. Does not implicitly {@link BI.SubscriptionEnterprisePricingRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof BI.SubscriptionEnterprisePricingRequest + * @static + * @param {BI.ISubscriptionEnterprisePricingRequest} message SubscriptionEnterprisePricingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SubscriptionEnterprisePricingRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SubscriptionEnterprisePricingRequest message from the specified reader or buffer. + * @function decode + * @memberof BI.SubscriptionEnterprisePricingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {BI.SubscriptionEnterprisePricingRequest} SubscriptionEnterprisePricingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SubscriptionEnterprisePricingRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionEnterprisePricingRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SubscriptionEnterprisePricingRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof BI.SubscriptionEnterprisePricingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {BI.SubscriptionEnterprisePricingRequest} SubscriptionEnterprisePricingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SubscriptionEnterprisePricingRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SubscriptionEnterprisePricingRequest message. + * @function verify + * @memberof BI.SubscriptionEnterprisePricingRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SubscriptionEnterprisePricingRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a SubscriptionEnterprisePricingRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof BI.SubscriptionEnterprisePricingRequest + * @static + * @param {Object.} object Plain object + * @returns {BI.SubscriptionEnterprisePricingRequest} SubscriptionEnterprisePricingRequest + */ + SubscriptionEnterprisePricingRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SubscriptionEnterprisePricingRequest) + return object; + return new $root.BI.SubscriptionEnterprisePricingRequest(); + }; + + /** + * Creates a plain object from a SubscriptionEnterprisePricingRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.SubscriptionEnterprisePricingRequest + * @static + * @param {BI.SubscriptionEnterprisePricingRequest} message SubscriptionEnterprisePricingRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SubscriptionEnterprisePricingRequest.toObject = function toObject() { + return {}; + }; + + /** + * Converts this SubscriptionEnterprisePricingRequest to JSON. + * @function toJSON + * @memberof BI.SubscriptionEnterprisePricingRequest + * @instance + * @returns {Object.} JSON object + */ + SubscriptionEnterprisePricingRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SubscriptionEnterprisePricingRequest + * @function getTypeUrl + * @memberof BI.SubscriptionEnterprisePricingRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SubscriptionEnterprisePricingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.SubscriptionEnterprisePricingRequest"; + }; + + return SubscriptionEnterprisePricingRequest; + })(); + + BI.SubscriptionEnterprisePricingResponse = (function() { + + /** + * Properties of a SubscriptionEnterprisePricingResponse. + * @memberof BI + * @interface ISubscriptionEnterprisePricingResponse + * @property {Array.|null} [basePlans] SubscriptionEnterprisePricingResponse basePlans + * @property {Array.|null} [addons] SubscriptionEnterprisePricingResponse addons + * @property {Array.|null} [filePlans] SubscriptionEnterprisePricingResponse filePlans + */ + + /** + * Constructs a new SubscriptionEnterprisePricingResponse. + * @memberof BI + * @classdesc Represents a SubscriptionEnterprisePricingResponse. + * @implements ISubscriptionEnterprisePricingResponse + * @constructor + * @param {BI.ISubscriptionEnterprisePricingResponse=} [properties] Properties to set + */ + function SubscriptionEnterprisePricingResponse(properties) { + this.basePlans = []; + this.addons = []; + this.filePlans = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SubscriptionEnterprisePricingResponse basePlans. + * @member {Array.} basePlans + * @memberof BI.SubscriptionEnterprisePricingResponse + * @instance + */ + SubscriptionEnterprisePricingResponse.prototype.basePlans = $util.emptyArray; + + /** + * SubscriptionEnterprisePricingResponse addons. + * @member {Array.} addons + * @memberof BI.SubscriptionEnterprisePricingResponse + * @instance + */ + SubscriptionEnterprisePricingResponse.prototype.addons = $util.emptyArray; + + /** + * SubscriptionEnterprisePricingResponse filePlans. + * @member {Array.} filePlans + * @memberof BI.SubscriptionEnterprisePricingResponse + * @instance + */ + SubscriptionEnterprisePricingResponse.prototype.filePlans = $util.emptyArray; + + /** + * Creates a new SubscriptionEnterprisePricingResponse instance using the specified properties. + * @function create + * @memberof BI.SubscriptionEnterprisePricingResponse + * @static + * @param {BI.ISubscriptionEnterprisePricingResponse=} [properties] Properties to set + * @returns {BI.SubscriptionEnterprisePricingResponse} SubscriptionEnterprisePricingResponse instance + */ + SubscriptionEnterprisePricingResponse.create = function create(properties) { + return new SubscriptionEnterprisePricingResponse(properties); + }; + + /** + * Encodes the specified SubscriptionEnterprisePricingResponse message. Does not implicitly {@link BI.SubscriptionEnterprisePricingResponse.verify|verify} messages. + * @function encode + * @memberof BI.SubscriptionEnterprisePricingResponse + * @static + * @param {BI.ISubscriptionEnterprisePricingResponse} message SubscriptionEnterprisePricingResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SubscriptionEnterprisePricingResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.basePlans != null && message.basePlans.length) + for (let i = 0; i < message.basePlans.length; ++i) + $root.BI.EnterpriseBasePlan.encode(message.basePlans[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.addons != null && message.addons.length) + for (let i = 0; i < message.addons.length; ++i) + $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.filePlans != null && message.filePlans.length) + for (let i = 0; i < message.filePlans.length; ++i) + $root.BI.FilePlan.encode(message.filePlans[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SubscriptionEnterprisePricingResponse message, length delimited. Does not implicitly {@link BI.SubscriptionEnterprisePricingResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof BI.SubscriptionEnterprisePricingResponse + * @static + * @param {BI.ISubscriptionEnterprisePricingResponse} message SubscriptionEnterprisePricingResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SubscriptionEnterprisePricingResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SubscriptionEnterprisePricingResponse message from the specified reader or buffer. + * @function decode + * @memberof BI.SubscriptionEnterprisePricingResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {BI.SubscriptionEnterprisePricingResponse} SubscriptionEnterprisePricingResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SubscriptionEnterprisePricingResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionEnterprisePricingResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.basePlans && message.basePlans.length)) + message.basePlans = []; + message.basePlans.push($root.BI.EnterpriseBasePlan.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.addons && message.addons.length)) + message.addons = []; + message.addons.push($root.BI.Addon.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.filePlans && message.filePlans.length)) + message.filePlans = []; + message.filePlans.push($root.BI.FilePlan.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SubscriptionEnterprisePricingResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof BI.SubscriptionEnterprisePricingResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {BI.SubscriptionEnterprisePricingResponse} SubscriptionEnterprisePricingResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SubscriptionEnterprisePricingResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SubscriptionEnterprisePricingResponse message. + * @function verify + * @memberof BI.SubscriptionEnterprisePricingResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SubscriptionEnterprisePricingResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.basePlans != null && message.hasOwnProperty("basePlans")) { + if (!Array.isArray(message.basePlans)) + return "basePlans: array expected"; + for (let i = 0; i < message.basePlans.length; ++i) { + let error = $root.BI.EnterpriseBasePlan.verify(message.basePlans[i]); + if (error) + return "basePlans." + error; + } + } + if (message.addons != null && message.hasOwnProperty("addons")) { + if (!Array.isArray(message.addons)) + return "addons: array expected"; + for (let i = 0; i < message.addons.length; ++i) { + let error = $root.BI.Addon.verify(message.addons[i]); + if (error) + return "addons." + error; + } + } + if (message.filePlans != null && message.hasOwnProperty("filePlans")) { + if (!Array.isArray(message.filePlans)) + return "filePlans: array expected"; + for (let i = 0; i < message.filePlans.length; ++i) { + let error = $root.BI.FilePlan.verify(message.filePlans[i]); + if (error) + return "filePlans." + error; + } + } + return null; + }; + + /** + * Creates a SubscriptionEnterprisePricingResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof BI.SubscriptionEnterprisePricingResponse + * @static + * @param {Object.} object Plain object + * @returns {BI.SubscriptionEnterprisePricingResponse} SubscriptionEnterprisePricingResponse + */ + SubscriptionEnterprisePricingResponse.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SubscriptionEnterprisePricingResponse) + return object; + let message = new $root.BI.SubscriptionEnterprisePricingResponse(); + if (object.basePlans) { + if (!Array.isArray(object.basePlans)) + throw TypeError(".BI.SubscriptionEnterprisePricingResponse.basePlans: array expected"); + message.basePlans = []; + for (let i = 0; i < object.basePlans.length; ++i) { + if (typeof object.basePlans[i] !== "object") + throw TypeError(".BI.SubscriptionEnterprisePricingResponse.basePlans: object expected"); + message.basePlans[i] = $root.BI.EnterpriseBasePlan.fromObject(object.basePlans[i]); + } + } + if (object.addons) { + if (!Array.isArray(object.addons)) + throw TypeError(".BI.SubscriptionEnterprisePricingResponse.addons: array expected"); + message.addons = []; + for (let i = 0; i < object.addons.length; ++i) { + if (typeof object.addons[i] !== "object") + throw TypeError(".BI.SubscriptionEnterprisePricingResponse.addons: object expected"); + message.addons[i] = $root.BI.Addon.fromObject(object.addons[i]); + } + } + if (object.filePlans) { + if (!Array.isArray(object.filePlans)) + throw TypeError(".BI.SubscriptionEnterprisePricingResponse.filePlans: array expected"); + message.filePlans = []; + for (let i = 0; i < object.filePlans.length; ++i) { + if (typeof object.filePlans[i] !== "object") + throw TypeError(".BI.SubscriptionEnterprisePricingResponse.filePlans: object expected"); + message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a SubscriptionEnterprisePricingResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.SubscriptionEnterprisePricingResponse + * @static + * @param {BI.SubscriptionEnterprisePricingResponse} message SubscriptionEnterprisePricingResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SubscriptionEnterprisePricingResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.basePlans = []; + object.addons = []; + object.filePlans = []; + } + if (message.basePlans && message.basePlans.length) { + object.basePlans = []; + for (let j = 0; j < message.basePlans.length; ++j) + object.basePlans[j] = $root.BI.EnterpriseBasePlan.toObject(message.basePlans[j], options); + } + if (message.addons && message.addons.length) { + object.addons = []; + for (let j = 0; j < message.addons.length; ++j) + object.addons[j] = $root.BI.Addon.toObject(message.addons[j], options); + } + if (message.filePlans && message.filePlans.length) { + object.filePlans = []; + for (let j = 0; j < message.filePlans.length; ++j) + object.filePlans[j] = $root.BI.FilePlan.toObject(message.filePlans[j], options); + } + return object; + }; + + /** + * Converts this SubscriptionEnterprisePricingResponse to JSON. + * @function toJSON + * @memberof BI.SubscriptionEnterprisePricingResponse + * @instance + * @returns {Object.} JSON object + */ + SubscriptionEnterprisePricingResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SubscriptionEnterprisePricingResponse + * @function getTypeUrl + * @memberof BI.SubscriptionEnterprisePricingResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SubscriptionEnterprisePricingResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.SubscriptionEnterprisePricingResponse"; + }; + + return SubscriptionEnterprisePricingResponse; + })(); + + /** + * IdentifierType enum. + * @name BI.IdentifierType + * @enum {number} + * @property {number} UNKNOWN_IDENTIFIER_TYPE=0 UNKNOWN_IDENTIFIER_TYPE value + * @property {number} IOS_ID=1 IOS_ID value + * @property {number} ANDROID_GOOGLE_PLAY_ID=2 ANDROID_GOOGLE_PLAY_ID value + * @property {number} ANDROID_APP_SET_ID=3 ANDROID_APP_SET_ID value + * @property {number} ANDROID_ID=4 ANDROID_ID value + * @property {number} AMAZON_ADVERTISING_ID=5 AMAZON_ADVERTISING_ID value + * @property {number} OPEN_ADVERTISING_ID=6 OPEN_ADVERTISING_ID value + * @property {number} SINGULAR_DEVICE_ID=7 SINGULAR_DEVICE_ID value + * @property {number} CLIENT_DEFINED_ID=8 CLIENT_DEFINED_ID value + */ + BI.IdentifierType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN_IDENTIFIER_TYPE"] = 0; + values[valuesById[1] = "IOS_ID"] = 1; + values[valuesById[2] = "ANDROID_GOOGLE_PLAY_ID"] = 2; + values[valuesById[3] = "ANDROID_APP_SET_ID"] = 3; + values[valuesById[4] = "ANDROID_ID"] = 4; + values[valuesById[5] = "AMAZON_ADVERTISING_ID"] = 5; + values[valuesById[6] = "OPEN_ADVERTISING_ID"] = 6; + values[valuesById[7] = "SINGULAR_DEVICE_ID"] = 7; + values[valuesById[8] = "CLIENT_DEFINED_ID"] = 8; + return values; + })(); + + BI.SingularDeviceIdentifier = (function() { + + /** + * Properties of a SingularDeviceIdentifier. + * @memberof BI + * @interface ISingularDeviceIdentifier + * @property {string|null} [id] SingularDeviceIdentifier id + * @property {BI.IdentifierType|null} [idType] SingularDeviceIdentifier idType + */ + + /** + * Constructs a new SingularDeviceIdentifier. + * @memberof BI + * @classdesc Represents a SingularDeviceIdentifier. + * @implements ISingularDeviceIdentifier + * @constructor + * @param {BI.ISingularDeviceIdentifier=} [properties] Properties to set + */ + function SingularDeviceIdentifier(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SingularDeviceIdentifier id. + * @member {string} id + * @memberof BI.SingularDeviceIdentifier + * @instance + */ + SingularDeviceIdentifier.prototype.id = ""; + + /** + * SingularDeviceIdentifier idType. + * @member {BI.IdentifierType} idType + * @memberof BI.SingularDeviceIdentifier + * @instance + */ + SingularDeviceIdentifier.prototype.idType = 0; + + /** + * Creates a new SingularDeviceIdentifier instance using the specified properties. + * @function create + * @memberof BI.SingularDeviceIdentifier + * @static + * @param {BI.ISingularDeviceIdentifier=} [properties] Properties to set + * @returns {BI.SingularDeviceIdentifier} SingularDeviceIdentifier instance + */ + SingularDeviceIdentifier.create = function create(properties) { + return new SingularDeviceIdentifier(properties); + }; + + /** + * Encodes the specified SingularDeviceIdentifier message. Does not implicitly {@link BI.SingularDeviceIdentifier.verify|verify} messages. + * @function encode + * @memberof BI.SingularDeviceIdentifier + * @static + * @param {BI.ISingularDeviceIdentifier} message SingularDeviceIdentifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SingularDeviceIdentifier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.idType != null && Object.hasOwnProperty.call(message, "idType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.idType); + return writer; + }; + + /** + * Encodes the specified SingularDeviceIdentifier message, length delimited. Does not implicitly {@link BI.SingularDeviceIdentifier.verify|verify} messages. + * @function encodeDelimited + * @memberof BI.SingularDeviceIdentifier + * @static + * @param {BI.ISingularDeviceIdentifier} message SingularDeviceIdentifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SingularDeviceIdentifier.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SingularDeviceIdentifier message from the specified reader or buffer. + * @function decode + * @memberof BI.SingularDeviceIdentifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {BI.SingularDeviceIdentifier} SingularDeviceIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SingularDeviceIdentifier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularDeviceIdentifier(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.id = reader.string(); + break; + } + case 2: { + message.idType = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SingularDeviceIdentifier message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof BI.SingularDeviceIdentifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {BI.SingularDeviceIdentifier} SingularDeviceIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SingularDeviceIdentifier.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SingularDeviceIdentifier message. + * @function verify + * @memberof BI.SingularDeviceIdentifier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SingularDeviceIdentifier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.idType != null && message.hasOwnProperty("idType")) + switch (message.idType) { + default: + return "idType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + return null; + }; + + /** + * Creates a SingularDeviceIdentifier message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof BI.SingularDeviceIdentifier + * @static + * @param {Object.} object Plain object + * @returns {BI.SingularDeviceIdentifier} SingularDeviceIdentifier + */ + SingularDeviceIdentifier.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SingularDeviceIdentifier) + return object; + let message = new $root.BI.SingularDeviceIdentifier(); + if (object.id != null) + message.id = String(object.id); + switch (object.idType) { + default: + if (typeof object.idType === "number") { + message.idType = object.idType; + break; + } + break; + case "UNKNOWN_IDENTIFIER_TYPE": + case 0: + message.idType = 0; + break; + case "IOS_ID": + case 1: + message.idType = 1; + break; + case "ANDROID_GOOGLE_PLAY_ID": + case 2: + message.idType = 2; + break; + case "ANDROID_APP_SET_ID": + case 3: + message.idType = 3; + break; + case "ANDROID_ID": + case 4: + message.idType = 4; + break; + case "AMAZON_ADVERTISING_ID": + case 5: + message.idType = 5; + break; + case "OPEN_ADVERTISING_ID": + case 6: + message.idType = 6; + break; + case "SINGULAR_DEVICE_ID": + case 7: + message.idType = 7; + break; + case "CLIENT_DEFINED_ID": + case 8: + message.idType = 8; + break; + } + return message; + }; + + /** + * Creates a plain object from a SingularDeviceIdentifier message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.SingularDeviceIdentifier + * @static + * @param {BI.SingularDeviceIdentifier} message SingularDeviceIdentifier + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SingularDeviceIdentifier.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.id = ""; + object.idType = options.enums === String ? "UNKNOWN_IDENTIFIER_TYPE" : 0; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.idType != null && message.hasOwnProperty("idType")) + object.idType = options.enums === String ? $root.BI.IdentifierType[message.idType] === undefined ? message.idType : $root.BI.IdentifierType[message.idType] : message.idType; + return object; + }; + + /** + * Converts this SingularDeviceIdentifier to JSON. + * @function toJSON + * @memberof BI.SingularDeviceIdentifier + * @instance + * @returns {Object.} JSON object + */ + SingularDeviceIdentifier.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SingularDeviceIdentifier + * @function getTypeUrl + * @memberof BI.SingularDeviceIdentifier + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SingularDeviceIdentifier.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.SingularDeviceIdentifier"; + }; + + return SingularDeviceIdentifier; + })(); + + BI.SingularSharedData = (function() { + + /** + * Properties of a SingularSharedData. + * @memberof BI + * @interface ISingularSharedData + * @property {string|null} [platform] SingularSharedData platform + * @property {string|null} [osVersion] SingularSharedData osVersion + * @property {string|null} [make] SingularSharedData make + * @property {string|null} [model] SingularSharedData model + * @property {string|null} [locale] SingularSharedData locale + * @property {string|null} [build] SingularSharedData build + * @property {string|null} [appIdentifier] SingularSharedData appIdentifier + * @property {number|null} [attAuthorizationStatus] SingularSharedData attAuthorizationStatus + */ + + /** + * Constructs a new SingularSharedData. + * @memberof BI + * @classdesc Represents a SingularSharedData. + * @implements ISingularSharedData + * @constructor + * @param {BI.ISingularSharedData=} [properties] Properties to set + */ + function SingularSharedData(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SingularSharedData platform. + * @member {string} platform + * @memberof BI.SingularSharedData + * @instance + */ + SingularSharedData.prototype.platform = ""; + + /** + * SingularSharedData osVersion. + * @member {string} osVersion + * @memberof BI.SingularSharedData + * @instance + */ + SingularSharedData.prototype.osVersion = ""; + + /** + * SingularSharedData make. + * @member {string} make + * @memberof BI.SingularSharedData + * @instance + */ + SingularSharedData.prototype.make = ""; + + /** + * SingularSharedData model. + * @member {string} model + * @memberof BI.SingularSharedData + * @instance + */ + SingularSharedData.prototype.model = ""; + + /** + * SingularSharedData locale. + * @member {string} locale + * @memberof BI.SingularSharedData + * @instance + */ + SingularSharedData.prototype.locale = ""; + + /** + * SingularSharedData build. + * @member {string} build + * @memberof BI.SingularSharedData + * @instance + */ + SingularSharedData.prototype.build = ""; + + /** + * SingularSharedData appIdentifier. + * @member {string} appIdentifier + * @memberof BI.SingularSharedData + * @instance + */ + SingularSharedData.prototype.appIdentifier = ""; + + /** + * SingularSharedData attAuthorizationStatus. + * @member {number} attAuthorizationStatus + * @memberof BI.SingularSharedData + * @instance + */ + SingularSharedData.prototype.attAuthorizationStatus = 0; + + /** + * Creates a new SingularSharedData instance using the specified properties. + * @function create + * @memberof BI.SingularSharedData + * @static + * @param {BI.ISingularSharedData=} [properties] Properties to set + * @returns {BI.SingularSharedData} SingularSharedData instance + */ + SingularSharedData.create = function create(properties) { + return new SingularSharedData(properties); + }; + + /** + * Encodes the specified SingularSharedData message. Does not implicitly {@link BI.SingularSharedData.verify|verify} messages. + * @function encode + * @memberof BI.SingularSharedData + * @static + * @param {BI.ISingularSharedData} message SingularSharedData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SingularSharedData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.platform != null && Object.hasOwnProperty.call(message, "platform")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.platform); + if (message.osVersion != null && Object.hasOwnProperty.call(message, "osVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.osVersion); + if (message.make != null && Object.hasOwnProperty.call(message, "make")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.make); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.model); + if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.locale); + if (message.build != null && Object.hasOwnProperty.call(message, "build")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.build); + if (message.appIdentifier != null && Object.hasOwnProperty.call(message, "appIdentifier")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.appIdentifier); + if (message.attAuthorizationStatus != null && Object.hasOwnProperty.call(message, "attAuthorizationStatus")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.attAuthorizationStatus); + return writer; + }; + + /** + * Encodes the specified SingularSharedData message, length delimited. Does not implicitly {@link BI.SingularSharedData.verify|verify} messages. + * @function encodeDelimited + * @memberof BI.SingularSharedData + * @static + * @param {BI.ISingularSharedData} message SingularSharedData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SingularSharedData.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SingularSharedData message from the specified reader or buffer. + * @function decode + * @memberof BI.SingularSharedData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {BI.SingularSharedData} SingularSharedData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SingularSharedData.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularSharedData(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.platform = reader.string(); + break; + } + case 2: { + message.osVersion = reader.string(); + break; + } + case 3: { + message.make = reader.string(); + break; + } + case 4: { + message.model = reader.string(); + break; + } + case 5: { + message.locale = reader.string(); + break; + } + case 6: { + message.build = reader.string(); + break; + } + case 7: { + message.appIdentifier = reader.string(); + break; + } + case 8: { + message.attAuthorizationStatus = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SingularSharedData message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof BI.SingularSharedData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {BI.SingularSharedData} SingularSharedData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SingularSharedData.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SingularSharedData message. + * @function verify + * @memberof BI.SingularSharedData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SingularSharedData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.platform != null && message.hasOwnProperty("platform")) + if (!$util.isString(message.platform)) + return "platform: string expected"; + if (message.osVersion != null && message.hasOwnProperty("osVersion")) + if (!$util.isString(message.osVersion)) + return "osVersion: string expected"; + if (message.make != null && message.hasOwnProperty("make")) + if (!$util.isString(message.make)) + return "make: string expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.locale != null && message.hasOwnProperty("locale")) + if (!$util.isString(message.locale)) + return "locale: string expected"; + if (message.build != null && message.hasOwnProperty("build")) + if (!$util.isString(message.build)) + return "build: string expected"; + if (message.appIdentifier != null && message.hasOwnProperty("appIdentifier")) + if (!$util.isString(message.appIdentifier)) + return "appIdentifier: string expected"; + if (message.attAuthorizationStatus != null && message.hasOwnProperty("attAuthorizationStatus")) + if (!$util.isInteger(message.attAuthorizationStatus)) + return "attAuthorizationStatus: integer expected"; + return null; + }; + + /** + * Creates a SingularSharedData message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof BI.SingularSharedData + * @static + * @param {Object.} object Plain object + * @returns {BI.SingularSharedData} SingularSharedData + */ + SingularSharedData.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SingularSharedData) + return object; + let message = new $root.BI.SingularSharedData(); + if (object.platform != null) + message.platform = String(object.platform); + if (object.osVersion != null) + message.osVersion = String(object.osVersion); + if (object.make != null) + message.make = String(object.make); + if (object.model != null) + message.model = String(object.model); + if (object.locale != null) + message.locale = String(object.locale); + if (object.build != null) + message.build = String(object.build); + if (object.appIdentifier != null) + message.appIdentifier = String(object.appIdentifier); + if (object.attAuthorizationStatus != null) + message.attAuthorizationStatus = object.attAuthorizationStatus | 0; + return message; + }; + + /** + * Creates a plain object from a SingularSharedData message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.SingularSharedData + * @static + * @param {BI.SingularSharedData} message SingularSharedData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SingularSharedData.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.platform = ""; + object.osVersion = ""; + object.make = ""; + object.model = ""; + object.locale = ""; + object.build = ""; + object.appIdentifier = ""; + object.attAuthorizationStatus = 0; + } + if (message.platform != null && message.hasOwnProperty("platform")) + object.platform = message.platform; + if (message.osVersion != null && message.hasOwnProperty("osVersion")) + object.osVersion = message.osVersion; + if (message.make != null && message.hasOwnProperty("make")) + object.make = message.make; + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.locale != null && message.hasOwnProperty("locale")) + object.locale = message.locale; + if (message.build != null && message.hasOwnProperty("build")) + object.build = message.build; + if (message.appIdentifier != null && message.hasOwnProperty("appIdentifier")) + object.appIdentifier = message.appIdentifier; + if (message.attAuthorizationStatus != null && message.hasOwnProperty("attAuthorizationStatus")) + object.attAuthorizationStatus = message.attAuthorizationStatus; + return object; + }; + + /** + * Converts this SingularSharedData to JSON. + * @function toJSON + * @memberof BI.SingularSharedData + * @instance + * @returns {Object.} JSON object + */ + SingularSharedData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SingularSharedData + * @function getTypeUrl + * @memberof BI.SingularSharedData + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SingularSharedData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.SingularSharedData"; + }; + + return SingularSharedData; + })(); + + BI.SingularSessionRequest = (function() { + + /** + * Properties of a SingularSessionRequest. + * @memberof BI + * @interface ISingularSessionRequest + * @property {Array.|null} [deviceIdentifiers] SingularSessionRequest deviceIdentifiers + * @property {BI.ISingularSharedData|null} [sharedData] SingularSessionRequest sharedData + * @property {string|null} [applicationVersion] SingularSessionRequest applicationVersion + * @property {boolean|null} [install] SingularSessionRequest install + * @property {number|Long|null} [installTime] SingularSessionRequest installTime + * @property {number|Long|null} [updateTime] SingularSessionRequest updateTime + * @property {string|null} [installSource] SingularSessionRequest installSource + * @property {string|null} [installReceipt] SingularSessionRequest installReceipt + * @property {string|null} [openuri] SingularSessionRequest openuri + * @property {boolean|null} [ddlEnabled] SingularSessionRequest ddlEnabled + * @property {boolean|null} [singularLinkResolveRequired] SingularSessionRequest singularLinkResolveRequired + * @property {string|null} [installRef] SingularSessionRequest installRef + * @property {string|null} [metaRef] SingularSessionRequest metaRef + * @property {string|null} [attributionToken] SingularSessionRequest attributionToken + */ + + /** + * Constructs a new SingularSessionRequest. + * @memberof BI + * @classdesc Represents a SingularSessionRequest. + * @implements ISingularSessionRequest + * @constructor + * @param {BI.ISingularSessionRequest=} [properties] Properties to set + */ + function SingularSessionRequest(properties) { + this.deviceIdentifiers = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SingularSessionRequest deviceIdentifiers. + * @member {Array.} deviceIdentifiers + * @memberof BI.SingularSessionRequest + * @instance + */ + SingularSessionRequest.prototype.deviceIdentifiers = $util.emptyArray; + + /** + * SingularSessionRequest sharedData. + * @member {BI.ISingularSharedData|null|undefined} sharedData + * @memberof BI.SingularSessionRequest + * @instance + */ + SingularSessionRequest.prototype.sharedData = null; + + /** + * SingularSessionRequest applicationVersion. + * @member {string} applicationVersion + * @memberof BI.SingularSessionRequest + * @instance + */ + SingularSessionRequest.prototype.applicationVersion = ""; + + /** + * SingularSessionRequest install. + * @member {boolean} install + * @memberof BI.SingularSessionRequest + * @instance + */ + SingularSessionRequest.prototype.install = false; + + /** + * SingularSessionRequest installTime. + * @member {number|Long} installTime + * @memberof BI.SingularSessionRequest + * @instance + */ + SingularSessionRequest.prototype.installTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SingularSessionRequest updateTime. + * @member {number|Long} updateTime + * @memberof BI.SingularSessionRequest + * @instance + */ + SingularSessionRequest.prototype.updateTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SingularSessionRequest installSource. + * @member {string} installSource + * @memberof BI.SingularSessionRequest + * @instance + */ + SingularSessionRequest.prototype.installSource = ""; + + /** + * SingularSessionRequest installReceipt. + * @member {string} installReceipt + * @memberof BI.SingularSessionRequest + * @instance + */ + SingularSessionRequest.prototype.installReceipt = ""; + + /** + * SingularSessionRequest openuri. + * @member {string} openuri + * @memberof BI.SingularSessionRequest + * @instance + */ + SingularSessionRequest.prototype.openuri = ""; + + /** + * SingularSessionRequest ddlEnabled. + * @member {boolean} ddlEnabled + * @memberof BI.SingularSessionRequest + * @instance + */ + SingularSessionRequest.prototype.ddlEnabled = false; + + /** + * SingularSessionRequest singularLinkResolveRequired. + * @member {boolean} singularLinkResolveRequired + * @memberof BI.SingularSessionRequest + * @instance + */ + SingularSessionRequest.prototype.singularLinkResolveRequired = false; + + /** + * SingularSessionRequest installRef. + * @member {string} installRef + * @memberof BI.SingularSessionRequest + * @instance + */ + SingularSessionRequest.prototype.installRef = ""; + + /** + * SingularSessionRequest metaRef. + * @member {string} metaRef + * @memberof BI.SingularSessionRequest + * @instance + */ + SingularSessionRequest.prototype.metaRef = ""; + + /** + * SingularSessionRequest attributionToken. + * @member {string} attributionToken + * @memberof BI.SingularSessionRequest + * @instance + */ + SingularSessionRequest.prototype.attributionToken = ""; + + /** + * Creates a new SingularSessionRequest instance using the specified properties. + * @function create + * @memberof BI.SingularSessionRequest + * @static + * @param {BI.ISingularSessionRequest=} [properties] Properties to set + * @returns {BI.SingularSessionRequest} SingularSessionRequest instance + */ + SingularSessionRequest.create = function create(properties) { + return new SingularSessionRequest(properties); + }; + + /** + * Encodes the specified SingularSessionRequest message. Does not implicitly {@link BI.SingularSessionRequest.verify|verify} messages. + * @function encode + * @memberof BI.SingularSessionRequest + * @static + * @param {BI.ISingularSessionRequest} message SingularSessionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SingularSessionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deviceIdentifiers != null && message.deviceIdentifiers.length) + for (let i = 0; i < message.deviceIdentifiers.length; ++i) + $root.BI.SingularDeviceIdentifier.encode(message.deviceIdentifiers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.sharedData != null && Object.hasOwnProperty.call(message, "sharedData")) + $root.BI.SingularSharedData.encode(message.sharedData, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.applicationVersion != null && Object.hasOwnProperty.call(message, "applicationVersion")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.applicationVersion); + if (message.install != null && Object.hasOwnProperty.call(message, "install")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.install); + if (message.installTime != null && Object.hasOwnProperty.call(message, "installTime")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.installTime); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.updateTime); + if (message.installSource != null && Object.hasOwnProperty.call(message, "installSource")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.installSource); + if (message.installReceipt != null && Object.hasOwnProperty.call(message, "installReceipt")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.installReceipt); + if (message.openuri != null && Object.hasOwnProperty.call(message, "openuri")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.openuri); + if (message.ddlEnabled != null && Object.hasOwnProperty.call(message, "ddlEnabled")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.ddlEnabled); + if (message.singularLinkResolveRequired != null && Object.hasOwnProperty.call(message, "singularLinkResolveRequired")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.singularLinkResolveRequired); + if (message.installRef != null && Object.hasOwnProperty.call(message, "installRef")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.installRef); + if (message.metaRef != null && Object.hasOwnProperty.call(message, "metaRef")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.metaRef); + if (message.attributionToken != null && Object.hasOwnProperty.call(message, "attributionToken")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.attributionToken); + return writer; + }; + + /** + * Encodes the specified SingularSessionRequest message, length delimited. Does not implicitly {@link BI.SingularSessionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof BI.SingularSessionRequest + * @static + * @param {BI.ISingularSessionRequest} message SingularSessionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SingularSessionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SingularSessionRequest message from the specified reader or buffer. + * @function decode + * @memberof BI.SingularSessionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {BI.SingularSessionRequest} SingularSessionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SingularSessionRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularSessionRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.deviceIdentifiers && message.deviceIdentifiers.length)) + message.deviceIdentifiers = []; + message.deviceIdentifiers.push($root.BI.SingularDeviceIdentifier.decode(reader, reader.uint32())); + break; + } + case 2: { + message.sharedData = $root.BI.SingularSharedData.decode(reader, reader.uint32()); + break; + } + case 3: { + message.applicationVersion = reader.string(); + break; + } + case 4: { + message.install = reader.bool(); + break; + } + case 5: { + message.installTime = reader.int64(); + break; + } + case 6: { + message.updateTime = reader.int64(); + break; + } + case 7: { + message.installSource = reader.string(); + break; + } + case 8: { + message.installReceipt = reader.string(); + break; + } + case 9: { + message.openuri = reader.string(); + break; + } + case 10: { + message.ddlEnabled = reader.bool(); + break; + } + case 11: { + message.singularLinkResolveRequired = reader.bool(); + break; + } + case 12: { + message.installRef = reader.string(); + break; + } + case 13: { + message.metaRef = reader.string(); + break; + } + case 14: { + message.attributionToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SingularSessionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof BI.SingularSessionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {BI.SingularSessionRequest} SingularSessionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SingularSessionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SingularSessionRequest message. + * @function verify + * @memberof BI.SingularSessionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SingularSessionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deviceIdentifiers != null && message.hasOwnProperty("deviceIdentifiers")) { + if (!Array.isArray(message.deviceIdentifiers)) + return "deviceIdentifiers: array expected"; + for (let i = 0; i < message.deviceIdentifiers.length; ++i) { + let error = $root.BI.SingularDeviceIdentifier.verify(message.deviceIdentifiers[i]); + if (error) + return "deviceIdentifiers." + error; + } + } + if (message.sharedData != null && message.hasOwnProperty("sharedData")) { + let error = $root.BI.SingularSharedData.verify(message.sharedData); + if (error) + return "sharedData." + error; + } + if (message.applicationVersion != null && message.hasOwnProperty("applicationVersion")) + if (!$util.isString(message.applicationVersion)) + return "applicationVersion: string expected"; + if (message.install != null && message.hasOwnProperty("install")) + if (typeof message.install !== "boolean") + return "install: boolean expected"; + if (message.installTime != null && message.hasOwnProperty("installTime")) + if (!$util.isInteger(message.installTime) && !(message.installTime && $util.isInteger(message.installTime.low) && $util.isInteger(message.installTime.high))) + return "installTime: integer|Long expected"; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + if (!$util.isInteger(message.updateTime) && !(message.updateTime && $util.isInteger(message.updateTime.low) && $util.isInteger(message.updateTime.high))) + return "updateTime: integer|Long expected"; + if (message.installSource != null && message.hasOwnProperty("installSource")) + if (!$util.isString(message.installSource)) + return "installSource: string expected"; + if (message.installReceipt != null && message.hasOwnProperty("installReceipt")) + if (!$util.isString(message.installReceipt)) + return "installReceipt: string expected"; + if (message.openuri != null && message.hasOwnProperty("openuri")) + if (!$util.isString(message.openuri)) + return "openuri: string expected"; + if (message.ddlEnabled != null && message.hasOwnProperty("ddlEnabled")) + if (typeof message.ddlEnabled !== "boolean") + return "ddlEnabled: boolean expected"; + if (message.singularLinkResolveRequired != null && message.hasOwnProperty("singularLinkResolveRequired")) + if (typeof message.singularLinkResolveRequired !== "boolean") + return "singularLinkResolveRequired: boolean expected"; + if (message.installRef != null && message.hasOwnProperty("installRef")) + if (!$util.isString(message.installRef)) + return "installRef: string expected"; + if (message.metaRef != null && message.hasOwnProperty("metaRef")) + if (!$util.isString(message.metaRef)) + return "metaRef: string expected"; + if (message.attributionToken != null && message.hasOwnProperty("attributionToken")) + if (!$util.isString(message.attributionToken)) + return "attributionToken: string expected"; + return null; + }; + + /** + * Creates a SingularSessionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof BI.SingularSessionRequest + * @static + * @param {Object.} object Plain object + * @returns {BI.SingularSessionRequest} SingularSessionRequest + */ + SingularSessionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SingularSessionRequest) + return object; + let message = new $root.BI.SingularSessionRequest(); + if (object.deviceIdentifiers) { + if (!Array.isArray(object.deviceIdentifiers)) + throw TypeError(".BI.SingularSessionRequest.deviceIdentifiers: array expected"); + message.deviceIdentifiers = []; + for (let i = 0; i < object.deviceIdentifiers.length; ++i) { + if (typeof object.deviceIdentifiers[i] !== "object") + throw TypeError(".BI.SingularSessionRequest.deviceIdentifiers: object expected"); + message.deviceIdentifiers[i] = $root.BI.SingularDeviceIdentifier.fromObject(object.deviceIdentifiers[i]); + } + } + if (object.sharedData != null) { + if (typeof object.sharedData !== "object") + throw TypeError(".BI.SingularSessionRequest.sharedData: object expected"); + message.sharedData = $root.BI.SingularSharedData.fromObject(object.sharedData); + } + if (object.applicationVersion != null) + message.applicationVersion = String(object.applicationVersion); + if (object.install != null) + message.install = Boolean(object.install); + if (object.installTime != null) + if ($util.Long) + (message.installTime = $util.Long.fromValue(object.installTime)).unsigned = false; + else if (typeof object.installTime === "string") + message.installTime = parseInt(object.installTime, 10); + else if (typeof object.installTime === "number") + message.installTime = object.installTime; + else if (typeof object.installTime === "object") + message.installTime = new $util.LongBits(object.installTime.low >>> 0, object.installTime.high >>> 0).toNumber(); + if (object.updateTime != null) + if ($util.Long) + (message.updateTime = $util.Long.fromValue(object.updateTime)).unsigned = false; + else if (typeof object.updateTime === "string") + message.updateTime = parseInt(object.updateTime, 10); + else if (typeof object.updateTime === "number") + message.updateTime = object.updateTime; + else if (typeof object.updateTime === "object") + message.updateTime = new $util.LongBits(object.updateTime.low >>> 0, object.updateTime.high >>> 0).toNumber(); + if (object.installSource != null) + message.installSource = String(object.installSource); + if (object.installReceipt != null) + message.installReceipt = String(object.installReceipt); + if (object.openuri != null) + message.openuri = String(object.openuri); + if (object.ddlEnabled != null) + message.ddlEnabled = Boolean(object.ddlEnabled); + if (object.singularLinkResolveRequired != null) + message.singularLinkResolveRequired = Boolean(object.singularLinkResolveRequired); + if (object.installRef != null) + message.installRef = String(object.installRef); + if (object.metaRef != null) + message.metaRef = String(object.metaRef); + if (object.attributionToken != null) + message.attributionToken = String(object.attributionToken); + return message; + }; + + /** + * Creates a plain object from a SingularSessionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.SingularSessionRequest + * @static + * @param {BI.SingularSessionRequest} message SingularSessionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SingularSessionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.deviceIdentifiers = []; + if (options.defaults) { + object.sharedData = null; + object.applicationVersion = ""; + object.install = false; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.installTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.installTime = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.updateTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.updateTime = options.longs === String ? "0" : 0; + object.installSource = ""; + object.installReceipt = ""; + object.openuri = ""; + object.ddlEnabled = false; + object.singularLinkResolveRequired = false; + object.installRef = ""; + object.metaRef = ""; + object.attributionToken = ""; + } + if (message.deviceIdentifiers && message.deviceIdentifiers.length) { + object.deviceIdentifiers = []; + for (let j = 0; j < message.deviceIdentifiers.length; ++j) + object.deviceIdentifiers[j] = $root.BI.SingularDeviceIdentifier.toObject(message.deviceIdentifiers[j], options); + } + if (message.sharedData != null && message.hasOwnProperty("sharedData")) + object.sharedData = $root.BI.SingularSharedData.toObject(message.sharedData, options); + if (message.applicationVersion != null && message.hasOwnProperty("applicationVersion")) + object.applicationVersion = message.applicationVersion; + if (message.install != null && message.hasOwnProperty("install")) + object.install = message.install; + if (message.installTime != null && message.hasOwnProperty("installTime")) + if (typeof message.installTime === "number") + object.installTime = options.longs === String ? String(message.installTime) : message.installTime; + else + object.installTime = options.longs === String ? $util.Long.prototype.toString.call(message.installTime) : options.longs === Number ? new $util.LongBits(message.installTime.low >>> 0, message.installTime.high >>> 0).toNumber() : message.installTime; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + if (typeof message.updateTime === "number") + object.updateTime = options.longs === String ? String(message.updateTime) : message.updateTime; + else + object.updateTime = options.longs === String ? $util.Long.prototype.toString.call(message.updateTime) : options.longs === Number ? new $util.LongBits(message.updateTime.low >>> 0, message.updateTime.high >>> 0).toNumber() : message.updateTime; + if (message.installSource != null && message.hasOwnProperty("installSource")) + object.installSource = message.installSource; + if (message.installReceipt != null && message.hasOwnProperty("installReceipt")) + object.installReceipt = message.installReceipt; + if (message.openuri != null && message.hasOwnProperty("openuri")) + object.openuri = message.openuri; + if (message.ddlEnabled != null && message.hasOwnProperty("ddlEnabled")) + object.ddlEnabled = message.ddlEnabled; + if (message.singularLinkResolveRequired != null && message.hasOwnProperty("singularLinkResolveRequired")) + object.singularLinkResolveRequired = message.singularLinkResolveRequired; + if (message.installRef != null && message.hasOwnProperty("installRef")) + object.installRef = message.installRef; + if (message.metaRef != null && message.hasOwnProperty("metaRef")) + object.metaRef = message.metaRef; + if (message.attributionToken != null && message.hasOwnProperty("attributionToken")) + object.attributionToken = message.attributionToken; + return object; + }; + + /** + * Converts this SingularSessionRequest to JSON. + * @function toJSON + * @memberof BI.SingularSessionRequest + * @instance + * @returns {Object.} JSON object + */ + SingularSessionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SingularSessionRequest + * @function getTypeUrl + * @memberof BI.SingularSessionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SingularSessionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.SingularSessionRequest"; + }; + + return SingularSessionRequest; + })(); + + BI.SingularEventRequest = (function() { + + /** + * Properties of a SingularEventRequest. + * @memberof BI + * @interface ISingularEventRequest + * @property {Array.|null} [deviceIdentifiers] SingularEventRequest deviceIdentifiers + * @property {BI.ISingularSharedData|null} [sharedData] SingularEventRequest sharedData + * @property {string|null} [eventName] SingularEventRequest eventName + */ + + /** + * Constructs a new SingularEventRequest. + * @memberof BI + * @classdesc Represents a SingularEventRequest. + * @implements ISingularEventRequest + * @constructor + * @param {BI.ISingularEventRequest=} [properties] Properties to set + */ + function SingularEventRequest(properties) { + this.deviceIdentifiers = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SingularEventRequest deviceIdentifiers. + * @member {Array.} deviceIdentifiers + * @memberof BI.SingularEventRequest + * @instance + */ + SingularEventRequest.prototype.deviceIdentifiers = $util.emptyArray; + + /** + * SingularEventRequest sharedData. + * @member {BI.ISingularSharedData|null|undefined} sharedData + * @memberof BI.SingularEventRequest + * @instance + */ + SingularEventRequest.prototype.sharedData = null; + + /** + * SingularEventRequest eventName. + * @member {string} eventName + * @memberof BI.SingularEventRequest + * @instance + */ + SingularEventRequest.prototype.eventName = ""; + + /** + * Creates a new SingularEventRequest instance using the specified properties. + * @function create + * @memberof BI.SingularEventRequest + * @static + * @param {BI.ISingularEventRequest=} [properties] Properties to set + * @returns {BI.SingularEventRequest} SingularEventRequest instance + */ + SingularEventRequest.create = function create(properties) { + return new SingularEventRequest(properties); + }; + + /** + * Encodes the specified SingularEventRequest message. Does not implicitly {@link BI.SingularEventRequest.verify|verify} messages. + * @function encode + * @memberof BI.SingularEventRequest + * @static + * @param {BI.ISingularEventRequest} message SingularEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SingularEventRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deviceIdentifiers != null && message.deviceIdentifiers.length) + for (let i = 0; i < message.deviceIdentifiers.length; ++i) + $root.BI.SingularDeviceIdentifier.encode(message.deviceIdentifiers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.sharedData != null && Object.hasOwnProperty.call(message, "sharedData")) + $root.BI.SingularSharedData.encode(message.sharedData, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.eventName); + return writer; + }; + + /** + * Encodes the specified SingularEventRequest message, length delimited. Does not implicitly {@link BI.SingularEventRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof BI.SingularEventRequest + * @static + * @param {BI.ISingularEventRequest} message SingularEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SingularEventRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SingularEventRequest message from the specified reader or buffer. + * @function decode + * @memberof BI.SingularEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {BI.SingularEventRequest} SingularEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SingularEventRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularEventRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.deviceIdentifiers && message.deviceIdentifiers.length)) + message.deviceIdentifiers = []; + message.deviceIdentifiers.push($root.BI.SingularDeviceIdentifier.decode(reader, reader.uint32())); + break; + } + case 2: { + message.sharedData = $root.BI.SingularSharedData.decode(reader, reader.uint32()); + break; + } + case 3: { + message.eventName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SingularEventRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof BI.SingularEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {BI.SingularEventRequest} SingularEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SingularEventRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SingularEventRequest message. + * @function verify + * @memberof BI.SingularEventRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SingularEventRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deviceIdentifiers != null && message.hasOwnProperty("deviceIdentifiers")) { + if (!Array.isArray(message.deviceIdentifiers)) + return "deviceIdentifiers: array expected"; + for (let i = 0; i < message.deviceIdentifiers.length; ++i) { + let error = $root.BI.SingularDeviceIdentifier.verify(message.deviceIdentifiers[i]); + if (error) + return "deviceIdentifiers." + error; + } + } + if (message.sharedData != null && message.hasOwnProperty("sharedData")) { + let error = $root.BI.SingularSharedData.verify(message.sharedData); + if (error) + return "sharedData." + error; + } + if (message.eventName != null && message.hasOwnProperty("eventName")) + if (!$util.isString(message.eventName)) + return "eventName: string expected"; + return null; + }; + + /** + * Creates a SingularEventRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof BI.SingularEventRequest + * @static + * @param {Object.} object Plain object + * @returns {BI.SingularEventRequest} SingularEventRequest + */ + SingularEventRequest.fromObject = function fromObject(object) { + if (object instanceof $root.BI.SingularEventRequest) + return object; + let message = new $root.BI.SingularEventRequest(); + if (object.deviceIdentifiers) { + if (!Array.isArray(object.deviceIdentifiers)) + throw TypeError(".BI.SingularEventRequest.deviceIdentifiers: array expected"); + message.deviceIdentifiers = []; + for (let i = 0; i < object.deviceIdentifiers.length; ++i) { + if (typeof object.deviceIdentifiers[i] !== "object") + throw TypeError(".BI.SingularEventRequest.deviceIdentifiers: object expected"); + message.deviceIdentifiers[i] = $root.BI.SingularDeviceIdentifier.fromObject(object.deviceIdentifiers[i]); + } + } + if (object.sharedData != null) { + if (typeof object.sharedData !== "object") + throw TypeError(".BI.SingularEventRequest.sharedData: object expected"); + message.sharedData = $root.BI.SingularSharedData.fromObject(object.sharedData); + } + if (object.eventName != null) + message.eventName = String(object.eventName); + return message; + }; + + /** + * Creates a plain object from a SingularEventRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof BI.SingularEventRequest + * @static + * @param {BI.SingularEventRequest} message SingularEventRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SingularEventRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.deviceIdentifiers = []; + if (options.defaults) { + object.sharedData = null; + object.eventName = ""; + } + if (message.deviceIdentifiers && message.deviceIdentifiers.length) { + object.deviceIdentifiers = []; + for (let j = 0; j < message.deviceIdentifiers.length; ++j) + object.deviceIdentifiers[j] = $root.BI.SingularDeviceIdentifier.toObject(message.deviceIdentifiers[j], options); + } + if (message.sharedData != null && message.hasOwnProperty("sharedData")) + object.sharedData = $root.BI.SingularSharedData.toObject(message.sharedData, options); + if (message.eventName != null && message.hasOwnProperty("eventName")) + object.eventName = message.eventName; + return object; + }; + + /** + * Converts this SingularEventRequest to JSON. + * @function toJSON + * @memberof BI.SingularEventRequest + * @instance + * @returns {Object.} JSON object + */ + SingularEventRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SingularEventRequest + * @function getTypeUrl + * @memberof BI.SingularEventRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SingularEventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/BI.SingularEventRequest"; + }; + + return SingularEventRequest; + })(); + return BI; })(); diff --git a/keeperapi/src/restMessages.ts b/keeperapi/src/restMessages.ts index 3f4ad3c..3093993 100644 --- a/keeperapi/src/restMessages.ts +++ b/keeperapi/src/restMessages.ts @@ -395,6 +395,12 @@ export const ssoServiceProviderRequestMessage = (data: Authentication.ISsoServic export const ssoCloudValidationRequestMessage = (data: SsoCloud.ISsoCloudConfigurationValidationRequest, url: string): RestMessage => createMessage(data, url, SsoCloud.SsoCloudConfigurationValidationRequest, SsoCloud.SsoCloudConfigurationValidationResponse) +export const switchAccountListAuthenticated = () => createOutMessage('/authentication/switch_account_list_authenticated', Authentication.SwitchListResponse) + +export const switchAccountListRemoved = (data: Authentication.LoginAsUserRequest): RestInMessage => createInMessage(data, '/authentication/switch_account_list_remove', Authentication.LoginAsUserRequest) + +export const switchAccountFromAuthenticated = (data: Authentication.LoginAsUserRequest) => createMessage(data, '/authentication/switch_account_from_authenticated', Authentication.LoginAsUserRequest, Authentication.LoginResponse) + /* -- Keeper Automator -- */