From 1e2a36352a4311840bcad04d814a4b8efccb28f6 Mon Sep 17 00:00:00 2001 From: ukumar-ks Date: Wed, 24 Jun 2026 15:11:22 +0530 Subject: [PATCH 01/12] nsf records and folder operation --- KeeperSdk/src/index.ts | 35 +++ .../NestedShareFolderManager.ts | 56 ++++ .../src/nestedShareFolders/addNsfRecord.ts | 160 +++++++++++ .../nestedShareFolders/getNsfRecordDetails.ts | 129 +++++++++ KeeperSdk/src/nestedShareFolders/index.ts | 54 ++++ KeeperSdk/src/nestedShareFolders/mkdirNsf.ts | 204 ++++++++++++++ .../src/nestedShareFolders/nsfConstants.ts | 6 + .../src/nestedShareFolders/nsfHelpers.ts | 238 +++++++++++++++- .../src/nestedShareFolders/nsfRecordCrypto.ts | 95 +++++++ .../src/nestedShareFolders/nsfRecordData.ts | 131 +++++++++ .../src/nestedShareFolders/removeNsfFolder.ts | 260 ++++++++++++++++++ .../src/nestedShareFolders/updateNsfRecord.ts | 131 +++++++++ KeeperSdk/src/utils/constants.ts | 10 + KeeperSdk/src/vault/KeeperVault.ts | 57 ++++ examples/sdk_example/src/utils/format.ts | 14 + keeperapi/src/restMessages.ts | 76 ++++- 16 files changed, 1653 insertions(+), 3 deletions(-) create mode 100644 KeeperSdk/src/nestedShareFolders/addNsfRecord.ts create mode 100644 KeeperSdk/src/nestedShareFolders/getNsfRecordDetails.ts create mode 100644 KeeperSdk/src/nestedShareFolders/mkdirNsf.ts create mode 100644 KeeperSdk/src/nestedShareFolders/nsfRecordCrypto.ts create mode 100644 KeeperSdk/src/nestedShareFolders/nsfRecordData.ts create mode 100644 KeeperSdk/src/nestedShareFolders/removeNsfFolder.ts create mode 100644 KeeperSdk/src/nestedShareFolders/updateNsfRecord.ts diff --git a/KeeperSdk/src/index.ts b/KeeperSdk/src/index.ts index 7847da5c..7cdf205c 100644 --- a/KeeperSdk/src/index.ts +++ b/KeeperSdk/src/index.ts @@ -475,6 +475,20 @@ export { NsfRemoveOperation, removeNestedShareRecords, formatRemoveNsfPreview, + mkdirNestedShareFolder, + NSF_FOLDER_COLORS, + NsfRemoveFolderOperation, + removeNestedShareFolders, + formatRemoveNsfFolderPreview, + GetNsfRecordDetailsFormat, + getNestedShareRecordDetails, + formatNsfRecordDetailsTable, + formatNsfRecordDetailsOutput, + updateNestedShareRecords, + addNestedShareRecord, + buildNsfRecordData, + parseNsfFieldStrings, + checkRecordEditPermission, NestedShareFolderManager, } from './nestedShareFolders' export type { @@ -495,6 +509,27 @@ export type { RemoveNsfRecordInput, NsfRemovePreviewItem, RemoveNsfRecordResult, + MkdirNsfInput, + MkdirNsfResult, + NsfFolderColorInput, + NsfFolderColor, + NsfRemoveFolderOperationInput, + RemoveNsfFolderInput, + NsfRemoveFolderPreviewItem, + RemoveNsfFolderResult, + GetNsfRecordDetailsFormatInput, + GetNsfRecordDetailsInput, + GetNsfRecordDetailsResult, + NsfRecordDetailsItem, + UpdateNsfRecordInput, + UpdateNsfRecordResult, + UpdateNsfRecordResultItem, + UpdateNsfRecordFieldMap, + AddNsfRecordInput, + AddNsfRecordResult, + NsfRecordFieldMap, + NsfRecordCustomField, + ParsedNsfFieldStrings, } from './nestedShareFolders' export type { diff --git a/KeeperSdk/src/nestedShareFolders/NestedShareFolderManager.ts b/KeeperSdk/src/nestedShareFolders/NestedShareFolderManager.ts index 4a21c74f..d98b5c54 100644 --- a/KeeperSdk/src/nestedShareFolders/NestedShareFolderManager.ts +++ b/KeeperSdk/src/nestedShareFolders/NestedShareFolderManager.ts @@ -28,6 +28,25 @@ import { type RemoveNsfRecordInput, type RemoveNsfRecordResult, } from './removeNsfRecord' +import { mkdirNestedShareFolder, type MkdirNsfInput, type MkdirNsfResult } from './mkdirNsf' +import { + formatRemoveNsfFolderPreview, + removeNestedShareFolders, + type RemoveNsfFolderInput, + type RemoveNsfFolderResult, +} from './removeNsfFolder' +import { + getNestedShareRecordDetails, + formatNsfRecordDetailsOutput, + type GetNsfRecordDetailsInput, + type GetNsfRecordDetailsResult, +} from './getNsfRecordDetails' +import { + updateNestedShareRecords, + type UpdateNsfRecordInput, + type UpdateNsfRecordResult, +} from './updateNsfRecord' +import { addNestedShareRecord, type AddNsfRecordInput, type AddNsfRecordResult } from './addNsfRecord' export type AuthProvider = () => Auth @@ -94,4 +113,41 @@ export class NestedShareFolderManager { public formatRemoveNsfPreview(preview: RemoveNsfRecordResult['preview']): string { return formatRemoveNsfPreview(preview) } + + public async mkdirNestedShareFolder(input: MkdirNsfInput): Promise { + return mkdirNestedShareFolder(this.storage, this.requireAuth(), input) + } + + public async removeNestedShareFolders(input: RemoveNsfFolderInput): Promise { + return removeNestedShareFolders(this.storage, this.requireAuth(), input) + } + + public formatRemoveNsfFolderPreview( + preview: RemoveNsfFolderResult['preview'], + operation: RemoveNsfFolderResult['operation'], + quiet?: boolean + ): string { + return formatRemoveNsfFolderPreview(preview, operation, quiet) + } + + public async getNestedShareRecordDetails( + input: GetNsfRecordDetailsInput + ): Promise { + return getNestedShareRecordDetails(this.storage, this.requireAuth(), input) + } + + public formatNsfRecordDetailsOutput( + result: GetNsfRecordDetailsResult, + format?: GetNsfRecordDetailsInput['format'] + ): string { + return formatNsfRecordDetailsOutput(result, format) + } + + public async updateNestedShareRecords(input: UpdateNsfRecordInput): Promise { + return updateNestedShareRecords(this.storage, this.requireAuth(), input) + } + + public async addNestedShareRecord(input: AddNsfRecordInput): Promise { + return addNestedShareRecord(this.storage, this.requireAuth(), input) + } } diff --git a/KeeperSdk/src/nestedShareFolders/addNsfRecord.ts b/KeeperSdk/src/nestedShareFolders/addNsfRecord.ts new file mode 100644 index 00000000..847cae4f --- /dev/null +++ b/KeeperSdk/src/nestedShareFolders/addNsfRecord.ts @@ -0,0 +1,160 @@ +import type { Auth, record as RecordProto } from '@keeper-security/keeperapi' +import { + Folder, + Records, + generateEncryptionKey, + generateUid, + keeperDriveRecordsAdd, + normal64Bytes, + platform, +} from '@keeper-security/keeperapi' +import type { InMemoryStorage } from '../storage/InMemoryStorage' +import { KeeperSdkError, ResultCodes, extractErrorMessage } from '../utils' +import { + buildNsfRecordData, + getPaddedJsonBytes, + type NsfRecordCustomField, + type NsfRecordFieldMap, +} from './nsfRecordData' +import { + ensureNestedShareFolder, + nsfToNumber, + parseRecordModifyStatus, + requireAuthDataKey, + resolveNsfFolderIdentifier, +} from './nsfHelpers' + +export type { NsfRecordFieldMap, NsfRecordCustomField } from './nsfRecordData' + +export type AddNsfRecordInput = { + title: string + recordType: string + folder?: string + notes?: string + fields?: NsfRecordFieldMap + custom?: NsfRecordCustomField[] + recordData?: Record + force?: boolean + hasFileFields?: boolean +} + +export type AddNsfRecordResult = { + recordUid: string + success: boolean + status: string + message?: string + revision?: number +} + +function resolveFolderUid(storage: InMemoryStorage, folderInput?: string): string | undefined { + const trimmed = folderInput?.trim() + if (!trimmed) return undefined + + const folderUid = resolveNsfFolderIdentifier(storage, trimmed) + if (!folderUid) { + throw new KeeperSdkError(`No such folder: ${trimmed}`, ResultCodes.NSF_NOT_FOUND) + } + ensureNestedShareFolder(storage, folderUid, trimmed) + return folderUid +} + +async function requireFolderKey(storage: InMemoryStorage, folderUid: string): Promise { + const folderKey = await storage.getKeyBytes(folderUid) + if (folderKey) return folderKey + throw new KeeperSdkError( + `Folder key not found for ${folderUid}. Run sync() first.`, + ResultCodes.NSF_MISSING_KEY + ) +} + +async function buildRecordAdd( + storage: InMemoryStorage, + auth: Auth, + recordData: Record, + folderUid?: string +): Promise<{ recordUid: string; recordAdd: RecordProto.v3.IRecordAdd }> { + const recordUid = generateUid() + const recordKey = generateEncryptionKey() + await storage.saveKeyBytes(recordUid, recordKey) + + const recordAdd: RecordProto.v3.IRecordAdd = { + recordUid: normal64Bytes(recordUid), + clientModifiedTime: Date.now(), + data: await platform.aesGcmEncrypt(getPaddedJsonBytes(recordData), recordKey), + } + + if (folderUid) { + const folderKey = await requireFolderKey(storage, folderUid) + recordAdd.folderUid = normal64Bytes(folderUid) + recordAdd.recordKey = await platform.aesGcmEncrypt(recordKey, folderKey) + recordAdd.recordKeyEncryptedBy = Folder.FolderKeyEncryptionType.ENCRYPTED_BY_PARENT_KEY + recordAdd.recordKeyType = Folder.EncryptedKeyType.encrypted_by_data_key_gcm + } else { + recordAdd.recordKey = await platform.aesGcmEncrypt(recordKey, requireAuthDataKey(auth)) + recordAdd.recordKeyType = Folder.EncryptedKeyType.encrypted_by_data_key_gcm + } + + return { recordUid, recordAdd } +} + +export async function addNestedShareRecord( + storage: InMemoryStorage, + auth: Auth, + input: AddNsfRecordInput +): Promise { + if (!input.title?.trim()) { + throw new KeeperSdkError('Record title is required.', ResultCodes.NSF_ADD_FAILED) + } + if (!input.recordType?.trim() && !input.recordData) { + throw new KeeperSdkError('Record type is required.', ResultCodes.NSF_ADD_FAILED) + } + if (input.hasFileFields && !input.force) { + throw new KeeperSdkError( + 'File attachments are not supported in nested share record add.', + ResultCodes.NSF_ADD_FAILED + ) + } + + const recordData = + input.recordData ?? + buildNsfRecordData({ + title: input.title, + recordType: input.recordType, + notes: input.notes, + fields: input.fields, + custom: input.custom, + }) + + try { + const { recordUid, recordAdd } = await buildRecordAdd( + storage, + auth, + recordData, + resolveFolderUid(storage, input.folder) + ) + const response = await auth.executeRest( + keeperDriveRecordsAdd({ + records: [recordAdd], + clientTime: Date.now(), + }) + ) + const { statusName, message } = parseRecordModifyStatus( + response.records?.[0], + ResultCodes.NSF_ADD_FAILED + ) + + return { + recordUid, + success: true, + status: statusName, + message, + revision: nsfToNumber(response.revision), + } + } catch (err) { + if (err instanceof KeeperSdkError) throw err + throw new KeeperSdkError( + `Failed to add nested share record: ${extractErrorMessage(err)}`, + ResultCodes.NSF_ADD_FAILED + ) + } +} diff --git a/KeeperSdk/src/nestedShareFolders/getNsfRecordDetails.ts b/KeeperSdk/src/nestedShareFolders/getNsfRecordDetails.ts new file mode 100644 index 00000000..c7235ec9 --- /dev/null +++ b/KeeperSdk/src/nestedShareFolders/getNsfRecordDetails.ts @@ -0,0 +1,129 @@ +import type { Auth, Records } from '@keeper-security/keeperapi' +import { normal64Bytes, recordDetailsDataMessage, webSafe64FromBytes } from '@keeper-security/keeperapi' +import type { InMemoryStorage } from '../storage/InMemoryStorage' +import { KeeperSdkError, ResultCodes, extractErrorMessage } from '../utils' +import { decryptRecordTitleAndType } from './nsfRecordCrypto' +import { ensureNestedShareRecord, nsfToNumber, resolveNsfRecordIdentifier } from './nsfHelpers' + +export enum GetNsfRecordDetailsFormat { + Table = 'table', + JSON = 'json', +} + +export type GetNsfRecordDetailsFormatInput = GetNsfRecordDetailsFormat | `${GetNsfRecordDetailsFormat}` + +export type NsfRecordDetailsItem = { + recordUid: string + title: string + type: string + revision: number + version: number +} + +export type GetNsfRecordDetailsResult = { + data: NsfRecordDetailsItem[] + forbiddenRecords: string[] +} + +export type GetNsfRecordDetailsInput = { + records: string[] + format?: GetNsfRecordDetailsFormatInput +} + +function resolveRecordUids(storage: InMemoryStorage, identifiers: string[]): string[] { + if (identifiers.length === 0) { + throw new KeeperSdkError('At least one record UID or title is required.', ResultCodes.NSF_DETAILS_FAILED) + } + + return identifiers.map((identifier) => { + const recordUid = resolveNsfRecordIdentifier(storage, identifier) + if (!recordUid) { + throw new KeeperSdkError(`Record '${identifier}' not found`, ResultCodes.NSF_NOT_FOUND) + } + ensureNestedShareRecord(storage, recordUid, identifier) + return recordUid + }) +} + +async function mapRecordDetailsItem( + storage: InMemoryStorage, + auth: Auth, + item: Records.IRecordData +): Promise { + const recordUid = item.recordUid?.length ? webSafe64FromBytes(item.recordUid) : '' + if (!recordUid) return undefined + + const { title, type } = await decryptRecordTitleAndType(storage, auth, recordUid, item) + return { + recordUid, + title, + type, + revision: nsfToNumber(item.revision, 0) ?? 0, + version: item.version ?? 0, + } +} + +export function formatNsfRecordDetailsTable(result: GetNsfRecordDetailsResult): string { + const lines: string[] = [] + for (const record of result.data) { + lines.push(`Record UID: ${record.recordUid}`) + lines.push(` Title: ${record.title}`) + lines.push(` Type: ${record.type}`) + lines.push(` Version: ${record.version}`) + lines.push(` Revision: ${record.revision}`) + lines.push('') + } + if (result.forbiddenRecords.length > 0) { + lines.push(`Forbidden records: ${result.forbiddenRecords.length}`) + for (const uid of result.forbiddenRecords) { + lines.push(` ${uid}`) + } + lines.push('') + } + lines.push(`Total records retrieved: ${result.data.length}`) + return lines.join('\n').trimEnd() +} + +export function formatNsfRecordDetailsOutput( + result: GetNsfRecordDetailsResult, + format: GetNsfRecordDetailsFormatInput = GetNsfRecordDetailsFormat.Table +): string { + if (String(format).toLowerCase() === GetNsfRecordDetailsFormat.JSON) { + return JSON.stringify(result, null, 2) + } + return formatNsfRecordDetailsTable(result) +} + +export async function getNestedShareRecordDetails( + storage: InMemoryStorage, + auth: Auth, + input: GetNsfRecordDetailsInput +): Promise { + const recordUids = resolveRecordUids(storage, input.records) + + try { + const response = await auth.executeRest( + recordDetailsDataMessage({ + recordUids: recordUids.map((uid) => normal64Bytes(uid)), + clientTime: Date.now(), + }) + ) + + const data: NsfRecordDetailsItem[] = [] + for (const item of response.data ?? []) { + const mapped = await mapRecordDetailsItem(storage, auth, item) + if (mapped) data.push(mapped) + } + + return { + data, + forbiddenRecords: (response.forbiddenRecords ?? []).map((uid) => webSafe64FromBytes(uid)), + } + } catch (err) { + if (err instanceof KeeperSdkError) throw err + throw new KeeperSdkError( + `Failed to get nested share record details: ${extractErrorMessage(err)}`, + ResultCodes.NSF_DETAILS_FAILED + ) + } +} diff --git a/KeeperSdk/src/nestedShareFolders/index.ts b/KeeperSdk/src/nestedShareFolders/index.ts index 2edc264a..c6e351ee 100644 --- a/KeeperSdk/src/nestedShareFolders/index.ts +++ b/KeeperSdk/src/nestedShareFolders/index.ts @@ -19,9 +19,14 @@ export { ensureNestedShareFolder, resolveNsfRecordIdentifier, resolveNsfFolderIdentifier, + resolveNsfFolderUidOrName, findNestedShareFoldersForRecord, checkFolderRemovePermission, checkRecordDeletePermission, + checkRecordEditPermission, + checkFolderDeletePermission, + parseNsfPath, + findExistingChildFolder, } from './nsfHelpers' export { @@ -75,4 +80,53 @@ export type { RemoveNsfRecordResult, } from './removeNsfRecord' +export { mkdirNestedShareFolder } from './mkdirNsf' +export type { MkdirNsfInput, MkdirNsfResult, NsfFolderColorInput } from './mkdirNsf' +export { NSF_FOLDER_COLORS } from './nsfConstants' +export type { NsfFolderColor } from './nsfConstants' + +export { + NsfRemoveFolderOperation, + removeNestedShareFolders, + formatRemoveNsfFolderPreview, +} from './removeNsfFolder' +export type { + NsfRemoveFolderOperationInput, + RemoveNsfFolderInput, + NsfRemoveFolderPreviewItem, + RemoveNsfFolderResult, +} from './removeNsfFolder' + +export { + GetNsfRecordDetailsFormat, + getNestedShareRecordDetails, + formatNsfRecordDetailsTable, + formatNsfRecordDetailsOutput, +} from './getNsfRecordDetails' +export type { + GetNsfRecordDetailsFormatInput, + GetNsfRecordDetailsInput, + GetNsfRecordDetailsResult, + NsfRecordDetailsItem, +} from './getNsfRecordDetails' + +export { updateNestedShareRecords } from './updateNsfRecord' +export type { + UpdateNsfRecordInput, + UpdateNsfRecordResult, + UpdateNsfRecordResultItem, + UpdateNsfRecordFieldMap, +} from './updateNsfRecord' + +export { addNestedShareRecord } from './addNsfRecord' +export type { AddNsfRecordInput, AddNsfRecordResult } from './addNsfRecord' + +export { + buildNsfRecordData, + parseNsfFieldStrings, + type NsfRecordFieldMap, + type NsfRecordCustomField, + type ParsedNsfFieldStrings, +} from './nsfRecordData' + export { NestedShareFolderManager } from './NestedShareFolderManager' diff --git a/KeeperSdk/src/nestedShareFolders/mkdirNsf.ts b/KeeperSdk/src/nestedShareFolders/mkdirNsf.ts new file mode 100644 index 00000000..35066b18 --- /dev/null +++ b/KeeperSdk/src/nestedShareFolders/mkdirNsf.ts @@ -0,0 +1,204 @@ +import type { Auth } from '@keeper-security/keeperapi' +import { + Folder, + folderAddMessage, + generateEncryptionKey, + generateUid, + normal64Bytes, + platform, +} from '@keeper-security/keeperapi' +import type { InMemoryStorage } from '../storage/InMemoryStorage' +import { KeeperSdkError, ResultCodes, extractErrorMessage } from '../utils' +import { NSF_FOLDER_COLORS, type NsfFolderColor } from './nsfConstants' +import { + buildFolderOwnerInfo, + cacheNewNsfFolder, + findExistingChildFolder, + isNestedShareFolder, + parseFolderModifyStatus, + parseNsfPath, + requireAuthDataKey, + resolveKeeperDriveParentUid, +} from './nsfHelpers' + +type NsfFolderMetadata = { + name: string + color?: string +} + +export type NsfFolderColorInput = NsfFolderColor | `${NsfFolderColor}` + +export type MkdirNsfInput = { + folder: string + color?: NsfFolderColorInput + noInheritPermissions?: boolean + baseFolderUid?: string | null +} + +export type MkdirNsfResult = { + folderUid: string + created: boolean + message?: string +} + +function normalizeColor(color?: NsfFolderColorInput): NsfFolderColor | undefined { + if (!color) return undefined + if (!(NSF_FOLDER_COLORS as readonly string[]).includes(color)) { + throw new KeeperSdkError( + `Invalid color '${color}'. Use: ${NSF_FOLDER_COLORS.join(', ')}.`, + ResultCodes.NSF_MKDIR_FAILED + ) + } + return color +} + +function resolveBaseFolderUid( + storage: InMemoryStorage, + baseFolderUid: string | null | undefined +): string | null { + if (!baseFolderUid) return null + return isNestedShareFolder(storage, baseFolderUid) ? baseFolderUid : null +} + +async function resolveFolderKeyEncryptionKey( + storage: InMemoryStorage, + auth: Auth, + parentUid: string | null +): Promise { + if (parentUid) { + const parentKey = await storage.getKeyBytes(parentUid) + if (parentKey) return parentKey + } + return requireAuthDataKey(auth) +} + +async function prepareFolderData( + storage: InMemoryStorage, + auth: Auth, + folderName: string, + parentUid: string | null, + color: NsfFolderColor | undefined, + inheritPermissions: boolean +): Promise<{ folderUid: string; folderData: Folder.IFolderData }> { + const folderUid = generateUid() + const folderKey = generateEncryptionKey() + await storage.saveKeyBytes(folderUid, folderKey) + + const metadata: NsfFolderMetadata = { name: folderName } + if (color && color !== 'none') metadata.color = color + + const resolvedParentUid = resolveKeeperDriveParentUid(storage, parentUid) + const encryptedData = await platform.aesGcmEncrypt( + platform.stringToBytes(JSON.stringify(metadata)), + folderKey + ) + const encryptionKey = await resolveFolderKeyEncryptionKey(storage, auth, resolvedParentUid) + const encryptedFolderKey = await platform.aesGcmEncrypt(folderKey, encryptionKey) + + return { + folderUid, + folderData: Folder.FolderData.create({ + folderUid: normal64Bytes(folderUid), + parentUid: resolvedParentUid ? normal64Bytes(resolvedParentUid) : undefined, + data: encryptedData, + folderKey: encryptedFolderKey, + type: Folder.FolderUsageType.UT_NORMAL, + inheritUserPermissions: inheritPermissions + ? Folder.SetBooleanValue.BOOLEAN_TRUE + : Folder.SetBooleanValue.BOOLEAN_FALSE, + ownerInfo: buildFolderOwnerInfo(auth), + }), + } +} + +async function createFolderV3( + storage: InMemoryStorage, + auth: Auth, + folderName: string, + parentUid: string | null, + color: NsfFolderColor | undefined, + inheritPermissions: boolean +): Promise<{ folderUid: string; message: string }> { + const { folderUid, folderData } = await prepareFolderData( + storage, + auth, + folderName, + parentUid, + color, + inheritPermissions + ) + + const response = await auth.executeRest(folderAddMessage({ folderData: [folderData] })) + const message = parseFolderModifyStatus(response.folderAddResults?.[0], ResultCodes.NSF_MKDIR_FAILED) + + await cacheNewNsfFolder(storage, auth, folderUid, folderName, parentUid, inheritPermissions) + return { folderUid, message } +} + +export async function mkdirNestedShareFolder( + storage: InMemoryStorage, + auth: Auth, + input: MkdirNsfInput +): Promise { + const folderPath = (input.folder ?? '').trim() + if (!folderPath) { + throw new KeeperSdkError('Folder name is required.', ResultCodes.NSF_MKDIR_FAILED) + } + + const color = normalizeColor(input.color) + const inheritPermissions = !input.noInheritPermissions + const segments = parseNsfPath(folderPath) + let parentUid: string | null = resolveBaseFolderUid(storage, input.baseFolderUid) + const lastIdx = segments.length - 1 + let createdUid: string | undefined + + try { + for (let idx = 0; idx < segments.length; idx++) { + const segment = segments[idx] + const isLeaf = idx === lastIdx + const existingUid = findExistingChildFolder(storage, segment, parentUid) + + if (existingUid) { + if (isLeaf) { + return { + folderUid: existingUid, + created: false, + message: `Folder "${segment}" already exists.`, + } + } + parentUid = existingUid + continue + } + + const result = await createFolderV3( + storage, + auth, + segment, + parentUid, + isLeaf ? color : undefined, + isLeaf ? inheritPermissions : true + ) + createdUid = result.folderUid + parentUid = createdUid + } + + if (!createdUid) { + throw new KeeperSdkError('Folder creation did not return a UID.', ResultCodes.NSF_MKDIR_FAILED) + } + + return { + folderUid: createdUid, + created: true, + message: + segments.length > 1 + ? `Created folder path "${folderPath}".` + : `Created folder "${segments[lastIdx]}".`, + } + } catch (err) { + if (err instanceof KeeperSdkError) throw err + throw new KeeperSdkError( + `Failed to create nested share folder: ${extractErrorMessage(err)}`, + ResultCodes.NSF_MKDIR_FAILED + ) + } +} diff --git a/KeeperSdk/src/nestedShareFolders/nsfConstants.ts b/KeeperSdk/src/nestedShareFolders/nsfConstants.ts index ea667a20..68c67f1e 100644 --- a/KeeperSdk/src/nestedShareFolders/nsfConstants.ts +++ b/KeeperSdk/src/nestedShareFolders/nsfConstants.ts @@ -52,3 +52,9 @@ export const NSF_LIST_DEFAULT_COLUMN_WIDTH = 40 export const NSF_LIST_MIN_TRUNCATE_PREFIX = 3 export const NSF_MAX_REMOVALS = 500 +export const NSF_MAX_FOLDER_REMOVALS = 100 + +export const NSF_PATH_SENTINEL = '\x00' + +export const NSF_FOLDER_COLORS = ['none', 'red', 'orange', 'yellow', 'green', 'blue', 'gray'] as const +export type NsfFolderColor = (typeof NSF_FOLDER_COLORS)[number] diff --git a/KeeperSdk/src/nestedShareFolders/nsfHelpers.ts b/KeeperSdk/src/nestedShareFolders/nsfHelpers.ts index 67b5a171..d8449535 100644 --- a/KeeperSdk/src/nestedShareFolders/nsfHelpers.ts +++ b/KeeperSdk/src/nestedShareFolders/nsfHelpers.ts @@ -1,4 +1,5 @@ import type { + Auth, DRecord, DUser, DKdFolder, @@ -6,7 +7,7 @@ import type { DKdFolderRecord, DKdRecordAccess, } from '@keeper-security/keeperapi' -import { Folder, webSafe64FromBytes } from '@keeper-security/keeperapi' +import { Folder, Records, webSafe64FromBytes } from '@keeper-security/keeperapi' import type { InMemoryStorage } from '../storage/InMemoryStorage' import { VaultObjectKind } from '../folders/folderHelpers' import { KeeperSdkError, ResultCodes } from '../utils' @@ -17,6 +18,7 @@ import { NSF_LEGACY_FOLDER_MSG, NSF_LEGACY_RECORD_MSG, NSF_NOTE_FIELD_TYPES, + NSF_PATH_SENTINEL, NSF_RECORD_DESCRIPTION_MAX_LENGTH, NSF_SENSITIVE_FIELD_TYPES, } from './nsfConstants' @@ -33,6 +35,76 @@ export enum NsfItemType { Record = 'Record', } +export function nsfToNumber( + value: number | { toNumber: () => number } | null | undefined, + fallback?: number +): number | undefined { + if (value == null) return fallback + return typeof value === 'number' ? value : value.toNumber() +} + +export function requireAuthAccountUid(auth: Auth): Uint8Array { + const accountUid = auth.accountUid + if (!accountUid?.length) { + throw new KeeperSdkError('Not logged in. Call login() first.', ResultCodes.NOT_LOGGED_IN) + } + return accountUid +} + +export function requireAuthDataKey(auth: Auth): Uint8Array { + if (!auth.dataKey?.length) { + throw new KeeperSdkError('Data key not available. Ensure you are logged in.', ResultCodes.NSF_MISSING_KEY) + } + return auth.dataKey +} + +export function buildFolderOwnerInfo(auth: Auth): Folder.IUserInfo | undefined { + if (!auth.accountUid?.length) return undefined + return { + accountUid: auth.accountUid, + username: auth.username, + } +} + +export function parseFolderModifyStatus( + result: Folder.IFolderModifyResult | null | undefined, + failureCode: string +): string { + if (!result) { + throw new KeeperSdkError('No results from folder operation.', failureCode) + } + const status = result.status ?? Folder.FolderModifyStatus.SUCCESS + const statusName = Folder.FolderModifyStatus[status] ?? String(status) + if (status !== Folder.FolderModifyStatus.SUCCESS) { + throw new KeeperSdkError( + result.message || `Folder operation failed (${statusName}).`, + failureCode + ) + } + return result.message || 'Folder operation succeeded' +} + +export function parseRecordModifyStatus( + result: Records.IRecordModifyStatus | null | undefined, + failureCode: string +): { statusName: string; message: string } { + if (!result) { + throw new KeeperSdkError('No results from record operation.', failureCode) + } + const status = result.status ?? Records.RecordModifyResult.RS_SUCCESS + const statusName = Records.RecordModifyResult[status] ?? String(status) + if (status !== Records.RecordModifyResult.RS_SUCCESS) { + throw new KeeperSdkError( + result.message || `Record operation failed (${statusName}).`, + failureCode + ) + } + return { + statusName, + message: result.message || 'Record operation succeeded', + } +} + export function isNestedShareRecord(storage: InMemoryStorage, recordUid: string): boolean { return !!getKeeperDriveRecord(storage, recordUid) } @@ -174,6 +246,145 @@ export function resolveNsfFolderIdentifier(storage: InMemoryStorage, identifier: return resolveFolderByPath(storage, trimmed) } +export function resolveNsfFolderUidOrName(storage: InMemoryStorage, identifier: string): string | undefined { + const trimmed = identifier.trim() + if (!trimmed) return undefined + + if (getKeeperDriveFolder(storage, trimmed)) return trimmed + + return resolveByUidOrName( + getKeeperDriveFolders(storage), + trimmed, + (folder) => folder.uid, + (folder) => folder.data.name || '' + )?.uid +} + +export function parseNsfPath(folderPath: string): string[] { + const collapsed = folderPath.replace(/\/\//g, NSF_PATH_SENTINEL) + const segments: string[] = [] + for (const raw of collapsed.split('/')) { + const name = raw.replace(new RegExp(NSF_PATH_SENTINEL, 'g'), '/').trim() + if (name) segments.push(name) + } + if (segments.length === 0) { + throw new KeeperSdkError('Invalid folder name.', ResultCodes.NSF_MKDIR_FAILED) + } + return segments +} + +function isVirtualDriveRootParent(storage: InMemoryStorage, parentUid: string | undefined | null): boolean { + const trimmed = parentUid?.trim() + if (!trimmed || isRootFolderUid(storage, trimmed)) return true + return !getKnownKeeperDriveFolderUids(storage).has(trimmed) +} + +function isRootLevelParent(storage: InMemoryStorage, parentUid: string | undefined | null): boolean { + return isVirtualDriveRootParent(storage, parentUid) +} + +function folderParentsMatch( + storage: InMemoryStorage, + folderParentUid: string | undefined, + searchParentUid: string | null | undefined +): boolean { + if (normalizeParentUid(storage, folderParentUid) === normalizeParentUid(storage, searchParentUid)) { + return true + } + return isRootLevelParent(storage, searchParentUid) && isRootLevelParent(storage, folderParentUid) +} + +export function findExistingChildFolder( + storage: InMemoryStorage, + segment: string, + parentUid: string | null | undefined +): string | undefined { + const lower = segment.toLowerCase() + const exactMatches: string[] = [] + const rootMatches: string[] = [] + + for (const folder of getKeeperDriveFolders(storage)) { + const name = folder.data.name || '' + if (name.toLowerCase() !== lower) continue + + if (normalizeParentUid(storage, folder.parentUid) === normalizeParentUid(storage, parentUid)) { + exactMatches.push(folder.uid) + continue + } + if (folderParentsMatch(storage, folder.parentUid, parentUid)) { + rootMatches.push(folder.uid) + } + } + + if (exactMatches.length > 0) return exactMatches[0] + if (rootMatches.length > 0) return rootMatches[0] + return undefined +} + +export function resolveKeeperDriveParentUid( + storage: InMemoryStorage, + parentUid: string | null | undefined +): string | null { + if (parentUid && !isRootFolderUid(storage, parentUid)) return parentUid + return resolveKeeperDriveRootParentUid(storage) ?? null +} + +export async function cacheNewNsfFolder( + storage: InMemoryStorage, + auth: { username?: string; accountUid?: Uint8Array }, + folderUid: string, + name: string, + parentUid: string | null | undefined, + inheritPermissions: boolean +): Promise { + const normalizedParent = + parentUid && !isRootFolderUid(storage, parentUid) + ? parentUid.trim() + : resolveKeeperDriveRootParentUid(storage) + await storage.put({ + kind: 'keeper_drive_folder', + uid: folderUid, + data: { name }, + parentUid: normalizedParent, + ownerInfo: { + accountUid: auth.accountUid?.length ? webSafe64FromBytes(auth.accountUid) : undefined, + username: auth.username, + }, + type: Folder.FolderUsageType.UT_NORMAL, + inheritUserPermissions: inheritPermissions + ? Folder.SetBooleanValue.BOOLEAN_TRUE + : Folder.SetBooleanValue.BOOLEAN_FALSE, + }) +} + +export function checkFolderDeletePermission( + storage: InMemoryStorage, + folderUid: string, + username: string, + accountUid: Uint8Array +): void { + if (isRootFolderUid(storage, folderUid)) { + throw new KeeperSdkError('The root folder cannot be removed.', ResultCodes.NSF_PERMISSION_DENIED) + } + + const accountUidStr = toRequiredAccountUidStr(accountUid) + const entries = getFolderAccessEntries(storage, folderUid) + if (entries.length === 0) return + + for (const entry of entries) { + if (!isCurrentUserFolderAccess(storage, entry, username, accountUidStr)) continue + if (entry.accessType === Folder.AccessType.AT_OWNER || entry.permission?.canDelete) return + throw new KeeperSdkError( + 'You do not have permission to delete this folder.', + ResultCodes.NSF_PERMISSION_DENIED + ) + } + throw new KeeperSdkError( + 'You do not have permission to delete this folder.', + ResultCodes.NSF_PERMISSION_DENIED + ) +} + export function findNestedShareFoldersForRecord(storage: InMemoryStorage, recordUid: string): string[] { return storage .getAll(KeeperDriveKind.FolderRecord) @@ -322,6 +533,30 @@ export function checkRecordDeletePermission( ) } +export function checkRecordEditPermission( + storage: InMemoryStorage, + recordUid: string, + username: string, + accountUid: Uint8Array +): void { + const accountUidStr = toRequiredAccountUidStr(accountUid) + const entries = getRecordAccessEntries(storage, recordUid) + if (entries.length === 0) return + + for (const entry of entries) { + if (!isCurrentUserRecordAccess(storage, entry, username, accountUidStr)) continue + if (entry.owner || entry.canEdit) return + throw new KeeperSdkError( + 'You do not have permission to edit this record.', + ResultCodes.NSF_PERMISSION_DENIED + ) + } + throw new KeeperSdkError( + 'You do not have permission to edit this record.', + ResultCodes.NSF_PERMISSION_DENIED + ) +} + export function formatAccessRoleType(role: Folder.AccessRoleType | null | undefined): string { if (role == null) return 'unknown' return NSF_ACCESS_ROLE_LABELS[role] ?? `role-${role}` @@ -455,4 +690,3 @@ export function isFolderUserPermission(entry: DKdFolderAccess): boolean { entry.accessType === Folder.AccessType.AT_OWNER ) } - diff --git a/KeeperSdk/src/nestedShareFolders/nsfRecordCrypto.ts b/KeeperSdk/src/nestedShareFolders/nsfRecordCrypto.ts new file mode 100644 index 00000000..1a76c12d --- /dev/null +++ b/KeeperSdk/src/nestedShareFolders/nsfRecordCrypto.ts @@ -0,0 +1,95 @@ +import type { Auth } from '@keeper-security/keeperapi' +import { Records, normal64Bytes, platform, webSafe64FromBytes } from '@keeper-security/keeperapi' +import type { InMemoryStorage } from '../storage/InMemoryStorage' +import { findNestedShareFoldersForRecord } from './nsfHelpers' + +const UNKNOWN_RECORD_LABEL = 'Unknown' + +function decodePayload(value: string | Uint8Array | null | undefined): Uint8Array { + if (!value) return new Uint8Array(0) + if (value instanceof Uint8Array) return value + return normal64Bytes(value) +} + +async function decryptWithFolderKeys( + storage: InMemoryStorage, + recordUid: string, + encryptedKey: Uint8Array +): Promise { + for (const folderUid of findNestedShareFoldersForRecord(storage, recordUid)) { + const folderKey = await storage.getKeyBytes(folderUid) + if (!folderKey) continue + try { + return await platform.aesGcmDecrypt(encryptedKey, folderKey) + } catch { + try { + return await platform.aesCbcDecrypt(encryptedKey, folderKey, true) + } catch { + continue + } + } + } + return undefined +} + +export async function resolveRecordKeyBytes( + storage: InMemoryStorage, + auth: Auth, + recordUid: string, + encryptedKey?: Uint8Array | null, + keyType?: Records.RecordKeyType | null +): Promise { + const cached = await storage.getKeyBytes(recordUid) + if (cached) return cached + + if (!encryptedKey?.length || !auth.dataKey) { + return decryptWithFolderKeys(storage, recordUid, encryptedKey ?? new Uint8Array(0)) + } + + try { + if (keyType === Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY) { + return await platform.aesCbcDecrypt(encryptedKey, auth.dataKey, true) + } + return await platform.aesGcmDecrypt(encryptedKey, auth.dataKey) + } catch { + return decryptWithFolderKeys(storage, recordUid, encryptedKey) + } +} + +export async function decryptRecordTitleAndType( + storage: InMemoryStorage, + auth: Auth, + recordUid: string, + recordData: Records.IRecordData +): Promise<{ title: string; type: string }> { + const uid = recordData.recordUid?.length ? webSafe64FromBytes(recordData.recordUid) : recordUid + const recordKey = await resolveRecordKeyBytes( + storage, + auth, + uid, + recordData.recordKey, + recordData.recordKeyType + ) + if (!recordKey) { + return { title: UNKNOWN_RECORD_LABEL, type: UNKNOWN_RECORD_LABEL } + } + + const encryptedData = decodePayload(recordData.encryptedRecordData) + if (!encryptedData.length) { + return { title: UNKNOWN_RECORD_LABEL, type: UNKNOWN_RECORD_LABEL } + } + + try { + const decrypted = await platform.aesGcmDecrypt(encryptedData, recordKey) + const parsed = JSON.parse(platform.bytesToString(decrypted).replace(/\s+$/, '')) as { + title?: string + type?: string + } + return { + title: parsed.title?.trim() || UNKNOWN_RECORD_LABEL, + type: parsed.type?.trim() || UNKNOWN_RECORD_LABEL, + } + } catch { + return { title: UNKNOWN_RECORD_LABEL, type: UNKNOWN_RECORD_LABEL } + } +} diff --git a/KeeperSdk/src/nestedShareFolders/nsfRecordData.ts b/KeeperSdk/src/nestedShareFolders/nsfRecordData.ts new file mode 100644 index 00000000..56dc7b3e --- /dev/null +++ b/KeeperSdk/src/nestedShareFolders/nsfRecordData.ts @@ -0,0 +1,131 @@ +import { platform } from '@keeper-security/keeperapi' + +const MIN_RECORD_PAD_BYTES = 384 +const PAD_BLOCK_SIZE = 16 +const LEGACY_RECORD_TYPES = new Set(['legacy', 'general']) + +export type NsfRecordFieldMap = Record + +export type NsfRecordCustomField = { + type: string + label?: string + value: string | string[] +} + +export type BuildNsfRecordDataInput = { + title: string + recordType: string + notes?: string + fields?: NsfRecordFieldMap + custom?: NsfRecordCustomField[] +} + +export function normalizeNsfFieldValue(value: string | string[]): string[] { + return Array.isArray(value) ? value : [value] +} + +export function getPaddedJsonBytes(data: Record): Uint8Array { + const json = JSON.stringify(data) + const paddedLength = Math.ceil(Math.max(MIN_RECORD_PAD_BYTES, json.length) / PAD_BLOCK_SIZE) * PAD_BLOCK_SIZE + return platform.stringToBytes(json.padEnd(paddedLength, ' ')) +} + +function fieldsMapToArray(fields: NsfRecordFieldMap): { type: string; value: string[] }[] { + return Object.entries(fields).map(([type, value]) => ({ + type, + value: normalizeNsfFieldValue(value), + })) +} + +export function buildNsfRecordData(input: BuildNsfRecordDataInput): Record { + const title = input.title.trim() + const recordType = input.recordType.trim() + const data: Record = { + type: LEGACY_RECORD_TYPES.has(recordType) ? 'login' : recordType, + title, + fields: input.fields ? fieldsMapToArray(input.fields) : [], + custom: (input.custom ?? []).map((field) => ({ + type: field.type, + label: field.label ?? '', + value: normalizeNsfFieldValue(field.value), + })), + } + const notes = input.notes?.trim() + if (notes) data.notes = notes + return data +} + +export function mergeNsfRecordData( + existing: Record, + input: Partial +): Record { + const data: Record = { + ...existing, + fields: Array.isArray(existing.fields) ? [...(existing.fields as Record[])] : [], + } + + if (input.title !== undefined) data.title = input.title.trim() + if (input.recordType !== undefined) { + const recordType = input.recordType.trim() + data.type = LEGACY_RECORD_TYPES.has(recordType) ? 'login' : recordType + } + if (input.notes !== undefined) data.notes = input.notes + + if (input.fields) { + const fields = data.fields as { type?: string; value?: string[] }[] + const byType = new Map() + for (const field of fields) { + const fieldType = field?.type + if (!fieldType) continue + if (!byType.has(fieldType)) byType.set(fieldType, []) + byType.get(fieldType)!.push(field) + } + for (const [fieldType, value] of Object.entries(input.fields)) { + const normalized = normalizeNsfFieldValue(value) + const matches = byType.get(fieldType) + if (matches?.length) matches[0].value = normalized + else fields.push({ type: fieldType, value: normalized }) + } + data.fields = fields + } + + return data +} + +export type ParsedNsfFieldStrings = { + fields: NsfRecordFieldMap + custom: NsfRecordCustomField[] + hasFileFields: boolean +} + +export function parseNsfFieldStrings(rawFields: string[]): ParsedNsfFieldStrings { + const fields: NsfRecordFieldMap = {} + const custom: NsfRecordCustomField[] = [] + let hasFileFields = false + + for (const raw of rawFields) { + const field = raw.trim() + if (!field) continue + const separator = field.indexOf('=') + if (separator <= 0) continue + + const key = field.slice(0, separator).trim() + const value = field.slice(separator + 1).trim() + if (!key) continue + + if (key.toLowerCase() === 'file') { + hasFileFields = true + continue + } + + const labeled = key.match(/^"(.+)"$/) + if (labeled) { + custom.push({ type: 'text', label: labeled[1], value }) + continue + } + + fields[key] = value + } + + return { fields, custom, hasFileFields } +} diff --git a/KeeperSdk/src/nestedShareFolders/removeNsfFolder.ts b/KeeperSdk/src/nestedShareFolders/removeNsfFolder.ts new file mode 100644 index 00000000..09735889 --- /dev/null +++ b/KeeperSdk/src/nestedShareFolders/removeNsfFolder.ts @@ -0,0 +1,260 @@ +import type { Auth, folder as FolderProto } from '@keeper-security/keeperapi' +import { folder, normal64Bytes, removeFolderMessage, webSafe64FromBytes } from '@keeper-security/keeperapi' +import type { InMemoryStorage } from '../storage/InMemoryStorage' +import { KeeperSdkError, ResultCodes, extractErrorMessage } from '../utils' +import { NSF_MAX_FOLDER_REMOVALS } from './nsfConstants' +import { + checkFolderDeletePermission, + ensureNestedShareFolder, + getFolderDisplayName, + requireAuthAccountUid, + resolveNsfFolderIdentifier, +} from './nsfHelpers' + +const { RemoveAction, FolderOperationType, RemoveStatus } = folder.v3.remove +const REMOVE_SUCCESS_STATUS = RemoveStatus[RemoveStatus.REMOVE_STATUS_SUCCESS] +const TRASH_ACTION_LABEL = 'moved to trash' +const PERMANENT_DELETE_ACTION_LABEL = 'permanently deleted' + +export enum NsfRemoveFolderOperation { + FolderTrash = 'folder-trash', + DeletePermanent = 'delete-permanent', +} + +export type NsfRemoveFolderOperationInput = NsfRemoveFolderOperation | `${NsfRemoveFolderOperation}` + +export type RemoveNsfFolderInput = { + folders: string[] + operation?: NsfRemoveFolderOperationInput + force?: boolean + dryRun?: boolean + quiet?: boolean +} + +export type NsfRemoveFolderPreviewItem = { + folderUid: string + name: string + status: string + impact?: { + foldersCount: number + recordsCount: number + affectedUsersCount: number + affectedTeamsCount: number + warnings: string[] + } + error?: { code: number; message: string } +} + +export type RemoveNsfFolderResult = { + confirmed: boolean + dryRun: boolean + operation: NsfRemoveFolderOperation + preview: NsfRemoveFolderPreviewItem[] + message?: string +} + +const OPERATION_MAP: Record = { + [NsfRemoveFolderOperation.FolderTrash]: FolderOperationType.FOLDER_MOVE_TO_FOLDER_TRASH, + [NsfRemoveFolderOperation.DeletePermanent]: FolderOperationType.FOLDER_DELETE_PERMANENT, +} + +function normalizeOperation( + operation: NsfRemoveFolderOperationInput = NsfRemoveFolderOperation.FolderTrash +): NsfRemoveFolderOperation { + const value = operation as NsfRemoveFolderOperation + if (value in OPERATION_MAP) return value + throw new KeeperSdkError( + `Invalid operation '${operation}'. Use: folder-trash, delete-permanent.`, + ResultCodes.NSF_REMOVE_FAILED + ) +} + +type RemovalSpec = { + folderUid: string + name: string + operation: FolderProto.v3.remove.FolderOperationType +} + +function buildRemovals( + storage: InMemoryStorage, + auth: Auth, + folderIdentifiers: string[], + operation: NsfRemoveFolderOperation +): RemovalSpec[] { + if (folderIdentifiers.length === 0) { + throw new KeeperSdkError('Enter the name or UID of at least one folder.', ResultCodes.NSF_NOT_FOUND) + } + if (folderIdentifiers.length > NSF_MAX_FOLDER_REMOVALS) { + throw new KeeperSdkError( + `Maximum ${NSF_MAX_FOLDER_REMOVALS} folders per request.`, + ResultCodes.NSF_TOO_MANY_FOLDERS + ) + } + + const accountUid = requireAuthAccountUid(auth) + + const removals: RemovalSpec[] = [] + for (const identifier of folderIdentifiers) { + const folderUid = resolveNsfFolderIdentifier(storage, identifier) + if (!folderUid) { + throw new KeeperSdkError(`Folder '${identifier}' not found`, ResultCodes.NSF_NOT_FOUND) + } + ensureNestedShareFolder(storage, folderUid, identifier) + checkFolderDeletePermission(storage, folderUid, auth.username, accountUid) + removals.push({ + folderUid, + name: getFolderDisplayName(storage, folderUid), + operation: OPERATION_MAP[operation], + }) + } + return removals +} + +function toRemovalInput(spec: RemovalSpec): FolderProto.v3.remove.IFolderRemoval { + return { + folderUid: normal64Bytes(spec.folderUid), + operationType: spec.operation, + } +} + +async function executeRemove( + auth: Auth, + removals: RemovalSpec[], + action: FolderProto.v3.remove.RemoveAction, + confirmationToken?: Uint8Array +): Promise { + return auth.executeRest( + removeFolderMessage({ + action, + folders: removals.map(toRemovalInput), + confirmationToken, + }) + ) +} + +function mapPreviewItem(spec: RemovalSpec, item: FolderProto.v3.remove.IRemoveResult): NsfRemoveFolderPreviewItem { + return { + folderUid: item.itemUid?.length ? webSafe64FromBytes(item.itemUid) : spec.folderUid, + name: spec.name, + status: item.status == null ? 'REMOVE_STATUS_UNKNOWN' : (RemoveStatus[item.status] ?? String(item.status)), + impact: item.impact + ? { + foldersCount: item.impact.foldersCount ?? 0, + recordsCount: item.impact.recordsCount ?? 0, + affectedUsersCount: item.impact.affectedUsersCount ?? 0, + affectedTeamsCount: item.impact.affectedTeamsCount ?? 0, + warnings: [...(item.impact.warnings ?? [])], + } + : undefined, + error: item.error + ? { + code: item.error.code ?? 0, + message: item.error.message ?? '', + } + : undefined, + } +} + +function mapPreview( + removals: RemovalSpec[], + response: FolderProto.v3.remove.IRemoveResponse +): NsfRemoveFolderPreviewItem[] { + return (response.results ?? []).map((item, index) => { + const spec = removals[index] + if (!spec) { + throw new KeeperSdkError('Folder removal preview mismatch.', ResultCodes.NSF_REMOVE_FAILED) + } + return mapPreviewItem(spec, item) + }) +} + +function hasPreviewErrors(preview: NsfRemoveFolderPreviewItem[]): boolean { + return preview.some((item) => item.error != null || item.status !== REMOVE_SUCCESS_STATUS) +} + +export function formatRemoveNsfFolderPreview( + preview: NsfRemoveFolderPreviewItem[], + operation: NsfRemoveFolderOperation, + quiet = false +): string { + const action = + operation === NsfRemoveFolderOperation.DeletePermanent + ? PERMANENT_DELETE_ACTION_LABEL + : TRASH_ACTION_LABEL + const lines: string[] = [] + + for (const item of preview) { + lines.push(`\nThe following folder will be ${action}:`) + lines.push(` ${item.name} [${item.folderUid}]`) + if (item.impact && !quiet) { + const parts = [ + `sub-folders=${item.impact.foldersCount}`, + `records=${item.impact.recordsCount}`, + `users=${item.impact.affectedUsersCount}`, + `teams=${item.impact.affectedTeamsCount}`, + ] + lines.push(` Impact: ${parts.join(', ')}`) + for (const warning of item.impact.warnings) { + lines.push(` Warning: ${warning}`) + } + } + if (item.error?.message) { + lines.push(` Error: ${item.error.message}`) + } + } + + return lines.join('\n').trimEnd() +} + +export async function removeNestedShareFolders( + storage: InMemoryStorage, + auth: Auth, + input: RemoveNsfFolderInput +): Promise { + const operation = normalizeOperation(input.operation) + const dryRun = input.dryRun ?? false + const removals = buildRemovals(storage, auth, input.folders, operation) + + try { + const previewResponse = await executeRemove(auth, removals, RemoveAction.REMOVE_ACTION_PREVIEW) + const preview = mapPreview(removals, previewResponse) + + if (hasPreviewErrors(preview)) { + throw new KeeperSdkError( + formatRemoveNsfFolderPreview(preview, operation, input.quiet) || 'Folder removal preview failed.', + ResultCodes.NSF_REMOVE_FAILED + ) + } + + if (dryRun || !previewResponse.confirmationToken?.length) { + return { confirmed: false, dryRun, operation, preview } + } + + if (!input.force) { + return { + confirmed: false, + dryRun: false, + operation, + preview, + message: 'Confirmation required. Set force=true to proceed.', + } + } + + await executeRemove(auth, removals, RemoveAction.REMOVE_ACTION_CONFIRM, previewResponse.confirmationToken) + const actionLabel = + operation === NsfRemoveFolderOperation.DeletePermanent ? 'Permanently deleted' : 'Moved to trash' + return { + confirmed: true, + dryRun: false, + operation, + preview, + message: `${actionLabel} ${removals.length} folder(s).`, + } + } catch (err) { + if (err instanceof KeeperSdkError) throw err + throw new KeeperSdkError( + `Failed to remove nested share folder(s): ${extractErrorMessage(err)}`, + ResultCodes.NSF_REMOVE_FAILED + ) + } +} diff --git a/KeeperSdk/src/nestedShareFolders/updateNsfRecord.ts b/KeeperSdk/src/nestedShareFolders/updateNsfRecord.ts new file mode 100644 index 00000000..680e513b --- /dev/null +++ b/KeeperSdk/src/nestedShareFolders/updateNsfRecord.ts @@ -0,0 +1,131 @@ +import type { Auth, DRecord } from '@keeper-security/keeperapi' +import { keeperDriveRecordsUpdate, normal64Bytes, platform } from '@keeper-security/keeperapi' +import type { InMemoryStorage } from '../storage/InMemoryStorage' +import { VaultObjectKind } from '../folders/folderHelpers' +import { KeeperSdkError, ResultCodes, extractErrorMessage } from '../utils' +import { resolveRecordKeyBytes } from './nsfRecordCrypto' +import { getPaddedJsonBytes, mergeNsfRecordData, type NsfRecordFieldMap } from './nsfRecordData' +import { + checkRecordEditPermission, + ensureNestedShareRecord, + nsfToNumber, + parseRecordModifyStatus, + requireAuthAccountUid, + resolveNsfRecordIdentifier, +} from './nsfHelpers' + +export type { NsfRecordFieldMap as UpdateNsfRecordFieldMap } from './nsfRecordData' + +export type UpdateNsfRecordInput = { + records: string[] + title?: string + recordType?: string + notes?: string + fields?: NsfRecordFieldMap +} + +export type UpdateNsfRecordResultItem = { + recordUid: string + success: boolean + status: string + message?: string + revision?: number +} + +export type UpdateNsfRecordResult = { + updated: UpdateNsfRecordResultItem[] +} + +function loadExistingRecordData(storage: InMemoryStorage, recordUid: string): Record { + const record = storage.getByUid(VaultObjectKind.Record, recordUid) + if (record?.data && typeof record.data === 'object') { + return structuredClone(record.data) as Record + } + return { fields: [] } +} + +async function updateSingleRecord( + storage: InMemoryStorage, + auth: Auth, + recordUid: string, + input: UpdateNsfRecordInput +): Promise { + const record = storage.getByUid(VaultObjectKind.Record, recordUid) + const recordKey = await resolveRecordKeyBytes(storage, auth, recordUid) + if (!recordKey) { + throw new KeeperSdkError( + `Record key not available for ${recordUid}. Run sync() first.`, + ResultCodes.NSF_MISSING_KEY + ) + } + + const merged = mergeNsfRecordData(loadExistingRecordData(storage, recordUid), input) + const response = await auth.executeRest( + keeperDriveRecordsUpdate({ + records: [ + { + recordUid: normal64Bytes(recordUid), + clientModifiedTime: Date.now(), + revision: record?.revision ?? 0, + data: await platform.aesGcmEncrypt(getPaddedJsonBytes(merged), recordKey), + }, + ], + clientTime: Date.now(), + }) + ) + + const { statusName, message } = parseRecordModifyStatus( + response.records?.[0], + ResultCodes.NSF_UPDATE_FAILED + ) + const revision = nsfToNumber(response.revision) ?? record?.revision + + if (record) { + await storage.put({ + ...record, + data: merged, + revision: revision ?? record.revision, + clientModifiedTime: Date.now(), + }) + } + + return { + recordUid, + success: true, + status: statusName, + message, + revision, + } +} + +export async function updateNestedShareRecords( + storage: InMemoryStorage, + auth: Auth, + input: UpdateNsfRecordInput +): Promise { + if (!input.records?.length) { + throw new KeeperSdkError('Record UID is required.', ResultCodes.NSF_UPDATE_FAILED) + } + + const accountUid = requireAuthAccountUid(auth) + const updated: UpdateNsfRecordResultItem[] = [] + + try { + for (const identifier of input.records) { + const recordUid = resolveNsfRecordIdentifier(storage, identifier) + if (!recordUid) { + throw new KeeperSdkError(`Record '${identifier}' not found`, ResultCodes.NSF_NOT_FOUND) + } + ensureNestedShareRecord(storage, recordUid, identifier) + checkRecordEditPermission(storage, recordUid, auth.username, accountUid) + updated.push(await updateSingleRecord(storage, auth, recordUid, input)) + } + return { updated } + } catch (err) { + if (err instanceof KeeperSdkError) throw err + throw new KeeperSdkError( + `Failed to update nested share record(s): ${extractErrorMessage(err)}`, + ResultCodes.NSF_UPDATE_FAILED + ) + } +} diff --git a/KeeperSdk/src/utils/constants.ts b/KeeperSdk/src/utils/constants.ts index dfa22bee..f67696b5 100644 --- a/KeeperSdk/src/utils/constants.ts +++ b/KeeperSdk/src/utils/constants.ts @@ -64,7 +64,12 @@ export enum NsfErrorCode { RemoveFailed = 'nsf_remove_failed', FolderRequired = 'nsf_folder_required', TooManyRecords = 'nsf_too_many_records', + TooManyFolders = 'nsf_too_many_folders', MissingKey = 'nsf_missing_key', + MkdirFailed = 'nsf_mkdir_failed', + UpdateFailed = 'nsf_update_failed', + DetailsFailed = 'nsf_details_failed', + AddFailed = 'nsf_add_failed', } export enum TeamErrorCode { @@ -143,7 +148,12 @@ export const ResultCodes = { NSF_REMOVE_FAILED: NsfErrorCode.RemoveFailed, NSF_FOLDER_REQUIRED: NsfErrorCode.FolderRequired, NSF_TOO_MANY_RECORDS: NsfErrorCode.TooManyRecords, + NSF_TOO_MANY_FOLDERS: NsfErrorCode.TooManyFolders, NSF_MISSING_KEY: NsfErrorCode.MissingKey, + NSF_MKDIR_FAILED: NsfErrorCode.MkdirFailed, + NSF_UPDATE_FAILED: NsfErrorCode.UpdateFailed, + NSF_DETAILS_FAILED: NsfErrorCode.DetailsFailed, + NSF_ADD_FAILED: NsfErrorCode.AddFailed, TEAM_REQUIRED: TeamErrorCode.TeamRequired, TEAM_NOT_FOUND: TeamErrorCode.TeamNotFound, MULTIPLE_TEAM_MATCHES: TeamErrorCode.MultipleTeamMatches, diff --git a/KeeperSdk/src/vault/KeeperVault.ts b/KeeperSdk/src/vault/KeeperVault.ts index 80f6e5c0..363236ea 100644 --- a/KeeperSdk/src/vault/KeeperVault.ts +++ b/KeeperSdk/src/vault/KeeperVault.ts @@ -80,6 +80,12 @@ import type { ListNsfOptions, ListNsfRow, ListNsfFormatInput, FormattedListNsfTa import type { GetNsfOptions, GetNsfResult } from '../nestedShareFolders/getNsf' import type { LinkNsfRecordResult } from '../nestedShareFolders/linkNsfRecord' import type { RemoveNsfRecordInput, RemoveNsfRecordResult } from '../nestedShareFolders/removeNsfRecord' +import type { MkdirNsfInput, MkdirNsfResult } from '../nestedShareFolders/mkdirNsf' +import type { RemoveNsfFolderInput, RemoveNsfFolderResult } from '../nestedShareFolders/removeNsfFolder' +import type { GetNsfRecordDetailsInput, GetNsfRecordDetailsResult } from '../nestedShareFolders/getNsfRecordDetails' +import type { UpdateNsfRecordInput, UpdateNsfRecordResult } from '../nestedShareFolders/updateNsfRecord' +import type { AddNsfRecordInput, AddNsfRecordResult } from '../nestedShareFolders/addNsfRecord' +import { isNestedShareFolder } from '../nestedShareFolders/nsfHelpers' import type { ListUserRow, ListUsersOptions, @@ -751,6 +757,57 @@ export class KeeperVault { return this.nestedShareFolderManager.formatRemoveNsfPreview(preview) } + public async mkdirNestedShareFolder(input: Omit): Promise { + const current = this.folderSession.currentFolderUid + const baseFolderUid = + current && isNestedShareFolder(this.storage, current) ? current : null + const result = await this.nestedShareFolderManager.mkdirNestedShareFolder({ + ...input, + baseFolderUid, + }) + if (result.created) await this.syncIfNeeded() + return result + } + + public async removeNestedShareFolders(input: RemoveNsfFolderInput): Promise { + const result = await this.nestedShareFolderManager.removeNestedShareFolders(input) + if (result.confirmed) await this.syncIfNeeded() + return result + } + + public formatRemoveNsfFolderPreview( + preview: RemoveNsfFolderResult['preview'], + operation: RemoveNsfFolderResult['operation'], + quiet?: boolean + ): string { + return this.nestedShareFolderManager.formatRemoveNsfFolderPreview(preview, operation, quiet) + } + + public async getNestedShareRecordDetails( + input: GetNsfRecordDetailsInput + ): Promise { + return this.nestedShareFolderManager.getNestedShareRecordDetails(input) + } + + public formatNsfRecordDetailsOutput( + result: GetNsfRecordDetailsResult, + format?: GetNsfRecordDetailsInput['format'] + ): string { + return this.nestedShareFolderManager.formatNsfRecordDetailsOutput(result, format) + } + + public async updateNestedShareRecords(input: UpdateNsfRecordInput): Promise { + const result = await this.nestedShareFolderManager.updateNestedShareRecords(input) + if (result.updated.some((item) => item.success)) await this.syncIfNeeded() + return result + } + + public async addNestedShareRecord(input: AddNsfRecordInput): Promise { + const result = await this.nestedShareFolderManager.addNestedShareRecord(input) + if (result.success) await this.syncIfNeeded() + return result + } + public async shareFolder(input: ShareFolderInput): Promise { const result = await this.sharedFolderManager.shareFolder(input) if (result.success) await this.syncIfNeeded() diff --git a/examples/sdk_example/src/utils/format.ts b/examples/sdk_example/src/utils/format.ts index b9482be6..4f322c38 100644 --- a/examples/sdk_example/src/utils/format.ts +++ b/examples/sdk_example/src/utils/format.ts @@ -2,6 +2,7 @@ import { EMAIL_LIST_SEPARATOR_PATTERN, EMAIL_PATTERN, isValidEmail, + suppressLogs, } from '@keeper-security/keeper-sdk-javascript' export { EMAIL_PATTERN } @@ -40,6 +41,19 @@ export function isYes(answer: string): boolean { return normalized === 'y' || normalized === 'yes' } +export function splitCommaSeparated(input: string): string[] { + return input.split(',').map((value) => value.trim()).filter(Boolean) +} + +export async function withSuppressedLogs(fn: () => Promise): Promise { + const restore = suppressLogs() + try { + return await fn() + } finally { + restore() + } +} + export function parseEmails(raw: string): { emails: string[]; invalid: string[] } { const tokens = raw .split(EMAIL_LIST_SEPARATOR_PATTERN) diff --git a/keeperapi/src/restMessages.ts b/keeperapi/src/restMessages.ts index 8edaf50a..8411e737 100644 --- a/keeperapi/src/restMessages.ts +++ b/keeperapi/src/restMessages.ts @@ -1,6 +1,6 @@ // noinspection JSUnusedGlobalSymbols -import { Writer } from 'protobufjs' +import { Reader, Writer } from 'protobufjs' import { AccountSummary, Authentication, @@ -1009,3 +1009,77 @@ export const getSharingAdminsMessage = ( Enterprise.GetSharingAdminsRequest, Enterprise.GetSharingAdminsResponse ) + +export const removeFolderMessage = ( + data: folder.v3.remove.IRemoveFolderRequest +): RestMessage => + createMessage( + data, + 'vault/folders/v3/remove_folder', + folder.v3.remove.RemoveFolderRequest, + folder.v3.remove.RemoveResponse + ) + +export interface IRecordDetailsDataRequest { + recordUids: Uint8Array[] + clientTime?: number +} + +export interface IRecordDetailsDataResponse { + data: Records.IRecordData[] + forbiddenRecords: Uint8Array[] +} + +const RecordDetailsDataRequest = { + create(properties?: IRecordDetailsDataRequest): IRecordDetailsDataRequest { + return { + recordUids: properties?.recordUids ?? [], + clientTime: properties?.clientTime, + } + }, + encode(message: IRecordDetailsDataRequest, writer?: Writer): Writer { + if (!writer) writer = Writer.create() + if (message.clientTime != null) { + writer.uint32(8).int64(message.clientTime) + } + for (const uid of message.recordUids) { + writer.uint32(26).bytes(uid) + } + return writer + }, +} + +const RecordDetailsDataResponse = { + decode(data: Uint8Array): IRecordDetailsDataResponse { + const reader = Reader.create(data) + const response: IRecordDetailsDataResponse = { + data: [], + forbiddenRecords: [], + } + while (reader.pos < reader.len) { + const tag = reader.uint32() + switch (tag >>> 3) { + case 1: + response.data.push(Records.RecordData.decode(reader, reader.uint32())) + break + case 2: + response.forbiddenRecords.push(reader.bytes() as Uint8Array) + break + default: + reader.skipType(tag & 7) + break + } + } + return response + }, +} + +export const recordDetailsDataMessage = ( + data: IRecordDetailsDataRequest +): RestMessage => + createMessage(data, 'vault/records/v3/details/data', RecordDetailsDataRequest, RecordDetailsDataResponse) + +export const folderAddMessage = ( + data: Folder.IFolderAddRequest +): RestMessage => + createMessage(data, 'vault/folders/v3/add', Folder.FolderAddRequest, Folder.FolderAddResponse) From ccb1d3ab1b968601391d7d695ce1d1e184e35cc7 Mon Sep 17 00:00:00 2001 From: ukumar-ks Date: Wed, 24 Jun 2026 15:30:02 +0530 Subject: [PATCH 02/12] Revert sdk example withSuppressedLogs' code --- examples/sdk_example/src/utils/format.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/examples/sdk_example/src/utils/format.ts b/examples/sdk_example/src/utils/format.ts index 4f322c38..b9482be6 100644 --- a/examples/sdk_example/src/utils/format.ts +++ b/examples/sdk_example/src/utils/format.ts @@ -2,7 +2,6 @@ import { EMAIL_LIST_SEPARATOR_PATTERN, EMAIL_PATTERN, isValidEmail, - suppressLogs, } from '@keeper-security/keeper-sdk-javascript' export { EMAIL_PATTERN } @@ -41,19 +40,6 @@ export function isYes(answer: string): boolean { return normalized === 'y' || normalized === 'yes' } -export function splitCommaSeparated(input: string): string[] { - return input.split(',').map((value) => value.trim()).filter(Boolean) -} - -export async function withSuppressedLogs(fn: () => Promise): Promise { - const restore = suppressLogs() - try { - return await fn() - } finally { - restore() - } -} - export function parseEmails(raw: string): { emails: string[]; invalid: string[] } { const tokens = raw .split(EMAIL_LIST_SEPARATOR_PATTERN) From 267e694ba3397319a7c7f712e378651bc0eb8db7 Mon Sep 17 00:00:00 2001 From: ukumar-ks Date: Thu, 25 Jun 2026 11:35:16 +0530 Subject: [PATCH 03/12] folder and field details add --- KeeperSdk/src/index.ts | 7 + .../NestedShareFolderManager.ts | 5 + KeeperSdk/src/nestedShareFolders/getNsf.ts | 138 ++++++++++++++++-- KeeperSdk/src/nestedShareFolders/index.ts | 7 + KeeperSdk/src/vault/KeeperVault.ts | 4 + .../src/nestedShareFolders/get_nsf.ts | 2 +- 6 files changed, 147 insertions(+), 16 deletions(-) diff --git a/KeeperSdk/src/index.ts b/KeeperSdk/src/index.ts index 7cdf205c..45985bbf 100644 --- a/KeeperSdk/src/index.ts +++ b/KeeperSdk/src/index.ts @@ -471,6 +471,9 @@ export { formatNsfFolderDetail, formatNsfRecordDetail, formatNsfDetail, + formatNsfJson, + formatNsfRecordJson, + toNsfRecordJsonView, linkNestedShareRecord, NsfRemoveOperation, removeNestedShareRecords, @@ -501,6 +504,10 @@ export type { GetNsfResult, NsfFolderView, NsfRecordView, + NsfRecordFieldView, + NsfRecordFolderView, + NsfRecordJsonView, + NsfRecordJsonUserPermission, NsfFolderPermission, NsfFolderAccessRow, NsfRecordPermission, diff --git a/KeeperSdk/src/nestedShareFolders/NestedShareFolderManager.ts b/KeeperSdk/src/nestedShareFolders/NestedShareFolderManager.ts index d98b5c54..1ce92d28 100644 --- a/KeeperSdk/src/nestedShareFolders/NestedShareFolderManager.ts +++ b/KeeperSdk/src/nestedShareFolders/NestedShareFolderManager.ts @@ -13,6 +13,7 @@ import { } from './listNsf' import { formatNsfDetail as renderNsfDetail, + formatNsfJson as renderNsfJson, formatNsfFolderDetail as renderNsfFolderDetail, formatNsfRecordDetail as renderNsfRecordDetail, getNestedShareFolder, @@ -91,6 +92,10 @@ export class NestedShareFolderManager { return renderNsfDetail(result, verbose) } + public formatNsfJson(result: GetNsfResult): string { + return renderNsfJson(result) + } + public formatNsfFolderDetail(view: NsfFolderView, verbose = false): string { return renderNsfFolderDetail(view, verbose) } diff --git a/KeeperSdk/src/nestedShareFolders/getNsf.ts b/KeeperSdk/src/nestedShareFolders/getNsf.ts index 25523668..e71cbc94 100644 --- a/KeeperSdk/src/nestedShareFolders/getNsf.ts +++ b/KeeperSdk/src/nestedShareFolders/getNsf.ts @@ -20,6 +20,7 @@ import { KeeperSdkError, ResultCodes, extractErrorMessage } from '../utils' import { buildFolderPath, collectRecordsInFolder, + findNestedShareFoldersForRecord, findRecordFolderLocation, folderAccessDisplayRole, formatAccessType, @@ -127,6 +128,38 @@ export type NsfFolderView = { records: { uid: string; title: string; type: string }[] } +export type NsfRecordFieldView = { + type: string + label?: string + value: string[] +} + +export type NsfRecordFolderView = { + uid: string + path: string +} + +export type NsfRecordJsonUserPermission = { + username: string + owner: boolean + shareable: boolean + editable: boolean + role: string +} + +export type NsfRecordJsonView = { + record_uid: string + title: string + type: string + version: number + revision: number + folder?: NsfRecordFolderView + fields: { type: string; value: string[] }[] + notes?: string + user_permissions: NsfRecordJsonUserPermission[] + share_admins: string[] +} + export type NsfRecordView = { objectType: 'record' recordUid: string @@ -134,12 +167,13 @@ export type NsfRecordView = { type: string revision: number version: number + folder?: NsfRecordFolderView folderLocation: string login?: string password?: string url?: string notes?: string - fields: { type: string; label?: string; value: string }[] + fields: NsfRecordFieldView[] userPermissions: NsfRecordPermission[] shareAdmins: string[] } @@ -233,20 +267,80 @@ function ensureFolderOwnerListed( } } -function buildRecordFields(record: DRecord, unmask: boolean): NsfRecordView['fields'] { - return getRecordFields(record) - .filter((field) => !NSF_TOP_LEVEL_FIELD_TYPES.has(field.type)) - .map((field) => { - const rawValues = Array.isArray(field.value) ? field.value : [field.value] - const displayValue = formatNsfFieldParts(rawValues).join(', ') - return { field, displayValue } - }) - .filter(({ displayValue }) => displayValue.length > 0) - .map(({ field, displayValue }) => ({ +function fieldValueToStrings(values: unknown[]): string[] { + return values.map((value) => { + if (value == null || value === '') return '' + if (typeof value === 'string') return value + if (typeof value === 'number' || typeof value === 'boolean') return String(value) + if (typeof value === 'object') { + const obj = value as Record + if (typeof obj.url === 'string') return obj.url + if (typeof obj.value === 'string') return obj.value + return JSON.stringify(value) + } + return String(value) + }) +} + +function resolveRecordFolder( + storage: InMemoryStorage, + recordUid: string +): NsfRecordFolderView | undefined { + const folderUids = findNestedShareFoldersForRecord(storage, recordUid) + if (folderUids.length === 0) return undefined + + const uid = folderUids[0] + return { + uid, + path: buildFolderPath(storage, uid).replace(/^\//, ''), + } +} + +function buildRecordFields(record: DRecord, unmask: boolean): NsfRecordFieldView[] { + return getRecordFields(record).map((field) => { + const rawValues = Array.isArray(field.value) ? field.value : [field.value] + const stringValues = fieldValueToStrings(rawValues) + const masked = !unmask && isSensitiveFieldType(field.type) + return { type: field.type, label: field.label, - value: !unmask && isSensitiveFieldType(field.type) ? NSF_MASKED_VALUE : displayValue, - })) + value: + masked && stringValues.some((value) => value.length > 0) + ? stringValues.map((value) => (value.length > 0 ? NSF_MASKED_VALUE : value)) + : stringValues, + } + }) +} + +function recordPermissionRole(entry: NsfRecordPermission): string { + if (entry.owner) return 'full-manager' + if (entry.shareAdmin) return 'shared-manager' + return 'content-manager' +} + +export function toNsfRecordJsonView(view: NsfRecordView): NsfRecordJsonView { + return { + record_uid: view.recordUid, + title: view.title, + type: view.type, + version: view.version, + revision: view.revision, + ...(view.folder ? { folder: view.folder } : {}), + fields: view.fields.map(({ type, value }) => ({ type, value })), + ...(view.notes ? { notes: view.notes } : {}), + user_permissions: view.userPermissions.map((entry) => ({ + username: entry.username, + owner: entry.owner, + shareable: entry.shareable, + editable: entry.editable, + role: recordPermissionRole(entry), + })), + share_admins: view.shareAdmins, + } +} + +export function formatNsfRecordJson(view: NsfRecordView): string { + return JSON.stringify(toNsfRecordJsonView(view), null, 2) } function formatRecordUserPermissionBlock(entry: NsfRecordPermission): string[] { @@ -371,6 +465,7 @@ async function buildRecordView( type: getRecordType(record), revision: record.revision, version: record.version, + folder: resolveRecordFolder(storage, recordUid), folderLocation: findRecordFolderLocation(storage, recordUid) || 'root', login: getRecordLogin(record) || undefined, password: password ? (unmask ? password : NSF_MASKED_VALUE) : undefined, @@ -463,8 +558,11 @@ export function formatNsfRecordDetail(view: NsfRecordView, verbose = false): str if (view.notes) lines.push(recordDetailRow('Notes', view.notes)) for (const field of view.fields) { + if (NSF_TOP_LEVEL_FIELD_TYPES.has(field.type)) continue + const displayValue = field.value.filter(Boolean).join(', ') + if (!displayValue) continue const label = field.label || field.type - lines.push(recordDetailRow(label.charAt(0).toUpperCase() + label.slice(1), field.value)) + lines.push(recordDetailRow(label.charAt(0).toUpperCase() + label.slice(1), displayValue)) } if (view.userPermissions.length > 0) { @@ -484,10 +582,13 @@ export function formatNsfRecordDetail(view: NsfRecordView, verbose = false): str if (verbose) { lines.push( '', - recordDetailRow('Folder', view.folderLocation), + recordDetailRow('Folder', view.folder?.path ?? view.folderLocation), recordDetailRow('Revision', String(view.revision)), recordDetailRow('Version', String(view.version)) ) + if (view.folder?.uid) { + lines.push(recordDetailRow('Folder UID', view.folder.uid)) + } } return lines.join('\n') @@ -498,3 +599,10 @@ export function formatNsfDetail(result: GetNsfResult, verbose = false): string { ? formatNsfFolderDetail(result.view, verbose) : formatNsfRecordDetail(result.view, verbose) } + +export function formatNsfJson(result: GetNsfResult): string { + if (result.kind === 'record') { + return formatNsfRecordJson(result.view) + } + return JSON.stringify(result.view, null, 2) +} diff --git a/KeeperSdk/src/nestedShareFolders/index.ts b/KeeperSdk/src/nestedShareFolders/index.ts index c6e351ee..f20952ad 100644 --- a/KeeperSdk/src/nestedShareFolders/index.ts +++ b/KeeperSdk/src/nestedShareFolders/index.ts @@ -53,6 +53,9 @@ export { formatNsfFolderDetail, formatNsfRecordDetail, formatNsfDetail, + formatNsfRecordJson, + formatNsfJson, + toNsfRecordJsonView, } from './getNsf' export type { GetNsfFormatInput, @@ -60,6 +63,10 @@ export type { GetNsfResult, NsfFolderView, NsfRecordView, + NsfRecordFieldView, + NsfRecordFolderView, + NsfRecordJsonView, + NsfRecordJsonUserPermission, NsfFolderPermission, NsfFolderAccessRow, NsfRecordPermission, diff --git a/KeeperSdk/src/vault/KeeperVault.ts b/KeeperSdk/src/vault/KeeperVault.ts index 363236ea..7486dca8 100644 --- a/KeeperSdk/src/vault/KeeperVault.ts +++ b/KeeperSdk/src/vault/KeeperVault.ts @@ -738,6 +738,10 @@ export class KeeperVault { return this.nestedShareFolderManager.formatNsfDetail(result, verbose ?? false) } + public formatNsfJson(result: GetNsfResult): string { + return this.nestedShareFolderManager.formatNsfJson(result) + } + public async linkNestedShareRecord( recordIdentifier: string, folderIdentifier: string diff --git a/examples/sdk_example/src/nestedShareFolders/get_nsf.ts b/examples/sdk_example/src/nestedShareFolders/get_nsf.ts index a997403b..f8918354 100644 --- a/examples/sdk_example/src/nestedShareFolders/get_nsf.ts +++ b/examples/sdk_example/src/nestedShareFolders/get_nsf.ts @@ -37,7 +37,7 @@ async function getNsf() { } logger.info('') - const output = asJson ? JSON.stringify(result.view, null, 2) : vault.formatNsfDetail(result, verbose) + const output = asJson ? vault.formatNsfJson(result) : vault.formatNsfDetail(result, verbose) process.stdout.write(`${output}\n`) logger.info('') } catch (err) { From 925405ed4703bf400a5bf28a593d64a3510469bb Mon Sep 17 00:00:00 2001 From: ukumar-ks Date: Fri, 26 Jun 2026 12:27:26 +0530 Subject: [PATCH 04/12] nsf record add and update optional fields improvements --- KeeperSdk/src/index.ts | 10 +- .../src/nestedShareFolders/addNsfRecord.ts | 14 +- KeeperSdk/src/nestedShareFolders/getNsf.ts | 67 +++- KeeperSdk/src/nestedShareFolders/index.ts | 10 +- .../src/nestedShareFolders/nsfConstants.ts | 36 ++ .../src/nestedShareFolders/nsfRecordData.ts | 363 ++++++++++++++---- .../src/nestedShareFolders/updateNsfRecord.ts | 7 +- 7 files changed, 407 insertions(+), 100 deletions(-) diff --git a/KeeperSdk/src/index.ts b/KeeperSdk/src/index.ts index 45985bbf..1f959336 100644 --- a/KeeperSdk/src/index.ts +++ b/KeeperSdk/src/index.ts @@ -490,7 +490,9 @@ export { updateNestedShareRecords, addNestedShareRecord, buildNsfRecordData, - parseNsfFieldStrings, + parseNsfFieldInput, + parseNsfFieldSpaceInput, + resolveNsfFieldValue, checkRecordEditPermission, NestedShareFolderManager, } from './nestedShareFolders' @@ -531,12 +533,12 @@ export type { UpdateNsfRecordInput, UpdateNsfRecordResult, UpdateNsfRecordResultItem, - UpdateNsfRecordFieldMap, + UpdateNsfRecordFieldEntry, AddNsfRecordInput, AddNsfRecordResult, - NsfRecordFieldMap, - NsfRecordCustomField, + ParsedNsfFields, ParsedNsfFieldStrings, + RecordFieldEntry, } from './nestedShareFolders' export type { diff --git a/KeeperSdk/src/nestedShareFolders/addNsfRecord.ts b/KeeperSdk/src/nestedShareFolders/addNsfRecord.ts index 847cae4f..186f0cbc 100644 --- a/KeeperSdk/src/nestedShareFolders/addNsfRecord.ts +++ b/KeeperSdk/src/nestedShareFolders/addNsfRecord.ts @@ -1,7 +1,6 @@ import type { Auth, record as RecordProto } from '@keeper-security/keeperapi' import { Folder, - Records, generateEncryptionKey, generateUid, keeperDriveRecordsAdd, @@ -13,8 +12,7 @@ import { KeeperSdkError, ResultCodes, extractErrorMessage } from '../utils' import { buildNsfRecordData, getPaddedJsonBytes, - type NsfRecordCustomField, - type NsfRecordFieldMap, + type RecordFieldEntry, } from './nsfRecordData' import { ensureNestedShareFolder, @@ -24,15 +22,15 @@ import { resolveNsfFolderIdentifier, } from './nsfHelpers' -export type { NsfRecordFieldMap, NsfRecordCustomField } from './nsfRecordData' +export type { RecordFieldEntry } from './nsfRecordData' export type AddNsfRecordInput = { title: string recordType: string folder?: string notes?: string - fields?: NsfRecordFieldMap - custom?: NsfRecordCustomField[] + fieldEntries?: RecordFieldEntry[] + customEntries?: RecordFieldEntry[] recordData?: Record force?: boolean hasFileFields?: boolean @@ -121,8 +119,8 @@ export async function addNestedShareRecord( title: input.title, recordType: input.recordType, notes: input.notes, - fields: input.fields, - custom: input.custom, + fieldEntries: input.fieldEntries, + customEntries: input.customEntries, }) try { diff --git a/KeeperSdk/src/nestedShareFolders/getNsf.ts b/KeeperSdk/src/nestedShareFolders/getNsf.ts index e71cbc94..9449055a 100644 --- a/KeeperSdk/src/nestedShareFolders/getNsf.ts +++ b/KeeperSdk/src/nestedShareFolders/getNsf.ts @@ -154,7 +154,7 @@ export type NsfRecordJsonView = { version: number revision: number folder?: NsfRecordFolderView - fields: { type: string; value: string[] }[] + fields: { type: string; value: unknown[] }[] notes?: string user_permissions: NsfRecordJsonUserPermission[] share_admins: string[] @@ -267,13 +267,16 @@ function ensureFolderOwnerListed( } } -function fieldValueToStrings(values: unknown[]): string[] { +function fieldValueToStrings(values: unknown[], fieldType?: string): string[] { return values.map((value) => { if (value == null || value === '') return '' if (typeof value === 'string') return value if (typeof value === 'number' || typeof value === 'boolean') return String(value) if (typeof value === 'object') { const obj = value as Record + if (fieldType === 'host' || fieldType === 'address') { + return JSON.stringify(obj) + } if (typeof obj.url === 'string') return obj.url if (typeof obj.value === 'string') return obj.value return JSON.stringify(value) @@ -299,7 +302,7 @@ function resolveRecordFolder( function buildRecordFields(record: DRecord, unmask: boolean): NsfRecordFieldView[] { return getRecordFields(record).map((field) => { const rawValues = Array.isArray(field.value) ? field.value : [field.value] - const stringValues = fieldValueToStrings(rawValues) + const stringValues = fieldValueToStrings(rawValues, field.type) const masked = !unmask && isSensitiveFieldType(field.type) return { type: field.type, @@ -312,12 +315,62 @@ function buildRecordFields(record: DRecord, unmask: boolean): NsfRecordFieldView }) } +function formatRecordFieldDetailLines(field: NsfRecordFieldView): string[] { + if (NSF_TOP_LEVEL_FIELD_TYPES.has(field.type)) return [] + + if (field.type === 'host' || field.type === 'address') { + const lines: string[] = [] + for (const part of field.value) { + if (!part) continue + let obj: Record | undefined + if (typeof part === 'string' && part.startsWith('{')) { + try { + obj = JSON.parse(part) as Record + } catch { + obj = undefined + } + } + if (obj) { + if (obj.hostName != null && String(obj.hostName).length > 0) { + lines.push(recordDetailRow('HostName', String(obj.hostName))) + } + if (obj.port != null && String(obj.port).length > 0) { + lines.push(recordDetailRow('Port', String(obj.port))) + } + if (obj.street1 != null && String(obj.street1).length > 0) { + lines.push(recordDetailRow('Street', String(obj.street1))) + } + continue + } + } + if (lines.length > 0) return lines + } + + const displayValue = field.value.filter(Boolean).join(', ') + if (!displayValue) return [] + const label = field.label || field.type + return [recordDetailRow(label.charAt(0).toUpperCase() + label.slice(1), displayValue)] +} + function recordPermissionRole(entry: NsfRecordPermission): string { if (entry.owner) return 'full-manager' if (entry.shareAdmin) return 'shared-manager' return 'content-manager' } +function jsonFieldValues(type: string, value: string[]): unknown[] { + return value.map((part) => { + if ((type === 'host' || type === 'address') && part.startsWith('{')) { + try { + return JSON.parse(part) as Record + } catch { + return part + } + } + return part + }) +} + export function toNsfRecordJsonView(view: NsfRecordView): NsfRecordJsonView { return { record_uid: view.recordUid, @@ -326,7 +379,7 @@ export function toNsfRecordJsonView(view: NsfRecordView): NsfRecordJsonView { version: view.version, revision: view.revision, ...(view.folder ? { folder: view.folder } : {}), - fields: view.fields.map(({ type, value }) => ({ type, value })), + fields: view.fields.map(({ type, value }) => ({ type, value: jsonFieldValues(type, value) })), ...(view.notes ? { notes: view.notes } : {}), user_permissions: view.userPermissions.map((entry) => ({ username: entry.username, @@ -558,11 +611,7 @@ export function formatNsfRecordDetail(view: NsfRecordView, verbose = false): str if (view.notes) lines.push(recordDetailRow('Notes', view.notes)) for (const field of view.fields) { - if (NSF_TOP_LEVEL_FIELD_TYPES.has(field.type)) continue - const displayValue = field.value.filter(Boolean).join(', ') - if (!displayValue) continue - const label = field.label || field.type - lines.push(recordDetailRow(label.charAt(0).toUpperCase() + label.slice(1), displayValue)) + lines.push(...formatRecordFieldDetailLines(field)) } if (view.userPermissions.length > 0) { diff --git a/KeeperSdk/src/nestedShareFolders/index.ts b/KeeperSdk/src/nestedShareFolders/index.ts index f20952ad..793f9819 100644 --- a/KeeperSdk/src/nestedShareFolders/index.ts +++ b/KeeperSdk/src/nestedShareFolders/index.ts @@ -122,7 +122,7 @@ export type { UpdateNsfRecordInput, UpdateNsfRecordResult, UpdateNsfRecordResultItem, - UpdateNsfRecordFieldMap, + UpdateNsfRecordFieldEntry, } from './updateNsfRecord' export { addNestedShareRecord } from './addNsfRecord' @@ -130,10 +130,12 @@ export type { AddNsfRecordInput, AddNsfRecordResult } from './addNsfRecord' export { buildNsfRecordData, - parseNsfFieldStrings, - type NsfRecordFieldMap, - type NsfRecordCustomField, + parseNsfFieldInput, + parseNsfFieldSpaceInput, + resolveNsfFieldValue, + type ParsedNsfFields, type ParsedNsfFieldStrings, + type RecordFieldEntry, } from './nsfRecordData' export { NestedShareFolderManager } from './NestedShareFolderManager' diff --git a/KeeperSdk/src/nestedShareFolders/nsfConstants.ts b/KeeperSdk/src/nestedShareFolders/nsfConstants.ts index 68c67f1e..8bcada4a 100644 --- a/KeeperSdk/src/nestedShareFolders/nsfConstants.ts +++ b/KeeperSdk/src/nestedShareFolders/nsfConstants.ts @@ -58,3 +58,39 @@ export const NSF_PATH_SENTINEL = '\x00' export const NSF_FOLDER_COLORS = ['none', 'red', 'orange', 'yellow', 'green', 'blue', 'gray'] as const export type NsfFolderColor = (typeof NSF_FOLDER_COLORS)[number] + + +export const NSF_KNOWN_FIELD_TYPES = new Set([ + 'login', + 'password', + 'url', + 'email', + 'text', + 'multiline', + 'secret', + 'note', + 'onetimecode', + 'date', + 'phone', + 'name', + 'address', + 'paymentcard', + 'bankaccount', + 'securityquestion', + 'host', + 'keypair', + 'fileref', + 'passkey', + 'pincode', +]) + + +export const NSF_STRUCTURED_SUBKEYS: Record> = { + name: new Set(['first', 'middle', 'last']), + host: new Set(['hostName', 'port', 'host']), + address: new Set(['street1', 'street2', 'city', 'state', 'zip', 'country', 'address']), + paymentcard: new Set(['cardNumber', 'cardExpirationDate', 'cardSecurityCode', 'cardPin']), + bankaccount: new Set(['accountNumber', 'routingNumber', 'accountType']), + securityquestion: new Set(['question', 'answer']), + phone: new Set(['number', 'region', 'type', 'ext']), +} diff --git a/KeeperSdk/src/nestedShareFolders/nsfRecordData.ts b/KeeperSdk/src/nestedShareFolders/nsfRecordData.ts index 56dc7b3e..cbe8ef54 100644 --- a/KeeperSdk/src/nestedShareFolders/nsfRecordData.ts +++ b/KeeperSdk/src/nestedShareFolders/nsfRecordData.ts @@ -1,27 +1,296 @@ import { platform } from '@keeper-security/keeperapi' +import { NSF_KNOWN_FIELD_TYPES, NSF_STRUCTURED_SUBKEYS } from './nsfConstants' const MIN_RECORD_PAD_BYTES = 384 const PAD_BLOCK_SIZE = 16 const LEGACY_RECORD_TYPES = new Set(['legacy', 'general']) -export type NsfRecordFieldMap = Record - -export type NsfRecordCustomField = { +export type RecordFieldEntry = { type: string label?: string - value: string | string[] + value: unknown[] } export type BuildNsfRecordDataInput = { title: string recordType: string notes?: string - fields?: NsfRecordFieldMap - custom?: NsfRecordCustomField[] + fieldEntries?: RecordFieldEntry[] + customEntries?: RecordFieldEntry[] +} + +export type ParsedNsfFields = { + fieldEntries: RecordFieldEntry[] + customEntries: RecordFieldEntry[] + hasFileFields: boolean +} + +/** @deprecated Use ParsedNsfFields */ +export type ParsedNsfFieldStrings = ParsedNsfFields + +type NsfFieldValue = string | string[] | Record | Record[] + +type FieldAssignment = { + section: 'fields' | 'custom' + fieldType: string + fieldLabel: string + value: NsfFieldValue +} + +type ParsedFieldKey = { + section: 'fields' | 'custom' + fieldType: string + fieldLabel: string +} + +function stripSurroundingQuotes(value: string): string { + const trimmed = value.trim() + if ( + (trimmed.startsWith("'") && trimmed.endsWith("'")) || + (trimmed.startsWith('"') && trimmed.endsWith('"')) + ) { + return trimmed.slice(1, -1) + } + return trimmed +} + +export function resolveNsfFieldValue(raw: string): NsfFieldValue { + const trimmed = stripSurroundingQuotes(raw) + if (trimmed.startsWith('$JSON')) { + let jsonStr = trimmed.slice(5) + if (jsonStr.startsWith(':')) jsonStr = jsonStr.slice(1) + return JSON.parse(jsonStr) as Record + } + return trimmed +} + +function toFieldValueArray(value: NsfFieldValue): unknown[] { + if (Array.isArray(value)) return value + if (typeof value === 'object' && value !== null) return [value] + return [value] +} + +function cloneFieldEntries(entries: unknown): RecordFieldEntry[] { + if (!Array.isArray(entries)) return [] + return (entries as RecordFieldEntry[]).map((field) => ({ + type: field.type ?? '', + label: field.label, + value: Array.isArray(field.value) ? [...field.value] : [], + })) +} + +function fieldEntryKey(field: RecordFieldEntry): string { + return `${field.type}\0${field.label ?? ''}` +} + +function isStructuredSubkey(fieldType: string, fieldLabel: string): boolean { + return !!NSF_STRUCTURED_SUBKEYS[fieldType]?.has(fieldLabel) +} + +function parseFieldKey(rawKey: string): ParsedFieldKey { + let key = rawKey.trim() + let section: 'fields' | 'custom' = 'fields' + + if (key.startsWith('c.')) { + section = 'custom' + key = key.slice(2) + } else if (key.startsWith('f.')) { + key = key.slice(2) + } + + const quoted = key.match(/^"(.+)"$/) + if (quoted) { + return { section: 'custom', fieldType: 'text', fieldLabel: quoted[1] } + } + + const dotIdx = key.indexOf('.') + if (dotIdx > 0) { + const fieldType = key.slice(0, dotIdx).toLowerCase() + const fieldLabel = key.slice(dotIdx + 1) + if (NSF_KNOWN_FIELD_TYPES.has(fieldType)) { + return { section, fieldType, fieldLabel } + } + return { section: 'custom', fieldType: 'text', fieldLabel: key } + } + + const fieldType = key.toLowerCase() + if (NSF_KNOWN_FIELD_TYPES.has(fieldType)) { + return { section: 'fields', fieldType, fieldLabel: '' } + } + + return { section: 'custom', fieldType: 'text', fieldLabel: key } +} + +function splitFieldTokens(input: string, delimiter: 'comma' | 'space'): string[] { + const result: string[] = [] + let current = '' + let inSingleQuote = false + let inDoubleQuote = false + let braceDepth = 0 + + for (let i = 0; i < input.length; i++) { + const ch = input[i] + const prev = i > 0 ? input[i - 1] : '' + + if (ch === "'" && !inDoubleQuote && prev !== '\\') { + inSingleQuote = !inSingleQuote + current += ch + continue + } + if (ch === '"' && !inSingleQuote && prev !== '\\') { + inDoubleQuote = !inDoubleQuote + current += ch + continue + } + if (!inSingleQuote && !inDoubleQuote) { + if (ch === '{') braceDepth++ + else if (ch === '}') braceDepth = Math.max(0, braceDepth - 1) + else if (braceDepth === 0) { + const isDelimiter = delimiter === 'comma' ? ch === ',' : /\s/.test(ch) + if (isDelimiter) { + const token = current.trim() + if (token) result.push(token) + current = '' + if (delimiter === 'space') { + while (i + 1 < input.length && /\s/.test(input[i + 1])) i++ + } + continue + } + } + } + current += ch + } + + const token = current.trim() + if (token) result.push(token) + return result +} + +function parseFieldToken(raw: string): FieldAssignment | 'file' | undefined { + const field = raw.trim() + if (!field) return undefined + + const separator = field.indexOf('=') + if (separator <= 0) return undefined + + const key = field.slice(0, separator).trim() + const value = field.slice(separator + 1).trim() + if (!key) return undefined + if (key.toLowerCase() === 'file') return 'file' + + const parsedKey = parseFieldKey(key) + return { + section: parsedKey.section, + fieldType: parsedKey.fieldType, + fieldLabel: parsedKey.fieldLabel, + value: resolveNsfFieldValue(value), + } +} + +function wrapPlainStructuredValue(fieldType: string, value: string): Record { + if (fieldType === 'address') return { street1: value } + if (fieldType === 'phone') return { number: value, type: 'Mobile' } + if (fieldType === 'name') return { first: value } + return { value } +} + +function buildRecordFieldEntries(assignments: FieldAssignment[]): { + fields: RecordFieldEntry[] + custom: RecordFieldEntry[] +} { + const custom: RecordFieldEntry[] = [] + const labeledFields: RecordFieldEntry[] = [] + const structuredByType = new Map>() + const simpleByType = new Map() + + for (const { section, fieldType, fieldLabel, value } of assignments) { + if (section === 'custom') { + custom.push({ + type: fieldType, + label: fieldLabel, + value: toFieldValueArray(value), + }) + continue + } + + if (fieldLabel && isStructuredSubkey(fieldType, fieldLabel)) { + const existing = structuredByType.get(fieldType) ?? {} + existing[fieldLabel] = typeof value === 'string' ? value : value + structuredByType.set(fieldType, existing) + continue + } + + if (fieldLabel) { + labeledFields.push({ + type: fieldType, + label: fieldLabel, + value: toFieldValueArray(value), + }) + continue + } + + if (typeof value === 'object' && value !== null && !Array.isArray(value)) { + structuredByType.set(fieldType, value as Record) + continue + } + + simpleByType.set(fieldType, value) + } + + const fields: RecordFieldEntry[] = [] + for (const [fieldType, value] of simpleByType) { + if (typeof value === 'string' && NSF_STRUCTURED_SUBKEYS[fieldType]) { + fields.push({ type: fieldType, value: [wrapPlainStructuredValue(fieldType, value)] }) + continue + } + fields.push({ type: fieldType, value: toFieldValueArray(value) }) + } + for (const [fieldType, objectValue] of structuredByType) { + fields.push({ type: fieldType, value: [objectValue] }) + } + fields.push(...labeledFields) + + return { fields, custom } } -export function normalizeNsfFieldValue(value: string | string[]): string[] { - return Array.isArray(value) ? value : [value] +function mergeFieldEntries( + existing: RecordFieldEntry[], + incoming: RecordFieldEntry[] +): RecordFieldEntry[] { + const merged = new Map() + for (const field of existing) { + merged.set(fieldEntryKey(field), { + type: field.type ?? '', + label: field.label, + value: Array.isArray(field.value) ? [...field.value] : [], + }) + } + for (const field of incoming) { + merged.set(fieldEntryKey(field), { + type: field.type, + label: field.label, + value: [...field.value], + }) + } + return [...merged.values()] +} + +function parseNsfFields(rawFields: string[]): ParsedNsfFields { + let hasFileFields = false + const assignments: FieldAssignment[] = [] + + for (const raw of rawFields) { + const parsed = parseFieldToken(raw) + if (!parsed) continue + if (parsed === 'file') { + hasFileFields = true + continue + } + assignments.push(parsed) + } + + const { fields, custom } = buildRecordFieldEntries(assignments) + return { fieldEntries: fields, customEntries: custom, hasFileFields } } export function getPaddedJsonBytes(data: Record): Uint8Array { @@ -30,26 +299,16 @@ export function getPaddedJsonBytes(data: Record): Uint8Array { return platform.stringToBytes(json.padEnd(paddedLength, ' ')) } -function fieldsMapToArray(fields: NsfRecordFieldMap): { type: string; value: string[] }[] { - return Object.entries(fields).map(([type, value]) => ({ - type, - value: normalizeNsfFieldValue(value), - })) -} - export function buildNsfRecordData(input: BuildNsfRecordDataInput): Record { const title = input.title.trim() const recordType = input.recordType.trim() const data: Record = { type: LEGACY_RECORD_TYPES.has(recordType) ? 'login' : recordType, title, - fields: input.fields ? fieldsMapToArray(input.fields) : [], - custom: (input.custom ?? []).map((field) => ({ - type: field.type, - label: field.label ?? '', - value: normalizeNsfFieldValue(field.value), - })), + fields: input.fieldEntries ?? [], + custom: input.customEntries ?? [], } + const notes = input.notes?.trim() if (notes) data.notes = notes return data @@ -61,7 +320,8 @@ export function mergeNsfRecordData( ): Record { const data: Record = { ...existing, - fields: Array.isArray(existing.fields) ? [...(existing.fields as Record[])] : [], + fields: cloneFieldEntries(existing.fields), + custom: cloneFieldEntries(existing.custom), } if (input.title !== undefined) data.title = input.title.trim() @@ -71,61 +331,20 @@ export function mergeNsfRecordData( } if (input.notes !== undefined) data.notes = input.notes - if (input.fields) { - const fields = data.fields as { type?: string; value?: string[] }[] - const byType = new Map() - for (const field of fields) { - const fieldType = field?.type - if (!fieldType) continue - if (!byType.has(fieldType)) byType.set(fieldType, []) - byType.get(fieldType)!.push(field) - } - for (const [fieldType, value] of Object.entries(input.fields)) { - const normalized = normalizeNsfFieldValue(value) - const matches = byType.get(fieldType) - if (matches?.length) matches[0].value = normalized - else fields.push({ type: fieldType, value: normalized }) - } - data.fields = fields + if (input.fieldEntries?.length) { + data.fields = mergeFieldEntries(data.fields as RecordFieldEntry[], input.fieldEntries) + } + if (input.customEntries?.length) { + data.custom = mergeFieldEntries(data.custom as RecordFieldEntry[], input.customEntries) } return data } -export type ParsedNsfFieldStrings = { - fields: NsfRecordFieldMap - custom: NsfRecordCustomField[] - hasFileFields: boolean +export function parseNsfFieldInput(input: string): ParsedNsfFields { + return parseNsfFields(splitFieldTokens(input, 'comma')) } -export function parseNsfFieldStrings(rawFields: string[]): ParsedNsfFieldStrings { - const fields: NsfRecordFieldMap = {} - const custom: NsfRecordCustomField[] = [] - let hasFileFields = false - - for (const raw of rawFields) { - const field = raw.trim() - if (!field) continue - const separator = field.indexOf('=') - if (separator <= 0) continue - - const key = field.slice(0, separator).trim() - const value = field.slice(separator + 1).trim() - if (!key) continue - - if (key.toLowerCase() === 'file') { - hasFileFields = true - continue - } - - const labeled = key.match(/^"(.+)"$/) - if (labeled) { - custom.push({ type: 'text', label: labeled[1], value }) - continue - } - - fields[key] = value - } - - return { fields, custom, hasFileFields } +export function parseNsfFieldSpaceInput(input: string): ParsedNsfFields { + return parseNsfFields(splitFieldTokens(input, 'space')) } diff --git a/KeeperSdk/src/nestedShareFolders/updateNsfRecord.ts b/KeeperSdk/src/nestedShareFolders/updateNsfRecord.ts index 680e513b..fcda19bc 100644 --- a/KeeperSdk/src/nestedShareFolders/updateNsfRecord.ts +++ b/KeeperSdk/src/nestedShareFolders/updateNsfRecord.ts @@ -4,7 +4,7 @@ import type { InMemoryStorage } from '../storage/InMemoryStorage' import { VaultObjectKind } from '../folders/folderHelpers' import { KeeperSdkError, ResultCodes, extractErrorMessage } from '../utils' import { resolveRecordKeyBytes } from './nsfRecordCrypto' -import { getPaddedJsonBytes, mergeNsfRecordData, type NsfRecordFieldMap } from './nsfRecordData' +import { getPaddedJsonBytes, mergeNsfRecordData, type RecordFieldEntry } from './nsfRecordData' import { checkRecordEditPermission, ensureNestedShareRecord, @@ -14,14 +14,15 @@ import { resolveNsfRecordIdentifier, } from './nsfHelpers' -export type { NsfRecordFieldMap as UpdateNsfRecordFieldMap } from './nsfRecordData' +export type { RecordFieldEntry as UpdateNsfRecordFieldEntry } from './nsfRecordData' export type UpdateNsfRecordInput = { records: string[] title?: string recordType?: string notes?: string - fields?: NsfRecordFieldMap + fieldEntries?: RecordFieldEntry[] + customEntries?: RecordFieldEntry[] } export type UpdateNsfRecordResultItem = { From f1eae300b501b2d777c2aefbd136db24830751d4 Mon Sep 17 00:00:00 2001 From: ukumar-ks Date: Wed, 1 Jul 2026 11:23:17 +0530 Subject: [PATCH 05/12] NSF improvements and bugs fixing --- KeeperSdk/src/index.ts | 1 + .../src/nestedShareFolders/addNsfRecord.ts | 5 + KeeperSdk/src/nestedShareFolders/getNsf.ts | 117 ++++++----- KeeperSdk/src/nestedShareFolders/index.ts | 1 + KeeperSdk/src/nestedShareFolders/listNsf.ts | 38 ++-- .../src/nestedShareFolders/nsfConstants.ts | 5 +- .../src/nestedShareFolders/nsfHelpers.ts | 154 +++++++++++++- .../src/nestedShareFolders/nsfRecordData.ts | 7 +- .../src/nestedShareFolders/removeNsfRecord.ts | 17 +- .../src/nestedShareFolders/updateNsfRecord.ts | 5 + .../src/nestedShareFolders/get_nsf.ts | 15 +- .../src/nestedShareFolders/link_nsf.ts | 10 +- .../src/nestedShareFolders/list_nsf.ts | 17 +- .../src/nestedShareFolders/remove_nsf.ts | 46 ++--- keeperapi/src/restMessages.ts | 188 +++++++++++++++++- 15 files changed, 499 insertions(+), 127 deletions(-) diff --git a/KeeperSdk/src/index.ts b/KeeperSdk/src/index.ts index 1f959336..3585dbb0 100644 --- a/KeeperSdk/src/index.ts +++ b/KeeperSdk/src/index.ts @@ -478,6 +478,7 @@ export { NsfRemoveOperation, removeNestedShareRecords, formatRemoveNsfPreview, + collectRemoveNsfWarnings, mkdirNestedShareFolder, NSF_FOLDER_COLORS, NsfRemoveFolderOperation, diff --git a/KeeperSdk/src/nestedShareFolders/addNsfRecord.ts b/KeeperSdk/src/nestedShareFolders/addNsfRecord.ts index 186f0cbc..87a77c11 100644 --- a/KeeperSdk/src/nestedShareFolders/addNsfRecord.ts +++ b/KeeperSdk/src/nestedShareFolders/addNsfRecord.ts @@ -21,6 +21,7 @@ import { requireAuthDataKey, resolveNsfFolderIdentifier, } from './nsfHelpers' +import { validateNsfRecordType } from './nsfRecordTypes' export type { RecordFieldEntry } from './nsfRecordData' @@ -113,6 +114,10 @@ export async function addNestedShareRecord( ) } + if (!input.recordData && input.recordType?.trim()) { + await validateNsfRecordType(auth, input.recordType, ResultCodes.NSF_ADD_FAILED) + } + const recordData = input.recordData ?? buildNsfRecordData({ diff --git a/KeeperSdk/src/nestedShareFolders/getNsf.ts b/KeeperSdk/src/nestedShareFolders/getNsf.ts index 9449055a..95de96ae 100644 --- a/KeeperSdk/src/nestedShareFolders/getNsf.ts +++ b/KeeperSdk/src/nestedShareFolders/getNsf.ts @@ -16,21 +16,25 @@ import { getRecordType, getRecordUrl, } from '../records/RecordUtils' -import { KeeperSdkError, ResultCodes, extractErrorMessage } from '../utils' +import { KeeperSdkError, ResultCodes } from '../utils' import { buildFolderPath, collectRecordsInFolder, + fetchLiveFolderAccessEntries, + fetchLiveRecordAccessEntries, findNestedShareFoldersForRecord, findRecordFolderLocation, folderAccessDisplayRole, formatAccessType, - getFolderAccessEntries, getKeeperDriveFolder, getKeeperDriveRecord, + isFolderOwnerAccessor, isFolderShareAdministrator, isFolderUserPermission, isSensitiveFieldType, + loadShareUserMap, normalizeParentUid, + recordAccessDisplayRole, resolveAccessUsername, resolveNsfFolderIdentifier, resolveNsfRecordIdentifier, @@ -42,14 +46,11 @@ import { NSF_MASKED_VALUE, NSF_RECORD_LABEL_WIDTH, NSF_RECORD_USER_PERMISSIONS_HEADING, + NSF_SHARE_ADMINS_PREVIEW_LIMIT, NSF_TOP_LEVEL_FIELD_TYPES, NSF_UNKNOWN_RECORD_TITLES, } from './nsfConstants' -function longToNumber(value: number | { toNumber: () => number } | null | undefined): number | undefined { - if (value == null) return undefined - return typeof value === 'number' ? value : value.toNumber() -} function formatNsfFieldParts(values: unknown[]): string[] { return values @@ -114,6 +115,7 @@ export type NsfRecordPermission = { editable: boolean awaitingApproval: boolean expiration?: number + role?: string } export type NsfFolderView = { @@ -196,10 +198,6 @@ function recordDetailsMessage(recordUid: string, include: Records.RecordDetailsI }) } -function bytesToUid(bytes: Uint8Array | null | undefined): string | undefined { - return bytes?.length ? webSafe64FromBytes(bytes) : undefined -} - function mapFolderPermission(entry: DKdFolderAccess): NsfFolderPermission { const permission = entry.permission return { @@ -222,30 +220,38 @@ function mapFolderPermission(entry: DKdFolderAccess): NsfFolderPermission { function buildFolderAccessRow( storage: InMemoryStorage, folder: DKdFolder, - entry: DKdFolderAccess + entry: DKdFolderAccess, + shareUsers: Map ): NsfFolderAccessRow { - return { - username: resolveAccessUsername(storage, entry.accessTypeUid, folder), - role: folderAccessDisplayRole(entry), - } + const username = resolveAccessUsername(storage, entry.accessTypeUid, folder, shareUsers) + const role = isFolderOwnerAccessor(folder, entry, username) + ? 'owner' + : folderAccessDisplayRole(entry) + return { username, role } } -function splitFolderPermissions(storage: InMemoryStorage, folder: DKdFolder) { - const entries = getFolderAccessEntries(storage, folder.uid) +function splitFolderPermissions( + storage: InMemoryStorage, + folder: DKdFolder, + entries: DKdFolderAccess[], + shareUsers: Map +) { const userPermissions: NsfFolderAccessRow[] = [] const shareAdmins: NsfFolderAccessRow[] = [] const teamPermissions: NsfFolderPermission[] = [] + for (const entry of entries) { if (isFolderUserPermission(entry)) { - userPermissions.push(buildFolderAccessRow(storage, folder, entry)) + userPermissions.push(buildFolderAccessRow(storage, folder, entry, shareUsers)) } if (isFolderShareAdministrator(entry)) { - shareAdmins.push(buildFolderAccessRow(storage, folder, entry)) + shareAdmins.push(buildFolderAccessRow(storage, folder, entry, shareUsers)) } if (entry.accessType === Folder.AccessType.AT_TEAM) { teamPermissions.push(mapFolderPermission(entry)) } } + return { userPermissions, shareAdmins, teamPermissions } } @@ -353,7 +359,8 @@ function formatRecordFieldDetailLines(field: NsfRecordFieldView): string[] { } function recordPermissionRole(entry: NsfRecordPermission): string { - if (entry.owner) return 'full-manager' + if (entry.owner) return 'owner' + if (entry.role) return entry.role if (entry.shareAdmin) return 'shared-manager' return 'content-manager' } @@ -401,32 +408,31 @@ function formatRecordUserPermissionBlock(entry: NsfRecordPermission): string[] { if (entry.username) lines.push(` User: ${entry.username}`) else if (entry.accountUid) lines.push(` User UID: ${entry.accountUid}`) if (entry.owner) lines.push(' Owner: Yes') + else if (entry.role) lines.push(` Role: ${entry.role}`) lines.push(` Shareable: ${entry.shareable ? 'Yes' : 'No'}`) lines.push(` Read-Only: ${entry.editable ? 'No' : 'Yes'}`) return lines } -async function fetchRecordPermissions(auth: Auth, recordUid: string): Promise { - try { - const response = await auth.executeRest( - recordDetailsMessage(recordUid, Records.RecordDetailsInclude.SHARE_ONLY) - ) - const detail = response.recordDataWithAccessInfo?.[0] - return (detail?.userPermission ?? []).map((entry) => ({ - username: entry.username || '', - accountUid: bytesToUid(entry.accountUid), - owner: !!entry.owner, - shareAdmin: !!entry.shareAdmin, - shareable: !!entry.sharable, - editable: !!entry.editable, - awaitingApproval: !!entry.awaitingApproval, - expiration: longToNumber(entry.expiration as number | null | undefined), - })) - } catch (err) { - throw new KeeperSdkError( - `Failed to fetch record permissions for ${recordUid}: ${extractErrorMessage(err)}` - ) - } +async function fetchRecordPermissions( + auth: Auth, + storage: InMemoryStorage, + recordUid: string +): Promise { + const entries = await fetchLiveRecordAccessEntries(auth, storage, recordUid) + return entries.map(({ username, accountUid, data }) => { + const owner = !!data.owner + return { + username, + accountUid, + owner, + shareAdmin: false, + shareable: !!(data.canApproveAccess || data.canUpdateAccess), + editable: !!data.canEdit, + awaitingApproval: false, + role: owner ? undefined : recordAccessDisplayRole(data), + } + }) } async function fetchRecordShareAdmins(auth: Auth, recordUid: string): Promise { @@ -453,13 +459,21 @@ async function fetchRecordDataFallback(auth: Auth, recordUid: string): Promise { const folder = getKeeperDriveFolder(storage, folderUid) if (!folder) { throw new KeeperSdkError(`Nested share folder not found: ${folderUid}`, ResultCodes.NSF_NOT_FOUND) } - const split = splitFolderPermissions(storage, folder) + const [entries, shareUsers] = await Promise.all([ + fetchLiveFolderAccessEntries(auth, folderUid), + loadShareUserMap(auth, storage), + ]) + const split = splitFolderPermissions(storage, folder, entries, shareUsers) const { userPermissions, shareAdmins } = ensureFolderOwnerListed( folder, split.userPermissions, @@ -505,7 +519,7 @@ async function buildRecordView( const password = getRecordPassword(record) const [userPermissions, shareAdmins] = await Promise.all([ - fetchRecordPermissions(auth, recordUid), + fetchRecordPermissions(auth, storage, recordUid), fetchRecordShareAdmins(auth, recordUid), ]) const notes = @@ -553,7 +567,7 @@ export async function getNestedShareFolder( const folderUid = resolveNsfFolder(storage, trimmed) if (folderUid) { - return { kind: 'folder', view: buildFolderView(storage, folderUid) } + return { kind: 'folder', view: await buildFolderView(auth, storage, folderUid) } } const recordUid = resolveNsfRecord(storage, trimmed) @@ -622,10 +636,19 @@ export function formatNsfRecordDetail(view: NsfRecordView, verbose = false): str } if (view.shareAdmins.length > 0) { - lines.push('', `Share Admins (${view.shareAdmins.length}):`) - for (const admin of view.shareAdmins) { + const total = view.shareAdmins.length + const preview = view.shareAdmins.slice(0, NSF_SHARE_ADMINS_PREVIEW_LIMIT) + const headingSuffix = + total > NSF_SHARE_ADMINS_PREVIEW_LIMIT + ? `, showing first ${NSF_SHARE_ADMINS_PREVIEW_LIMIT}` + : '' + lines.push('', `Share Admins (${total}${headingSuffix}):`) + for (const admin of preview) { lines.push(` ${admin}`) } + if (total > NSF_SHARE_ADMINS_PREVIEW_LIMIT) { + lines.push(` ... and ${total - NSF_SHARE_ADMINS_PREVIEW_LIMIT} more`) + } } if (verbose) { diff --git a/KeeperSdk/src/nestedShareFolders/index.ts b/KeeperSdk/src/nestedShareFolders/index.ts index 793f9819..b780c725 100644 --- a/KeeperSdk/src/nestedShareFolders/index.ts +++ b/KeeperSdk/src/nestedShareFolders/index.ts @@ -79,6 +79,7 @@ export { NsfRemoveOperation, removeNestedShareRecords, formatRemoveNsfPreview, + collectRemoveNsfWarnings, } from './removeNsfRecord' export type { NsfRemoveOperationInput, diff --git a/KeeperSdk/src/nestedShareFolders/listNsf.ts b/KeeperSdk/src/nestedShareFolders/listNsf.ts index e4ff8d2c..8022de42 100644 --- a/KeeperSdk/src/nestedShareFolders/listNsf.ts +++ b/KeeperSdk/src/nestedShareFolders/listNsf.ts @@ -6,6 +6,7 @@ import { getKeeperDriveRecords, getRecordDescription, normalizeParentUid, + resolveKeeperDriveRootParentUid, } from './nsfHelpers' import { getRecordTitle, getRecordType } from '../records/RecordUtils' import { @@ -48,6 +49,11 @@ function compareRows(a: ListNsfRow, b: ListNsfRow): number { return typeCompare !== 0 ? typeCompare : a.title.localeCompare(b.title, undefined, { sensitivity: 'base' }) } +function resolveListParentOrFolder(storage: InMemoryStorage, value: string): string { + if (value !== 'root') return value + return resolveKeeperDriveRootParentUid(storage) ?? value +} + function collectFolderRows(storage: InMemoryStorage): ListNsfRow[] { return getKeeperDriveFolders(storage).map((folder) => ({ itemType: NsfItemType.Folder, @@ -55,7 +61,7 @@ function collectFolderRows(storage: InMemoryStorage): ListNsfRow[] { title: folder.data.name || 'Unnamed', type: '', description: '', - parentOrFolder: normalizeParentUid(storage, folder.parentUid), + parentOrFolder: resolveListParentOrFolder(storage, normalizeParentUid(storage, folder.parentUid)), })) } @@ -66,7 +72,10 @@ function collectRecordRows(storage: InMemoryStorage): ListNsfRow[] { title: getRecordTitle(record), type: getRecordType(record), description: getRecordDescription(record), - parentOrFolder: findRecordFolderLocation(storage, record.uid) || 'root', + parentOrFolder: resolveListParentOrFolder( + storage, + findRecordFolderLocation(storage, record.uid) || 'root' + ), })) } @@ -146,19 +155,20 @@ export function formatListNsfCsv(rows: ListNsfRow[]): string { return lines.join('\n') } +function toListNsfJsonRow(row: ListNsfRow): Record { + const out: Record = { + item_type: row.itemType, + uid: row.uid, + title: row.title, + parent_or_folder: row.parentOrFolder, + } + if (row.type) out.type = row.type + if (row.description) out.description = row.description + return out +} + export function formatListNsfJson(rows: ListNsfRow[]): string { - return JSON.stringify( - rows.map((row) => ({ - item_type: row.itemType, - uid: row.uid, - title: row.title, - type: row.type, - description: row.description, - parent_or_folder: row.parentOrFolder, - })), - null, - 2 - ) + return JSON.stringify(rows.map(toListNsfJsonRow), null, 2) } export function formatListNsfOutput(rows: ListNsfRow[], format: ListNsfFormatInput = ListNsfFormat.Table): string { diff --git a/KeeperSdk/src/nestedShareFolders/nsfConstants.ts b/KeeperSdk/src/nestedShareFolders/nsfConstants.ts index 8bcada4a..1201d475 100644 --- a/KeeperSdk/src/nestedShareFolders/nsfConstants.ts +++ b/KeeperSdk/src/nestedShareFolders/nsfConstants.ts @@ -6,6 +6,8 @@ export const NSF_LEGACY_RECORD_MSG = export const NSF_LEGACY_FOLDER_MSG = "Folder '{0}' is a legacy folder. Nested Share Folder commands operate only on Nested Share Folders." +export const NSF_LEGACY_RECORD_TYPES = new Set(['legacy', 'general']) + export const NSF_ACCESS_ROLE_LABELS: Record = { [Folder.AccessRoleType.NAVIGATOR]: 'navigator', [Folder.AccessRoleType.REQUESTOR]: 'requestor', @@ -13,7 +15,7 @@ export const NSF_ACCESS_ROLE_LABELS: Record = { [Folder.AccessRoleType.SHARED_MANAGER]: 'shared-manager', [Folder.AccessRoleType.CONTENT_MANAGER]: 'content-manager', [Folder.AccessRoleType.CONTENT_SHARE_MANAGER]: 'content-share-manager', - [Folder.AccessRoleType.MANAGER]: 'manager', + [Folder.AccessRoleType.MANAGER]: 'full-manager', [Folder.AccessRoleType.UNRESOLVED]: 'unresolved', } @@ -38,6 +40,7 @@ export const NSF_RECORD_LABEL_WIDTH = 17 export const NSF_FOLDER_USER_PERMISSIONS_HEADING = 'User Permissions:' export const NSF_FOLDER_SHARE_ADMINS_HEADING = 'Share Administrators:' export const NSF_RECORD_USER_PERMISSIONS_HEADING = 'User Permissions:' +export const NSF_SHARE_ADMINS_PREVIEW_LIMIT = 10 export const NSF_LIST_TABLE_HEADERS = ['#', 'Item Type', 'UID', 'Title', 'Type', 'Description'] as const export const NSF_LIST_FULL_HEADERS = [ diff --git a/KeeperSdk/src/nestedShareFolders/nsfHelpers.ts b/KeeperSdk/src/nestedShareFolders/nsfHelpers.ts index d8449535..6fa572b6 100644 --- a/KeeperSdk/src/nestedShareFolders/nsfHelpers.ts +++ b/KeeperSdk/src/nestedShareFolders/nsfHelpers.ts @@ -7,10 +7,10 @@ import type { DKdFolderRecord, DKdRecordAccess, } from '@keeper-security/keeperapi' -import { Folder, Records, webSafe64FromBytes } from '@keeper-security/keeperapi' +import { Folder, Records, getFolderAccessMessage, getRecordAccessMessage, getShareObjectsMessage, webSafe64FromBytes } from '@keeper-security/keeperapi' import type { InMemoryStorage } from '../storage/InMemoryStorage' import { VaultObjectKind } from '../folders/folderHelpers' -import { KeeperSdkError, ResultCodes } from '../utils' +import { KeeperSdkError, ResultCodes, extractErrorMessage } from '../utils' import { getRecordTitle } from '../records/RecordUtils' import { NSF_ACCESS_ROLE_LABELS, @@ -92,7 +92,10 @@ export function parseRecordModifyStatus( throw new KeeperSdkError('No results from record operation.', failureCode) } const status = result.status ?? Records.RecordModifyResult.RS_SUCCESS - const statusName = Records.RecordModifyResult[status] ?? String(status) + const statusName = + status === Records.RecordModifyResult.RS_SUCCESS + ? 'SUCCESS' + : (Records.RecordModifyResult[status] ?? String(status)) if (status !== Records.RecordModifyResult.RS_SUCCESS) { throw new KeeperSdkError( result.message || `Record operation failed (${statusName}).`, @@ -299,6 +302,17 @@ export function findExistingChildFolder( segment: string, parentUid: string | null | undefined ): string | undefined { + const byUid = getKeeperDriveFolder(storage, segment) + if (byUid) { + if (parentUid == null || parentUid === '') { + return segment + } + if (normalizeParentUid(storage, byUid.parentUid) === normalizeParentUid(storage, parentUid)) { + return segment + } + return undefined + } + const lower = segment.toLowerCase() const exactMatches: string[] = [] const rootMatches: string[] = [] @@ -657,8 +671,12 @@ export function isSensitiveFieldType(fieldType: string): boolean { export function resolveAccessUsername( storage: InMemoryStorage, accessTypeUid: string, - folder?: DKdFolder + folder?: DKdFolder, + shareUsers?: Map ): string { + const fromShare = shareUsers?.get(accessTypeUid) + if (fromShare) return fromShare + for (const user of storage.getAll('user')) { if (webSafe64FromBytes(user.accountUid) === accessTypeUid) { return user.username @@ -670,6 +688,134 @@ export function resolveAccessUsername( return accessTypeUid } +function toFolderAccessEntry(folderUid: string, accessor: Folder.IFolderAccessData): DKdFolderAccess { + return { + kind: 'keeper_drive_folder_access', + accessUid: `${folderUid}:${webSafe64FromBytes(accessor.accessTypeUid!)}`, + folderUid, + accessTypeUid: webSafe64FromBytes(accessor.accessTypeUid!), + accessType: accessor.accessType!, + accessRoleType: accessor.accessRoleType!, + permission: accessor.permissions ?? {}, + inherited: accessor.inherited ?? undefined, + hidden: accessor.hidden ?? undefined, + } +} + +export async function loadShareUserMap(auth: Auth, storage: InMemoryStorage): Promise> { + const map = new Map() + + for (const user of storage.getAll('user')) { + if (user.accountUid?.length && user.username) { + map.set(webSafe64FromBytes(user.accountUid), user.username) + } + } + + try { + const response = await auth.executeRest(getShareObjectsMessage()) + for (const list of [ + response.shareEnterpriseUsers, + response.shareFamilyUsers, + response.shareRelationships, + response.shareMCEnterpriseUsers, + ]) { + for (const entry of list ?? []) { + if (entry.userAccountUid?.length && entry.username) { + map.set(webSafe64FromBytes(entry.userAccountUid), entry.username) + } + } + } + } catch { + // Fall back to vault user cache only. + } + + return map +} + +export async function fetchLiveFolderAccessEntries(auth: Auth, folderUid: string): Promise { + try { + const response = await auth.executeRest(getFolderAccessMessage([folderUid])) + const result = response.folderAccessResults?.find( + (entry) => entry.folderUid?.length && webSafe64FromBytes(entry.folderUid) === folderUid + ) + return (result?.accessors ?? []) + .filter( + (accessor) => + accessor.accessTypeUid?.length && + accessor.accessType != null && + accessor.accessRoleType != null + ) + .map((accessor) => toFolderAccessEntry(folderUid, accessor)) + } catch (err) { + throw new KeeperSdkError( + `Failed to fetch folder permissions for ${folderUid}: ${extractErrorMessage(err)}`, + ResultCodes.NSF_DETAILS_FAILED + ) + } +} + +export function isFolderOwnerAccessor( + folder: DKdFolder, + entry: DKdFolderAccess, + username: string +): boolean { + const ownerUsername = folder.ownerInfo?.username?.trim().toLowerCase() + if (ownerUsername && username.toLowerCase() === ownerUsername) return true + if (folder.ownerInfo?.accountUid && folder.ownerInfo.accountUid === entry.accessTypeUid) return true + return entry.accessType === Folder.AccessType.AT_OWNER +} + +export function recordAccessDisplayRole(data: Folder.IRecordAccessData): string { + return formatAccessRoleType(data.accessRoleType) +} + +export async function fetchLiveRecordAccessEntries( + auth: Auth, + storage: InMemoryStorage, + recordUid: string +): Promise< + { + username: string + accountUid?: string + data: Folder.IRecordAccessData + }[] +> { + try { + const [response, shareUsers] = await Promise.all([ + auth.executeRest(getRecordAccessMessage([recordUid])), + loadShareUserMap(auth, storage), + ]) + + return (response.recordAccesses ?? []) + .filter((entry) => { + const accessType = entry.data?.accessType + return ( + accessType === Folder.AccessType.AT_USER || + accessType === Folder.AccessType.AT_OWNER || + !!entry.data?.owner + ) + }) + .map((entry) => { + const data = entry.data + if (!data?.accessTypeUid?.length || data.accessType == null) return undefined + + const accountUid = webSafe64FromBytes(data.accessTypeUid) + const username = + entry.accessorInfo?.name?.trim() || + shareUsers.get(accountUid) || + resolveAccessUsername(storage, accountUid) + + return { username, accountUid, data } + }) + .filter((entry): entry is NonNullable => !!entry && entry.username.length > 0) + } catch (err) { + throw new KeeperSdkError( + `Failed to fetch record permissions for ${recordUid}: ${extractErrorMessage(err)}`, + ResultCodes.NSF_DETAILS_FAILED + ) + } +} + export function folderAccessDisplayRole(entry: DKdFolderAccess): string { if (entry.accessType === Folder.AccessType.AT_OWNER) return 'owner' return formatAccessRoleType(entry.accessRoleType) diff --git a/KeeperSdk/src/nestedShareFolders/nsfRecordData.ts b/KeeperSdk/src/nestedShareFolders/nsfRecordData.ts index cbe8ef54..76b8fe9d 100644 --- a/KeeperSdk/src/nestedShareFolders/nsfRecordData.ts +++ b/KeeperSdk/src/nestedShareFolders/nsfRecordData.ts @@ -1,9 +1,8 @@ import { platform } from '@keeper-security/keeperapi' -import { NSF_KNOWN_FIELD_TYPES, NSF_STRUCTURED_SUBKEYS } from './nsfConstants' +import { NSF_KNOWN_FIELD_TYPES, NSF_LEGACY_RECORD_TYPES, NSF_STRUCTURED_SUBKEYS } from './nsfConstants' const MIN_RECORD_PAD_BYTES = 384 const PAD_BLOCK_SIZE = 16 -const LEGACY_RECORD_TYPES = new Set(['legacy', 'general']) export type RecordFieldEntry = { type: string @@ -303,7 +302,7 @@ export function buildNsfRecordData(input: BuildNsfRecordDataInput): Record = { - type: LEGACY_RECORD_TYPES.has(recordType) ? 'login' : recordType, + type: NSF_LEGACY_RECORD_TYPES.has(recordType) ? 'login' : recordType, title, fields: input.fieldEntries ?? [], custom: input.customEntries ?? [], @@ -327,7 +326,7 @@ export function mergeNsfRecordData( if (input.title !== undefined) data.title = input.title.trim() if (input.recordType !== undefined) { const recordType = input.recordType.trim() - data.type = LEGACY_RECORD_TYPES.has(recordType) ? 'login' : recordType + data.type = NSF_LEGACY_RECORD_TYPES.has(recordType) ? 'login' : recordType } if (input.notes !== undefined) data.notes = input.notes diff --git a/KeeperSdk/src/nestedShareFolders/removeNsfRecord.ts b/KeeperSdk/src/nestedShareFolders/removeNsfRecord.ts index 595aee66..1f2cf9fa 100644 --- a/KeeperSdk/src/nestedShareFolders/removeNsfRecord.ts +++ b/KeeperSdk/src/nestedShareFolders/removeNsfRecord.ts @@ -191,19 +191,28 @@ async function executeRemove( ) } +export function collectRemoveNsfWarnings(preview: NsfRemovePreviewItem[]): string[] { + const warnings = new Set() + for (const item of preview) { + for (const warning of item.impact?.warnings ?? []) { + if (warning) warnings.add(warning) + } + } + return [...warnings] +} + export function formatRemoveNsfPreview(preview: NsfRemovePreviewItem[]): string { const lines: string[] = [] for (const item of preview) { lines.push(`Record: ${item.recordUid}`) if (item.folderUid) lines.push(` Folder: ${item.folderUid}`) - lines.push(` Status: ${item.status}`) + if (item.status !== REMOVE_SUCCESS_STATUS) { + lines.push(` Status: ${item.status}`) + } if (item.impact) { lines.push( ` Impact: folders=${item.impact.foldersCount}, records=${item.impact.recordsCount}, users=${item.impact.affectedUsersCount}, teams=${item.impact.affectedTeamsCount}` ) - for (const warning of item.impact.warnings) { - lines.push(` Warning: ${warning}`) - } } if (item.error?.message) { lines.push(` Error: ${item.error.message}`) diff --git a/KeeperSdk/src/nestedShareFolders/updateNsfRecord.ts b/KeeperSdk/src/nestedShareFolders/updateNsfRecord.ts index fcda19bc..2e09fb1b 100644 --- a/KeeperSdk/src/nestedShareFolders/updateNsfRecord.ts +++ b/KeeperSdk/src/nestedShareFolders/updateNsfRecord.ts @@ -13,6 +13,7 @@ import { requireAuthAccountUid, resolveNsfRecordIdentifier, } from './nsfHelpers' +import { validateNsfRecordType } from './nsfRecordTypes' export type { RecordFieldEntry as UpdateNsfRecordFieldEntry } from './nsfRecordData' @@ -108,6 +109,10 @@ export async function updateNestedShareRecords( throw new KeeperSdkError('Record UID is required.', ResultCodes.NSF_UPDATE_FAILED) } + if (input.recordType?.trim()) { + await validateNsfRecordType(auth, input.recordType, ResultCodes.NSF_UPDATE_FAILED) + } + const accountUid = requireAuthAccountUid(auth) const updated: UpdateNsfRecordResultItem[] = [] diff --git a/examples/sdk_example/src/nestedShareFolders/get_nsf.ts b/examples/sdk_example/src/nestedShareFolders/get_nsf.ts index f8918354..6f91a16f 100644 --- a/examples/sdk_example/src/nestedShareFolders/get_nsf.ts +++ b/examples/sdk_example/src/nestedShareFolders/get_nsf.ts @@ -4,25 +4,20 @@ import { GetNsfFormat, login, logger, - prompt, suppressLogs, } from '@keeper-security/keeper-sdk-javascript' import { runExample } from '../utils/runner' -import { isYes } from '../utils/format' +import { promptRequired, promptYesNo, yesNoPrompt } from '../utils/promptCommands' async function getNsf() { const vault = await login() try { - const identifier = (await prompt('Record UID, folder UID, or title: ')).trim() - if (!identifier) { - logger.info('No UID or title given.') - return - } + const identifier = await promptRequired('Record UID, folder UID, or title: ', 'No UID or title given.') - const asJson = isYes(await prompt('Output as JSON? [y/N]: ')) - const verbose = isYes(await prompt('Verbose permissions? [y/N]: ')) - const unmask = isYes(await prompt('Unmask secrets? [y/N]: ')) + const asJson = await promptYesNo(yesNoPrompt('Output as JSON?')) + const verbose = await promptYesNo(yesNoPrompt('Verbose permissions?')) + const unmask = await promptYesNo(yesNoPrompt('Unmask secrets?')) const restore = suppressLogs() let result diff --git a/examples/sdk_example/src/nestedShareFolders/link_nsf.ts b/examples/sdk_example/src/nestedShareFolders/link_nsf.ts index 896ed6bb..63e40124 100644 --- a/examples/sdk_example/src/nestedShareFolders/link_nsf.ts +++ b/examples/sdk_example/src/nestedShareFolders/link_nsf.ts @@ -3,21 +3,17 @@ import { extractErrorMessage, login, logger, - prompt, suppressLogs, } from '@keeper-security/keeper-sdk-javascript' import { runExample } from '../utils/runner' +import { promptRequired } from '../utils/promptCommands' async function linkNsf() { const vault = await login() try { - const recordIdentifier = (await prompt('Record UID or title: ')).trim() - const folderIdentifier = (await prompt('Destination folder UID or name: ')).trim() - if (!recordIdentifier || !folderIdentifier) { - logger.info('Both record and folder are required.') - return - } + const recordIdentifier = await promptRequired('Record UID or title: ') + const folderIdentifier = await promptRequired('Destination folder UID or name: ') const restore = suppressLogs() let result diff --git a/examples/sdk_example/src/nestedShareFolders/list_nsf.ts b/examples/sdk_example/src/nestedShareFolders/list_nsf.ts index 20896bbc..75b4ad71 100644 --- a/examples/sdk_example/src/nestedShareFolders/list_nsf.ts +++ b/examples/sdk_example/src/nestedShareFolders/list_nsf.ts @@ -5,14 +5,13 @@ import { ListNsfFormat, login, logger, - prompt, } from '@keeper-security/keeper-sdk-javascript' import { runExample } from '../utils/runner' -import { isYes } from '../utils/format' +import { promptChoice, promptOptional, promptYesNo, yesNoPrompt } from '../utils/promptCommands' type ListMode = 'all' | 'folders' | 'records' -const MODE_BY_INPUT: Record = { +const LIST_MODE_CHOICES: Record = { '': 'all', '1': 'all', '2': 'folders', @@ -22,19 +21,15 @@ const MODE_BY_INPUT: Record = { records: 'records', } -function parseMode(input: string): ListMode { - return MODE_BY_INPUT[input.trim().toLowerCase()] ?? 'all' -} - async function listNsf() { const vault = await login() try { logger.info('Show: 1) all 2) folders only 3) records only') - const mode = parseMode(await prompt('Choose [1]: ')) - const asJson = isYes(await prompt('Output as JSON? [y/N]: ')) - const asCsv = !asJson && isYes(await prompt('Output as CSV? [y/N]: ')) - const outputPath = (await prompt('Output file path (Enter for stdout): ')).trim() + const mode = await promptChoice('Choose [1]: ', LIST_MODE_CHOICES) + const asJson = await promptYesNo(yesNoPrompt('Output as JSON?')) + const asCsv = !asJson && (await promptYesNo(yesNoPrompt('Output as CSV?'))) + const outputPath = await promptOptional('Output file path (Enter for stdout): ') const format = asJson ? ListNsfFormat.JSON : asCsv ? ListNsfFormat.CSV : ListNsfFormat.Table const rows = vault.listNestedShareFolders({ diff --git a/examples/sdk_example/src/nestedShareFolders/remove_nsf.ts b/examples/sdk_example/src/nestedShareFolders/remove_nsf.ts index d4ce1c7d..cd80a179 100644 --- a/examples/sdk_example/src/nestedShareFolders/remove_nsf.ts +++ b/examples/sdk_example/src/nestedShareFolders/remove_nsf.ts @@ -1,18 +1,26 @@ import { cleanup, + collectRemoveNsfWarnings, extractErrorMessage, login, logger, NsfRemoveOperation, - prompt, suppressLogs, type RemoveNsfRecordInput, type RemoveNsfRecordResult, } from '@keeper-security/keeper-sdk-javascript' import { runExample } from '../utils/runner' -import { isYes } from '../utils/format' +import { splitCommaSeparated, withSuppressedLogs } from '../utils/format' +import { + promptChoice, + promptOptional, + promptRequired, + promptRequiredList, + promptYesNo, + yesNoPrompt, +} from '../utils/promptCommands' -const OPERATION_BY_INPUT: Record = { +const OPERATION_CHOICES: Record = { '': NsfRemoveOperation.OwnerTrash, '1': NsfRemoveOperation.OwnerTrash, '2': NsfRemoveOperation.FolderTrash, @@ -22,10 +30,6 @@ const OPERATION_BY_INPUT: Record = { unlink: NsfRemoveOperation.Unlink, } -function parseOperation(input: string): NsfRemoveOperation { - return OPERATION_BY_INPUT[input.trim().toLowerCase()] ?? NsfRemoveOperation.OwnerTrash -} - function printPreview(vault: Awaited>, result: RemoveNsfRecordResult): void { if (result.preview.length === 0) return logger.info('') @@ -34,10 +38,8 @@ function printPreview(vault: Awaited>, result: RemoveNs } function printPreviewWarnings(result: RemoveNsfRecordResult): void { - for (const item of result.preview) { - for (const warning of item.impact?.warnings ?? []) { - logger.info(`Warning: ${warning}`) - } + for (const warning of collectRemoveNsfWarnings(result.preview)) { + logger.info(`Warning: ${warning}`) } } @@ -57,21 +59,19 @@ async function removeNsf() { const vault = await login() try { - const recordsInput = (await prompt('Record UID(s) or title(s), comma-separated: ')).trim() - const records = recordsInput.split(',').map((value) => value.trim()).filter(Boolean) - if (records.length === 0) { - logger.info('At least one record is required.') - return - } + const records = await promptRequiredList( + 'Record UID(s) or title(s), comma-separated: ', + splitCommaSeparated + ) logger.info('Operation: 1) owner-trash 2) folder-trash 3) unlink') - const operation = parseOperation(await prompt('Choose [1]: ')) + const operation = await promptChoice('Choose [1]: ', OPERATION_CHOICES) const folder = operation === NsfRemoveOperation.Unlink - ? (await prompt('Folder UID or name (required for unlink): ')).trim() - : (await prompt('Folder UID or name (optional): ')).trim() - const dryRun = isYes(await prompt('Dry run (preview only)? [y/N]: ')) - const force = dryRun ? false : isYes(await prompt('Force confirm without prompt? [y/N]: ')) + ? await promptRequired('Folder UID or name (required for unlink): ') + : await promptOptional('Folder UID or name (optional): ') + const dryRun = await promptYesNo(yesNoPrompt('Dry run (preview only)?')) + const force = dryRun ? false : await promptYesNo(yesNoPrompt('Force confirm without prompt?')) const baseInput: RemoveNsfRecordInput = { records, @@ -99,7 +99,7 @@ async function removeNsf() { printPreview(vault, preview) printPreviewWarnings(preview) - if (!isYes(await prompt('Do you want to proceed with deletion? [y/n]: '))) { + if (!(await promptYesNo(yesNoPrompt('Do you want to proceed with deletion?')))) { logger.info('Removal cancelled.') return } diff --git a/keeperapi/src/restMessages.ts b/keeperapi/src/restMessages.ts index 8411e737..4aeafa78 100644 --- a/keeperapi/src/restMessages.ts +++ b/keeperapi/src/restMessages.ts @@ -1,5 +1,3 @@ -// noinspection JSUnusedGlobalSymbols - import { Reader, Writer } from 'protobufjs' import { AccountSummary, @@ -20,6 +18,7 @@ import { record, folder, } from './proto' +import { normal64Bytes, webSafe64FromBytes } from './utils' // generated protobuf has all properties optional and nullable, while this is not an issue for KeeperApp, this type fixes it export type NN = Required<{ [prop in keyof T]: NonNullable }> @@ -1083,3 +1082,188 @@ export const folderAddMessage = ( data: Folder.IFolderAddRequest ): RestMessage => createMessage(data, 'vault/folders/v3/add', Folder.FolderAddRequest, Folder.FolderAddResponse) + +export interface IGetFolderAccessRequest { + folderUid?: Uint8Array[] | null +} + +export interface IGetFolderAccessResult { + folderUid?: Uint8Array | null + accessors?: Folder.IFolderAccessData[] | null +} + +export interface IGetFolderAccessResponse { + folderAccessResults?: IGetFolderAccessResult[] | null + hasMore?: boolean | null +} + +const GetFolderAccessRequest = { + create(properties?: IGetFolderAccessRequest): IGetFolderAccessRequest { + return { folderUid: properties?.folderUid ?? [] } + }, + encode(message: IGetFolderAccessRequest, writer?: Writer): Writer { + const w = writer ?? Writer.create() + for (const uid of message.folderUid ?? []) { + w.uint32((1 << 3) | 2).bytes(uid) + } + return w + }, +} + +function decodeGetFolderAccessResult(reader: Reader, end: number): IGetFolderAccessResult | null { + let folderUid: Uint8Array | null = null + const accessors: Folder.IFolderAccessData[] = [] + + while (reader.pos < end) { + const tag = reader.uint32() + switch (tag) { + case 10: + folderUid = reader.bytes() + break + case 18: + accessors.push(Folder.FolderAccessData.decode(reader, reader.uint32())) + break + default: + reader.skipType(tag & 7) + } + } + + return folderUid?.length ? { folderUid, accessors } : null +} + +const GetFolderAccessResponse = { + decode(reader: Uint8Array): IGetFolderAccessResponse { + const r = Reader.create(reader) + const response: IGetFolderAccessResponse = { folderAccessResults: [] } + + while (r.pos < r.len) { + const tag = r.uint32() + if (tag === 10) { + const length = r.uint32() + const end = r.pos + length + const result = decodeGetFolderAccessResult(r, end) + if (result) response.folderAccessResults!.push(result) + r.pos = end + } else if (tag === 24) { + response.hasMore = r.bool() + } else { + r.skipType(tag & 7) + } + } + + return response + }, +} + +export const getFolderAccessMessage = ( + folderUids: string[] +): RestMessage => + createMessage( + { folderUid: folderUids.map(normal64Bytes) }, + 'vault/folders/v3/access', + GetFolderAccessRequest, + GetFolderAccessResponse + ) + +export interface IRecordAccessRequest { + recordUids?: Uint8Array[] | null +} + +export interface IAccessorInfo { + name?: string | null +} + +export interface IRecordAccess { + data?: Folder.IRecordAccessData | null + accessorInfo?: IAccessorInfo | null +} + +export interface IRecordAccessResponse { + recordAccesses?: IRecordAccess[] | null + forbiddenRecords?: Uint8Array[] | null +} + +const RecordAccessRequest = { + create(properties?: IRecordAccessRequest): IRecordAccessRequest { + return { recordUids: properties?.recordUids ?? [] } + }, + encode(message: IRecordAccessRequest, writer?: Writer): Writer { + const w = writer ?? Writer.create() + for (const uid of message.recordUids ?? []) { + w.uint32(26).bytes(uid) + } + return w + }, +} + +function decodeAccessorInfo(reader: Reader, end: number): IAccessorInfo { + let name: string | null = null + while (reader.pos < end) { + const tag = reader.uint32() + if (tag === 10) { + name = reader.string() + } else { + reader.skipType(tag & 7) + } + } + return { name } +} + +function decodeRecordAccess(reader: Reader, end: number): IRecordAccess | null { + let data: Folder.IRecordAccessData | null = null + let accessorInfo: IAccessorInfo | null = null + + while (reader.pos < end) { + const tag = reader.uint32() + switch (tag) { + case 10: + data = Folder.RecordAccessData.decode(reader, reader.uint32()) + break + case 18: { + const length = reader.uint32() + const infoEnd = reader.pos + length + accessorInfo = decodeAccessorInfo(reader, infoEnd) + reader.pos = infoEnd + break + } + default: + reader.skipType(tag & 7) + } + } + + return data ? { data, accessorInfo } : null +} + +const RecordAccessResponse = { + decode(reader: Uint8Array): IRecordAccessResponse { + const r = Reader.create(reader) + const response: IRecordAccessResponse = { recordAccesses: [], forbiddenRecords: [] } + + while (r.pos < r.len) { + const tag = r.uint32() + if (tag === 10) { + const length = r.uint32() + const end = r.pos + length + const item = decodeRecordAccess(r, end) + if (item) response.recordAccesses!.push(item) + r.pos = end + } else if (tag === 18) { + response.forbiddenRecords!.push(r.bytes()) + } else { + r.skipType(tag & 7) + } + } + + return response + }, +} + +export const getRecordAccessMessage = ( + recordUids: string[] +): RestMessage => + createMessage( + { recordUids: recordUids.map(normal64Bytes) }, + 'vault/records/v3/details/access', + RecordAccessRequest, + RecordAccessResponse + ) From d94cea3335c4c33eab85d170fe38edf532f241dd Mon Sep 17 00:00:00 2001 From: ukumar-ks Date: Wed, 1 Jul 2026 11:24:00 +0530 Subject: [PATCH 06/12] nsf types --- .../src/nestedShareFolders/nsfRecordTypes.ts | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 KeeperSdk/src/nestedShareFolders/nsfRecordTypes.ts diff --git a/KeeperSdk/src/nestedShareFolders/nsfRecordTypes.ts b/KeeperSdk/src/nestedShareFolders/nsfRecordTypes.ts new file mode 100644 index 00000000..751196cb --- /dev/null +++ b/KeeperSdk/src/nestedShareFolders/nsfRecordTypes.ts @@ -0,0 +1,82 @@ +import type { Auth, Records } from '@keeper-security/keeperapi' +import { recordTypesGetMessage } from '@keeper-security/keeperapi' +import { KeeperSdkError, ResultCodes, extractErrorMessage } from '../utils' +import { NSF_LEGACY_RECORD_TYPES } from './nsfConstants' + +type RecordTypeSchema = { + id?: string + fields?: unknown[] +} + +let cachedAuth: Auth | undefined +let cachedRecordTypes: Records.IRecordType[] | undefined + +function parseRecordTypeSchema(content: string): RecordTypeSchema | undefined { + try { + const parsed = JSON.parse(content) as Record + if (typeof parsed !== 'object' || parsed === null) return undefined + const id = typeof parsed.$id === 'string' ? parsed.$id : undefined + const fields = Array.isArray(parsed.fields) ? parsed.fields : undefined + return { id, fields } + } catch { + return undefined + } +} + +async function loadRecordTypes(auth: Auth): Promise { + if (cachedAuth === auth && cachedRecordTypes) return cachedRecordTypes + + try { + const response = await auth.executeRest( + recordTypesGetMessage({ + standard: true, + user: true, + enterprise: true, + pam: true, + }) + ) + cachedRecordTypes = response.recordTypes ?? [] + cachedAuth = auth + return cachedRecordTypes + } catch (err) { + throw new KeeperSdkError( + `Failed to load record types: ${extractErrorMessage(err)}`, + ResultCodes.NSF_ADD_FAILED + ) + } +} + +export async function getNsfRecordTypeFields( + auth: Auth, + recordType: string +): Promise { + const normalized = recordType.trim() + if (!normalized || NSF_LEGACY_RECORD_TYPES.has(normalized)) return undefined + + const types = await loadRecordTypes(auth) + for (const entry of types) { + if (!entry.content) continue + const schema = parseRecordTypeSchema(entry.content) + if (schema?.id === normalized && schema.fields?.length) { + return schema.fields + } + } + return undefined +} + +export async function validateNsfRecordType( + auth: Auth, + recordType: string, + resultCode: string = ResultCodes.NSF_ADD_FAILED +): Promise { + const normalized = recordType.trim() + if (!normalized) { + throw new KeeperSdkError('Record type is required.', resultCode) + } + if (NSF_LEGACY_RECORD_TYPES.has(normalized)) return + + const fields = await getNsfRecordTypeFields(auth, normalized) + if (!fields?.length) { + throw new KeeperSdkError(`Record type "${normalized}" cannot be found.`, resultCode) + } +} From 6db7cacdf342b1f75a813a7938423f171ecb1c2a Mon Sep 17 00:00:00 2001 From: ukumar-ks Date: Wed, 1 Jul 2026 12:17:27 +0530 Subject: [PATCH 07/12] prompt commad update --- .../sdk_example/src/utils/promptCommands.ts | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 examples/sdk_example/src/utils/promptCommands.ts diff --git a/examples/sdk_example/src/utils/promptCommands.ts b/examples/sdk_example/src/utils/promptCommands.ts new file mode 100644 index 00000000..7650731c --- /dev/null +++ b/examples/sdk_example/src/utils/promptCommands.ts @@ -0,0 +1,79 @@ +import { logger, prompt } from '@keeper-security/keeper-sdk-javascript' + +export const YES_NO_PROMPT_SUFFIX = '[y/n]: ' + +const YES_ANSWERS = new Set(['y', 'yes']) +const NO_ANSWERS = new Set(['n', 'no']) + +export function yesNoPrompt(label: string): string { + return `${label} ${YES_NO_PROMPT_SUFFIX}` +} + +export function isYes(answer: string): boolean { + const normalized = answer.trim().toLowerCase() + return YES_ANSWERS.has(normalized) +} + +function parseYesNo(answer: string): boolean | null | undefined { + const normalized = answer.trim().toLowerCase() + if (normalized === '') return undefined + if (YES_ANSWERS.has(normalized)) return true + if (NO_ANSWERS.has(normalized)) return false + return null +} + +export async function promptYesNo(question: string, defaultValue = false): Promise { + while (true) { + const answer = await prompt(question) + const parsed = parseYesNo(answer) + if (parsed === null) { + logger.warn('Invalid input. Enter y, yes, n, or no.') + continue + } + if (parsed === undefined) return defaultValue + return parsed + } +} + +export async function promptChoice( + question: string, + choices: Readonly>, + defaultKey = '' +): Promise { + while (true) { + const raw = await prompt(question) + const key = raw.trim().toLowerCase() + const lookupKey = key === '' ? defaultKey : key + if (lookupKey in choices) { + return choices[lookupKey] + } + + const validKeys = [...new Set(Object.keys(choices).filter((k) => k !== ''))].join(', ') + const defaultHint = defaultKey in choices ? ` (default: ${defaultKey || 'Enter'})` : '' + logger.warn(`Invalid input "${raw.trim()}". Valid choices: ${validKeys}${defaultHint}.`) + } +} + +export async function promptRequired(question: string, message = 'Value is required.'): Promise { + while (true) { + const answer = (await prompt(question)).trim() + if (answer) return answer + logger.warn(message) + } +} + +export async function promptOptional(question: string): Promise { + return (await prompt(question)).trim() +} + +export async function promptRequiredList( + question: string, + parse: (input: string) => string[], + message = 'At least one value is required.' +): Promise { + while (true) { + const items = parse((await prompt(question)).trim()) + if (items.length > 0) return items + logger.warn(message) + } +} From 87568b30ede67772acd09158d6b1c472fa820d7e Mon Sep 17 00:00:00 2001 From: ukumar-ks Date: Wed, 1 Jul 2026 15:54:48 +0530 Subject: [PATCH 08/12] proto script updated --- keeperapi/scripts/generate-proto.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keeperapi/scripts/generate-proto.mjs b/keeperapi/scripts/generate-proto.mjs index 321a7d08..1ea540b0 100644 --- a/keeperapi/scripts/generate-proto.mjs +++ b/keeperapi/scripts/generate-proto.mjs @@ -14,9 +14,11 @@ const PROTO_FILES = [ 'breachwatch.proto', 'client.proto', 'externalservice.proto', + 'folder_access.proto', 'folder.proto', 'push.proto', 'record.proto', + 'record_details.proto', 'servicelogger.proto', 'ssocloud.proto', 'token.proto', From 0271cf20170f6ef1e1b025c9dd8c56b7b1c753db Mon Sep 17 00:00:00 2001 From: ukumar-ks Date: Wed, 1 Jul 2026 17:37:01 +0530 Subject: [PATCH 09/12] Added folder access and record details protobuf files (#193) --- keeperapi/src/proto.d.ts | 38017 +++++++++++++++++--------------- keeperapi/src/proto/PAM.js | 2 + keeperapi/src/proto/Remove.js | 1251 +- keeperapi/src/proto/index.js | 5 +- keeperapi/src/proto/keeper.js | 520 + keeperapi/src/proto/record.js | 1948 ++ 6 files changed, 23468 insertions(+), 18275 deletions(-) create mode 100644 keeperapi/src/proto/keeper.js diff --git a/keeperapi/src/proto.d.ts b/keeperapi/src/proto.d.ts index 3767a683..754551d7 100644 --- a/keeperapi/src/proto.d.ts +++ b/keeperapi/src/proto.d.ts @@ -60051,13258 +60051,14578 @@ export namespace ExternalService { } } -/** Namespace Push. */ -export namespace Push { +/** Namespace folder. */ +export namespace folder { - /** Properties of a UserRegistrationRequest. */ - interface IUserRegistrationRequest { + /** Namespace v3. */ + namespace v3 { - /** UserRegistrationRequest messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + /** RPC service for folder operations. */ + class FolderService extends $protobuf.rpc.Service { - /** UserRegistrationRequest userId */ - userId?: (number|null); + /** + * Constructs a new FolderService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** UserRegistrationRequest enterpriseId */ - enterpriseId?: (number|null); - } + /** + * Creates new FolderService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FolderService; - /** Represents a UserRegistrationRequest. */ - class UserRegistrationRequest implements IUserRegistrationRequest { + /** + * Retrieve users and teams with access to specified folders. + * Requires can_change_user_permissions permission or Share Admin/MC Admin privileges. + * @param request GetFolderAccessRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GetFolderAccessResponse + */ + public getFolderAccess(request: folder.v3.IGetFolderAccessRequest, callback: folder.v3.FolderService.GetFolderAccessCallback): void; - /** - * Constructs a new UserRegistrationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: Push.IUserRegistrationRequest); + /** + * Retrieve users and teams with access to specified folders. + * Requires can_change_user_permissions permission or Share Admin/MC Admin privileges. + * @param request GetFolderAccessRequest message or plain object + * @returns Promise + */ + public getFolderAccess(request: folder.v3.IGetFolderAccessRequest): Promise; + } - /** UserRegistrationRequest messageSessionUid. */ - public messageSessionUid: Uint8Array; + namespace FolderService { - /** UserRegistrationRequest userId. */ - public userId: number; + /** + * Callback as used by {@link folder.v3.FolderService#getFolderAccess}. + * @param error Error, if any + * @param [response] GetFolderAccessResponse + */ + type GetFolderAccessCallback = (error: (Error|null), response?: folder.v3.GetFolderAccessResponse) => void; + } - /** UserRegistrationRequest enterpriseId. */ - public enterpriseId: number; + /** Properties of a GetFolderAccessRequest. */ + interface IGetFolderAccessRequest { - /** - * Creates a new UserRegistrationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UserRegistrationRequest instance - */ - public static create(properties?: Push.IUserRegistrationRequest): Push.UserRegistrationRequest; + /** List of folder UIDs to query (max: 100) */ + folderUid?: (Uint8Array[]|null); - /** - * Encodes the specified UserRegistrationRequest message. Does not implicitly {@link Push.UserRegistrationRequest.verify|verify} messages. - * @param message UserRegistrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Push.IUserRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Continuation token for pagination. + * Contains the last_modified timestamp from the previous page. + * Omit for the first page. + */ + continuationToken?: (folder.v3.IContinuationToken|null); - /** - * Decodes a UserRegistrationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserRegistrationRequest - * @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): Push.UserRegistrationRequest; + /** + * Maximum number of accessors to return per page. + * Default: 100, Max: 1000 + */ + pageSize?: (number|null); + } /** - * Creates a UserRegistrationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UserRegistrationRequest + * Request to retrieve folder accessors (users and teams with access to folders). + * Supports cursor-based pagination using last_modified timestamps. */ - public static fromObject(object: { [k: string]: any }): Push.UserRegistrationRequest; + class GetFolderAccessRequest implements IGetFolderAccessRequest { - /** - * Creates a plain object from a UserRegistrationRequest message. Also converts values to other types if specified. - * @param message UserRegistrationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Push.UserRegistrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new GetFolderAccessRequest. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.IGetFolderAccessRequest); - /** - * Converts this UserRegistrationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** List of folder UIDs to query (max: 100) */ + public folderUid: Uint8Array[]; - /** - * Gets the default type url for UserRegistrationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Continuation token for pagination. + * Contains the last_modified timestamp from the previous page. + * Omit for the first page. + */ + public continuationToken?: (folder.v3.IContinuationToken|null); - /** MessageType enum. */ - enum MessageType { - UNKNOWN = 0, - DNA = 1, - SSO = 2, - CHAT = 3, - USER = 4, - ENTERPRISE = 5, - KEEPER = 6, - SESSION = 7, - DEVICE = 8, - TOTP = 9 - } + /** + * Maximum number of accessors to return per page. + * Default: 100, Max: 1000 + */ + public pageSize?: (number|null); - /** Properties of a KAToPushServerRequest. */ - interface IKAToPushServerRequest { + /** + * Creates a new GetFolderAccessRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetFolderAccessRequest instance + */ + public static create(properties?: folder.v3.IGetFolderAccessRequest): folder.v3.GetFolderAccessRequest; - /** KAToPushServerRequest messageType */ - messageType?: (Push.MessageType|null); + /** + * Encodes the specified GetFolderAccessRequest message. Does not implicitly {@link folder.v3.GetFolderAccessRequest.verify|verify} messages. + * @param message GetFolderAccessRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.IGetFolderAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** KAToPushServerRequest message */ - message?: (string|null); + /** + * Decodes a GetFolderAccessRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetFolderAccessRequest + * @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): folder.v3.GetFolderAccessRequest; - /** KAToPushServerRequest messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + /** + * Creates a GetFolderAccessRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetFolderAccessRequest + */ + public static fromObject(object: { [k: string]: any }): folder.v3.GetFolderAccessRequest; - /** KAToPushServerRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array[]|null); + /** + * Creates a plain object from a GetFolderAccessRequest message. Also converts values to other types if specified. + * @param message GetFolderAccessRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.GetFolderAccessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** KAToPushServerRequest userId */ - userId?: (number[]|null); + /** + * Converts this GetFolderAccessRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** KAToPushServerRequest enterpriseId */ - enterpriseId?: (number[]|null); - } + /** + * Gets the default type url for GetFolderAccessRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Represents a KAToPushServerRequest. */ - class KAToPushServerRequest implements IKAToPushServerRequest { + /** Properties of a GetFolderAccessResponse. */ + interface IGetFolderAccessResponse { - /** - * Constructs a new KAToPushServerRequest. - * @param [properties] Properties to set - */ - constructor(properties?: Push.IKAToPushServerRequest); + /** Per-folder results (either success with accessors or error) */ + folderAccessResults?: (folder.v3.IGetFolderAccessResult[]|null); - /** KAToPushServerRequest messageType. */ - public messageType: Push.MessageType; + /** Continuation token for the next page (only present if hasMore is true) */ + continuationToken?: (folder.v3.IContinuationToken|null); - /** KAToPushServerRequest message. */ - public message: string; + /** True if more results exist beyond this page */ + hasMore?: (boolean|null); + } - /** KAToPushServerRequest messageSessionUid. */ - public messageSessionUid: Uint8Array; + /** Response containing folder accessors with pagination support. */ + class GetFolderAccessResponse implements IGetFolderAccessResponse { - /** KAToPushServerRequest encryptedDeviceToken. */ - public encryptedDeviceToken: Uint8Array[]; + /** + * Constructs a new GetFolderAccessResponse. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.IGetFolderAccessResponse); - /** KAToPushServerRequest userId. */ - public userId: number[]; + /** Per-folder results (either success with accessors or error) */ + public folderAccessResults: folder.v3.IGetFolderAccessResult[]; - /** KAToPushServerRequest enterpriseId. */ - public enterpriseId: number[]; + /** Continuation token for the next page (only present if hasMore is true) */ + public continuationToken?: (folder.v3.IContinuationToken|null); - /** - * Creates a new KAToPushServerRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns KAToPushServerRequest instance - */ - public static create(properties?: Push.IKAToPushServerRequest): Push.KAToPushServerRequest; + /** True if more results exist beyond this page */ + public hasMore: boolean; - /** - * Encodes the specified KAToPushServerRequest message. Does not implicitly {@link Push.KAToPushServerRequest.verify|verify} messages. - * @param message KAToPushServerRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Push.IKAToPushServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new GetFolderAccessResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetFolderAccessResponse instance + */ + public static create(properties?: folder.v3.IGetFolderAccessResponse): folder.v3.GetFolderAccessResponse; - /** - * Decodes a KAToPushServerRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KAToPushServerRequest - * @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): Push.KAToPushServerRequest; + /** + * Encodes the specified GetFolderAccessResponse message. Does not implicitly {@link folder.v3.GetFolderAccessResponse.verify|verify} messages. + * @param message GetFolderAccessResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.IGetFolderAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a KAToPushServerRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KAToPushServerRequest - */ - public static fromObject(object: { [k: string]: any }): Push.KAToPushServerRequest; + /** + * Decodes a GetFolderAccessResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetFolderAccessResponse + * @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): folder.v3.GetFolderAccessResponse; - /** - * Creates a plain object from a KAToPushServerRequest message. Also converts values to other types if specified. - * @param message KAToPushServerRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Push.KAToPushServerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a GetFolderAccessResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetFolderAccessResponse + */ + public static fromObject(object: { [k: string]: any }): folder.v3.GetFolderAccessResponse; - /** - * Converts this KAToPushServerRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a GetFolderAccessResponse message. Also converts values to other types if specified. + * @param message GetFolderAccessResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.GetFolderAccessResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetFolderAccessResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetFolderAccessResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ContinuationToken. */ + interface IContinuationToken { + + /** Unix timestamp in milliseconds of the last processed accessor */ + lastModified?: (number|null); + } /** - * Gets the default type url for KAToPushServerRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Cursor for cursor-based pagination. + * Contains the timestamp of the last processed item. */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a WssConnectionRequest. */ - interface IWssConnectionRequest { + class ContinuationToken implements IContinuationToken { - /** WssConnectionRequest messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + /** + * Constructs a new ContinuationToken. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.IContinuationToken); - /** WssConnectionRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + /** Unix timestamp in milliseconds of the last processed accessor */ + public lastModified: number; - /** WssConnectionRequest deviceTimeStamp */ - deviceTimeStamp?: (number|null); - } + /** + * Creates a new ContinuationToken instance using the specified properties. + * @param [properties] Properties to set + * @returns ContinuationToken instance + */ + public static create(properties?: folder.v3.IContinuationToken): folder.v3.ContinuationToken; - /** Represents a WssConnectionRequest. */ - class WssConnectionRequest implements IWssConnectionRequest { + /** + * Encodes the specified ContinuationToken message. Does not implicitly {@link folder.v3.ContinuationToken.verify|verify} messages. + * @param message ContinuationToken message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.IContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new WssConnectionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: Push.IWssConnectionRequest); + /** + * Decodes a ContinuationToken message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContinuationToken + * @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): folder.v3.ContinuationToken; - /** WssConnectionRequest messageSessionUid. */ - public messageSessionUid: Uint8Array; + /** + * Creates a ContinuationToken message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ContinuationToken + */ + public static fromObject(object: { [k: string]: any }): folder.v3.ContinuationToken; - /** WssConnectionRequest encryptedDeviceToken. */ - public encryptedDeviceToken: Uint8Array; + /** + * Creates a plain object from a ContinuationToken message. Also converts values to other types if specified. + * @param message ContinuationToken + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.ContinuationToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** WssConnectionRequest deviceTimeStamp. */ - public deviceTimeStamp: number; + /** + * Converts this ContinuationToken to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new WssConnectionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WssConnectionRequest instance - */ - public static create(properties?: Push.IWssConnectionRequest): Push.WssConnectionRequest; + /** + * Gets the default type url for ContinuationToken + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified WssConnectionRequest message. Does not implicitly {@link Push.WssConnectionRequest.verify|verify} messages. - * @param message WssConnectionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Push.IWssConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a GetFolderAccessResult. */ + interface IGetFolderAccessResult { - /** - * Decodes a WssConnectionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WssConnectionRequest - * @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): Push.WssConnectionRequest; + /** Folder UID this result applies to */ + folderUid?: (Uint8Array|null); - /** - * Creates a WssConnectionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WssConnectionRequest - */ - public static fromObject(object: { [k: string]: any }): Push.WssConnectionRequest; + /** List of users/teams with access to this folder (populated on success) */ + accessors?: (Folder.IFolderAccessData[]|null); - /** - * Creates a plain object from a WssConnectionRequest message. Also converts values to other types if specified. - * @param message WssConnectionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Push.WssConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Error information (populated on failure, mutually exclusive with accessors) */ + error?: (folder.v3.IFolderAccessError|null); + } /** - * Converts this WssConnectionRequest to JSON. - * @returns JSON object + * Result for a single folder. + * Contains either a list of accessors (success) or an error (failure). */ - public toJSON(): { [k: string]: any }; + class GetFolderAccessResult implements IGetFolderAccessResult { - /** - * Gets the default type url for WssConnectionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new GetFolderAccessResult. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.IGetFolderAccessResult); - /** Properties of a WssClientResponse. */ - interface IWssClientResponse { + /** Folder UID this result applies to */ + public folderUid: Uint8Array; - /** WssClientResponse messageType */ - messageType?: (Push.MessageType|null); + /** List of users/teams with access to this folder (populated on success) */ + public accessors: Folder.IFolderAccessData[]; - /** WssClientResponse message */ - message?: (string|null); - } + /** Error information (populated on failure, mutually exclusive with accessors) */ + public error?: (folder.v3.IFolderAccessError|null); - /** Represents a WssClientResponse. */ - class WssClientResponse implements IWssClientResponse { + /** + * Creates a new GetFolderAccessResult instance using the specified properties. + * @param [properties] Properties to set + * @returns GetFolderAccessResult instance + */ + public static create(properties?: folder.v3.IGetFolderAccessResult): folder.v3.GetFolderAccessResult; - /** - * Constructs a new WssClientResponse. - * @param [properties] Properties to set - */ - constructor(properties?: Push.IWssClientResponse); + /** + * Encodes the specified GetFolderAccessResult message. Does not implicitly {@link folder.v3.GetFolderAccessResult.verify|verify} messages. + * @param message GetFolderAccessResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.IGetFolderAccessResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** WssClientResponse messageType. */ - public messageType: Push.MessageType; + /** + * Decodes a GetFolderAccessResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetFolderAccessResult + * @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): folder.v3.GetFolderAccessResult; - /** WssClientResponse message. */ - public message: string; + /** + * Creates a GetFolderAccessResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetFolderAccessResult + */ + public static fromObject(object: { [k: string]: any }): folder.v3.GetFolderAccessResult; - /** - * Creates a new WssClientResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WssClientResponse instance - */ - public static create(properties?: Push.IWssClientResponse): Push.WssClientResponse; + /** + * Creates a plain object from a GetFolderAccessResult message. Also converts values to other types if specified. + * @param message GetFolderAccessResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.GetFolderAccessResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified WssClientResponse message. Does not implicitly {@link Push.WssClientResponse.verify|verify} messages. - * @param message WssClientResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Push.IWssClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this GetFolderAccessResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a WssClientResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WssClientResponse - * @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): Push.WssClientResponse; + /** + * Gets the default type url for GetFolderAccessResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a WssClientResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WssClientResponse - */ - public static fromObject(object: { [k: string]: any }): Push.WssClientResponse; + /** Properties of a FolderAccessError. */ + interface IFolderAccessError { - /** - * Creates a plain object from a WssClientResponse message. Also converts values to other types if specified. - * @param message WssClientResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Push.WssClientResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Status code (e.g., NOT_FOUND, ACCESS_DENIED) */ + status?: (Folder.FolderModifyStatus|null); - /** - * Converts this WssClientResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Human-readable error message */ + message?: (string|null); + } - /** - * Gets the default type url for WssClientResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Error information for a folder that couldn't be processed. */ + class FolderAccessError implements IFolderAccessError { - /** Properties of a PushServerDeviceRegistrationRequest. */ - interface IPushServerDeviceRegistrationRequest { + /** + * Constructs a new FolderAccessError. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.IFolderAccessError); - /** PushServerDeviceRegistrationRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + /** Status code (e.g., NOT_FOUND, ACCESS_DENIED) */ + public status: Folder.FolderModifyStatus; - /** PushServerDeviceRegistrationRequest pushToken */ - pushToken?: (string|null); + /** Human-readable error message */ + public message: string; - /** PushServerDeviceRegistrationRequest mobilePushPlatform */ - mobilePushPlatform?: (string|null); + /** + * Creates a new FolderAccessError instance using the specified properties. + * @param [properties] Properties to set + * @returns FolderAccessError instance + */ + public static create(properties?: folder.v3.IFolderAccessError): folder.v3.FolderAccessError; - /** PushServerDeviceRegistrationRequest transmissionKey */ - transmissionKey?: (Uint8Array|null); - } + /** + * Encodes the specified FolderAccessError message. Does not implicitly {@link folder.v3.FolderAccessError.verify|verify} messages. + * @param message FolderAccessError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.IFolderAccessError, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a PushServerDeviceRegistrationRequest. */ - class PushServerDeviceRegistrationRequest implements IPushServerDeviceRegistrationRequest { + /** + * Decodes a FolderAccessError message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FolderAccessError + * @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): folder.v3.FolderAccessError; - /** - * Constructs a new PushServerDeviceRegistrationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: Push.IPushServerDeviceRegistrationRequest); + /** + * Creates a FolderAccessError message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FolderAccessError + */ + public static fromObject(object: { [k: string]: any }): folder.v3.FolderAccessError; - /** PushServerDeviceRegistrationRequest encryptedDeviceToken. */ - public encryptedDeviceToken: Uint8Array; + /** + * Creates a plain object from a FolderAccessError message. Also converts values to other types if specified. + * @param message FolderAccessError + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.FolderAccessError, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** PushServerDeviceRegistrationRequest pushToken. */ - public pushToken: string; + /** + * Converts this FolderAccessError to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** PushServerDeviceRegistrationRequest mobilePushPlatform. */ - public mobilePushPlatform: string; + /** + * Gets the default type url for FolderAccessError + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Namespace remove. */ + namespace remove { + + /** Represents a RemoveService */ + class RemoveService extends $protobuf.rpc.Service { + + /** + * Constructs a new RemoveService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new RemoveService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RemoveService; + + /** + * Preview or execute record removal from folders. + * PREVIEW: Computes impact metrics and returns a signed confirmation token. + * CONFIRM: Validates token and executes the removal operation. + * @param request RemoveRecordRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RemoveResponse + */ + public removeRecord(request: folder.v3.remove.IRemoveRecordRequest, callback: folder.v3.remove.RemoveService.RemoveRecordCallback): void; + + /** + * Preview or execute record removal from folders. + * PREVIEW: Computes impact metrics and returns a signed confirmation token. + * CONFIRM: Validates token and executes the removal operation. + * @param request RemoveRecordRequest message or plain object + * @returns Promise + */ + public removeRecord(request: folder.v3.remove.IRemoveRecordRequest): Promise; + + /** + * Preview or execute folder deletion. + * PREVIEW: Computes impact metrics and returns a signed confirmation token. + * CONFIRM: Validates token and executes the deletion operation. + * @param request RemoveFolderRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RemoveResponse + */ + public removeFolder(request: folder.v3.remove.IRemoveFolderRequest, callback: folder.v3.remove.RemoveService.RemoveFolderCallback): void; + + /** + * Preview or execute folder deletion. + * PREVIEW: Computes impact metrics and returns a signed confirmation token. + * CONFIRM: Validates token and executes the deletion operation. + * @param request RemoveFolderRequest message or plain object + * @returns Promise + */ + public removeFolder(request: folder.v3.remove.IRemoveFolderRequest): Promise; + + /** + * Restore records and/or folders from the caller's trashcan into a target folder (KA-8144). + * Each input item is validated independently; failures are reported per-item via + * TrashcanRestoreResponse.results — a failed item does not poison the batch. + * @param request TrashcanRestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TrashcanRestoreResponse + */ + public trashcanRestore(request: folder.v3.remove.ITrashcanRestoreRequest, callback: folder.v3.remove.RemoveService.TrashcanRestoreCallback): void; + + /** + * Restore records and/or folders from the caller's trashcan into a target folder (KA-8144). + * Each input item is validated independently; failures are reported per-item via + * TrashcanRestoreResponse.results — a failed item does not poison the batch. + * @param request TrashcanRestoreRequest message or plain object + * @returns Promise + */ + public trashcanRestore(request: folder.v3.remove.ITrashcanRestoreRequest): Promise; + } + + namespace RemoveService { + + /** + * Callback as used by {@link folder.v3.remove.RemoveService#removeRecord}. + * @param error Error, if any + * @param [response] RemoveResponse + */ + type RemoveRecordCallback = (error: (Error|null), response?: folder.v3.remove.RemoveResponse) => void; + + /** + * Callback as used by {@link folder.v3.remove.RemoveService#removeFolder}. + * @param error Error, if any + * @param [response] RemoveResponse + */ + type RemoveFolderCallback = (error: (Error|null), response?: folder.v3.remove.RemoveResponse) => void; + + /** + * Callback as used by {@link folder.v3.remove.RemoveService#trashcanRestore}. + * @param error Error, if any + * @param [response] TrashcanRestoreResponse + */ + type TrashcanRestoreCallback = (error: (Error|null), response?: folder.v3.remove.TrashcanRestoreResponse) => void; + } + + /** RemoveAction enum. */ + enum RemoveAction { + REMOVE_ACTION_PREVIEW = 0, + REMOVE_ACTION_CONFIRM = 1 + } + + /** RecordOperationType enum. */ + enum RecordOperationType { + RECORD_OPERATION_UNKNOWN = 0, + UNLINK_FROM_FOLDER = 1, + MOVE_TO_FOLDER_TRASH = 2, + MOVE_TO_OWNER_TRASH = 3 + } + + /** FolderOperationType enum. */ + enum FolderOperationType { + FOLDER_OPERATION_UNKNOWN = 0, + FOLDER_MOVE_TO_FOLDER_TRASH = 1, + FOLDER_MOVE_TO_OWNER_TRASH = 2, + FOLDER_DELETE_PERMANENT = 3 + } + + /** RemoveErrorCode enum. */ + enum RemoveErrorCode { + REMOVE_ERROR_UNKNOWN = 0, + REMOVE_ERROR_NOT_FOUND = 1, + REMOVE_ERROR_ACCESS_DENIED = 2, + REMOVE_ERROR_TRASHCAN_FOLDER = 3, + REMOVE_ERROR_ROOT_FOLDER = 4, + REMOVE_ERROR_DESCENDANT_DENIED = 5 + } + + /** RemoveStatus enum. */ + enum RemoveStatus { + REMOVE_STATUS_UNKNOWN = 0, + REMOVE_STATUS_SUCCESS = 1, + REMOVE_STATUS_STALE_PREVIEW = 2, + REMOVE_STATUS_TOKEN_EXPIRED = 3, + REMOVE_STATUS_TOKEN_INVALID = 4, + REMOVE_STATUS_ACCESS_DENIED = 5, + REMOVE_STATUS_VALIDATION_ERROR = 6 + } + + /** Properties of a RecordRemoval. */ + interface IRecordRemoval { + + /** RecordRemoval folderUid */ + folderUid?: (Uint8Array|null); + + /** RecordRemoval recordUid */ + recordUid?: (Uint8Array|null); + + /** RecordRemoval operationType */ + operationType?: (folder.v3.remove.RecordOperationType|null); + } + + /** Represents a RecordRemoval. */ + class RecordRemoval implements IRecordRemoval { + + /** + * Constructs a new RecordRemoval. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.remove.IRecordRemoval); + + /** RecordRemoval folderUid. */ + public folderUid: Uint8Array; + + /** RecordRemoval recordUid. */ + public recordUid: Uint8Array; + + /** RecordRemoval operationType. */ + public operationType: folder.v3.remove.RecordOperationType; + + /** + * Creates a new RecordRemoval instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordRemoval instance + */ + public static create(properties?: folder.v3.remove.IRecordRemoval): folder.v3.remove.RecordRemoval; + + /** + * Encodes the specified RecordRemoval message. Does not implicitly {@link folder.v3.remove.RecordRemoval.verify|verify} messages. + * @param message RecordRemoval message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.remove.IRecordRemoval, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecordRemoval message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordRemoval + * @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): folder.v3.remove.RecordRemoval; + + /** + * Creates a RecordRemoval message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordRemoval + */ + public static fromObject(object: { [k: string]: any }): folder.v3.remove.RecordRemoval; + + /** + * Creates a plain object from a RecordRemoval message. Also converts values to other types if specified. + * @param message RecordRemoval + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.remove.RecordRemoval, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecordRemoval to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecordRemoval + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FolderRemoval. */ + interface IFolderRemoval { + + /** FolderRemoval folderUid */ + folderUid?: (Uint8Array|null); + + /** FolderRemoval operationType */ + operationType?: (folder.v3.remove.FolderOperationType|null); + } + + /** Represents a FolderRemoval. */ + class FolderRemoval implements IFolderRemoval { + + /** + * Constructs a new FolderRemoval. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.remove.IFolderRemoval); + + /** FolderRemoval folderUid. */ + public folderUid: Uint8Array; + + /** FolderRemoval operationType. */ + public operationType: folder.v3.remove.FolderOperationType; + + /** + * Creates a new FolderRemoval instance using the specified properties. + * @param [properties] Properties to set + * @returns FolderRemoval instance + */ + public static create(properties?: folder.v3.remove.IFolderRemoval): folder.v3.remove.FolderRemoval; + + /** + * Encodes the specified FolderRemoval message. Does not implicitly {@link folder.v3.remove.FolderRemoval.verify|verify} messages. + * @param message FolderRemoval message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.remove.IFolderRemoval, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FolderRemoval message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FolderRemoval + * @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): folder.v3.remove.FolderRemoval; + + /** + * Creates a FolderRemoval message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FolderRemoval + */ + public static fromObject(object: { [k: string]: any }): folder.v3.remove.FolderRemoval; + + /** + * Creates a plain object from a FolderRemoval message. Also converts values to other types if specified. + * @param message FolderRemoval + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.remove.FolderRemoval, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FolderRemoval to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FolderRemoval + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveRecordRequest. */ + interface IRemoveRecordRequest { + + /** RemoveRecordRequest action */ + action?: (folder.v3.remove.RemoveAction|null); + + /** RemoveRecordRequest records */ + records?: (folder.v3.remove.IRecordRemoval[]|null); + + /** RemoveRecordRequest confirmationToken */ + confirmationToken?: (Uint8Array|null); + } + + /** Represents a RemoveRecordRequest. */ + class RemoveRecordRequest implements IRemoveRecordRequest { + + /** + * Constructs a new RemoveRecordRequest. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.remove.IRemoveRecordRequest); + + /** RemoveRecordRequest action. */ + public action: folder.v3.remove.RemoveAction; + + /** RemoveRecordRequest records. */ + public records: folder.v3.remove.IRecordRemoval[]; + + /** RemoveRecordRequest confirmationToken. */ + public confirmationToken: Uint8Array; + + /** + * Creates a new RemoveRecordRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveRecordRequest instance + */ + public static create(properties?: folder.v3.remove.IRemoveRecordRequest): folder.v3.remove.RemoveRecordRequest; + + /** + * Encodes the specified RemoveRecordRequest message. Does not implicitly {@link folder.v3.remove.RemoveRecordRequest.verify|verify} messages. + * @param message RemoveRecordRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.remove.IRemoveRecordRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveRecordRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveRecordRequest + * @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): folder.v3.remove.RemoveRecordRequest; + + /** + * Creates a RemoveRecordRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveRecordRequest + */ + public static fromObject(object: { [k: string]: any }): folder.v3.remove.RemoveRecordRequest; + + /** + * Creates a plain object from a RemoveRecordRequest message. Also converts values to other types if specified. + * @param message RemoveRecordRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.remove.RemoveRecordRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveRecordRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveRecordRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveFolderRequest. */ + interface IRemoveFolderRequest { + + /** RemoveFolderRequest action */ + action?: (folder.v3.remove.RemoveAction|null); + + /** RemoveFolderRequest folders */ + folders?: (folder.v3.remove.IFolderRemoval[]|null); + + /** RemoveFolderRequest confirmationToken */ + confirmationToken?: (Uint8Array|null); + } + + /** Represents a RemoveFolderRequest. */ + class RemoveFolderRequest implements IRemoveFolderRequest { + + /** + * Constructs a new RemoveFolderRequest. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.remove.IRemoveFolderRequest); + + /** RemoveFolderRequest action. */ + public action: folder.v3.remove.RemoveAction; + + /** RemoveFolderRequest folders. */ + public folders: folder.v3.remove.IFolderRemoval[]; + + /** RemoveFolderRequest confirmationToken. */ + public confirmationToken: Uint8Array; + + /** + * Creates a new RemoveFolderRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveFolderRequest instance + */ + public static create(properties?: folder.v3.remove.IRemoveFolderRequest): folder.v3.remove.RemoveFolderRequest; + + /** + * Encodes the specified RemoveFolderRequest message. Does not implicitly {@link folder.v3.remove.RemoveFolderRequest.verify|verify} messages. + * @param message RemoveFolderRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.remove.IRemoveFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveFolderRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveFolderRequest + * @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): folder.v3.remove.RemoveFolderRequest; + + /** + * Creates a RemoveFolderRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveFolderRequest + */ + public static fromObject(object: { [k: string]: any }): folder.v3.remove.RemoveFolderRequest; + + /** + * Creates a plain object from a RemoveFolderRequest message. Also converts values to other types if specified. + * @param message RemoveFolderRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.remove.RemoveFolderRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveFolderRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveFolderRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RemoveResponse. */ + interface IRemoveResponse { + + /** RemoveResponse confirmationToken */ + confirmationToken?: (Uint8Array|null); + + /** RemoveResponse tokenExpiresAt */ + tokenExpiresAt?: (number|null); + + /** RemoveResponse results */ + results?: (folder.v3.remove.IRemoveResult[]|null); + + /** RemoveResponse errorMessage */ + errorMessage?: (string|null); + } + + /** + * Response for remove operations (both record and folder). + * + * For PREVIEW: Contains confirmation_token and per-item results with impact. + * For CONFIRM: Contains per-item results with execution status. + */ + class RemoveResponse implements IRemoveResponse { + + /** + * Constructs a new RemoveResponse. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.remove.IRemoveResponse); + + /** RemoveResponse confirmationToken. */ + public confirmationToken: Uint8Array; + + /** RemoveResponse tokenExpiresAt. */ + public tokenExpiresAt: number; + + /** RemoveResponse results. */ + public results: folder.v3.remove.IRemoveResult[]; + + /** RemoveResponse errorMessage. */ + public errorMessage: string; + + /** + * Creates a new RemoveResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveResponse instance + */ + public static create(properties?: folder.v3.remove.IRemoveResponse): folder.v3.remove.RemoveResponse; + + /** + * Encodes the specified RemoveResponse message. Does not implicitly {@link folder.v3.remove.RemoveResponse.verify|verify} messages. + * @param message RemoveResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.remove.IRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveResponse + * @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): folder.v3.remove.RemoveResponse; + + /** + * Creates a RemoveResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveResponse + */ + public static fromObject(object: { [k: string]: any }): folder.v3.remove.RemoveResponse; - /** PushServerDeviceRegistrationRequest transmissionKey. */ - public transmissionKey: Uint8Array; + /** + * Creates a plain object from a RemoveResponse message. Also converts values to other types if specified. + * @param message RemoveResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.remove.RemoveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a new PushServerDeviceRegistrationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PushServerDeviceRegistrationRequest instance - */ - public static create(properties?: Push.IPushServerDeviceRegistrationRequest): Push.PushServerDeviceRegistrationRequest; + /** + * Converts this RemoveResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified PushServerDeviceRegistrationRequest message. Does not implicitly {@link Push.PushServerDeviceRegistrationRequest.verify|verify} messages. - * @param message PushServerDeviceRegistrationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Push.IPushServerDeviceRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for RemoveResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a PushServerDeviceRegistrationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PushServerDeviceRegistrationRequest - * @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): Push.PushServerDeviceRegistrationRequest; + /** Properties of a RemoveResult. */ + interface IRemoveResult { - /** - * Creates a PushServerDeviceRegistrationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PushServerDeviceRegistrationRequest - */ - public static fromObject(object: { [k: string]: any }): Push.PushServerDeviceRegistrationRequest; + /** RemoveResult itemUid */ + itemUid?: (Uint8Array|null); - /** - * Creates a plain object from a PushServerDeviceRegistrationRequest message. Also converts values to other types if specified. - * @param message PushServerDeviceRegistrationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Push.PushServerDeviceRegistrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** RemoveResult folderUid */ + folderUid?: (Uint8Array|null); - /** - * Converts this PushServerDeviceRegistrationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** RemoveResult status */ + status?: (folder.v3.remove.RemoveStatus|null); - /** - * Gets the default type url for PushServerDeviceRegistrationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** RemoveResult impact */ + impact?: (folder.v3.remove.IImpact|null); - /** Properties of a SnsMessage. */ - interface ISnsMessage { + /** RemoveResult error */ + error?: (folder.v3.remove.IItemError|null); + } - /** SnsMessage messageType */ - messageType?: (Push.MessageType|null); + /** Per-item result for a single record or folder. */ + class RemoveResult implements IRemoveResult { - /** SnsMessage message */ - message?: (Uint8Array|null); - } + /** + * Constructs a new RemoveResult. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.remove.IRemoveResult); - /** Represents a SnsMessage. */ - class SnsMessage implements ISnsMessage { + /** RemoveResult itemUid. */ + public itemUid: Uint8Array; - /** - * Constructs a new SnsMessage. - * @param [properties] Properties to set - */ - constructor(properties?: Push.ISnsMessage); + /** RemoveResult folderUid. */ + public folderUid: Uint8Array; - /** SnsMessage messageType. */ - public messageType: Push.MessageType; + /** RemoveResult status. */ + public status: folder.v3.remove.RemoveStatus; - /** SnsMessage message. */ - public message: Uint8Array; + /** RemoveResult impact. */ + public impact?: (folder.v3.remove.IImpact|null); + + /** RemoveResult error. */ + public error?: (folder.v3.remove.IItemError|null); + + /** + * Creates a new RemoveResult instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveResult instance + */ + public static create(properties?: folder.v3.remove.IRemoveResult): folder.v3.remove.RemoveResult; + + /** + * Encodes the specified RemoveResult message. Does not implicitly {@link folder.v3.remove.RemoveResult.verify|verify} messages. + * @param message RemoveResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.remove.IRemoveResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RemoveResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveResult + * @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): folder.v3.remove.RemoveResult; + + /** + * Creates a RemoveResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveResult + */ + public static fromObject(object: { [k: string]: any }): folder.v3.remove.RemoveResult; + + /** + * Creates a plain object from a RemoveResult message. Also converts values to other types if specified. + * @param message RemoveResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.remove.RemoveResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RemoveResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RemoveResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an Impact. */ + interface IImpact { + + /** Impact foldersCount */ + foldersCount?: (number|null); + + /** Impact recordsCount */ + recordsCount?: (number|null); + + /** Impact affectedUsersCount */ + affectedUsersCount?: (number|null); + + /** Impact affectedTeamsCount */ + affectedTeamsCount?: (number|null); + + /** Impact recordInfo */ + recordInfo?: (folder.v3.remove.IRecordInfo[]|null); + + /** Impact warnings */ + warnings?: (string[]|null); + } + + /** Impact metrics for a single item (record or folder tree). */ + class Impact implements IImpact { + + /** + * Constructs a new Impact. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.remove.IImpact); + + /** Impact foldersCount. */ + public foldersCount: number; + + /** Impact recordsCount. */ + public recordsCount: number; + + /** Impact affectedUsersCount. */ + public affectedUsersCount: number; + + /** Impact affectedTeamsCount. */ + public affectedTeamsCount: number; + + /** Impact recordInfo. */ + public recordInfo: folder.v3.remove.IRecordInfo[]; + + /** Impact warnings. */ + public warnings: string[]; + + /** + * Creates a new Impact instance using the specified properties. + * @param [properties] Properties to set + * @returns Impact instance + */ + public static create(properties?: folder.v3.remove.IImpact): folder.v3.remove.Impact; + + /** + * Encodes the specified Impact message. Does not implicitly {@link folder.v3.remove.Impact.verify|verify} messages. + * @param message Impact message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.remove.IImpact, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Impact message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Impact + * @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): folder.v3.remove.Impact; + + /** + * Creates an Impact message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Impact + */ + public static fromObject(object: { [k: string]: any }): folder.v3.remove.Impact; + + /** + * Creates a plain object from an Impact message. Also converts values to other types if specified. + * @param message Impact + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.remove.Impact, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a new SnsMessage instance using the specified properties. - * @param [properties] Properties to set - * @returns SnsMessage instance - */ - public static create(properties?: Push.ISnsMessage): Push.SnsMessage; + /** + * Converts this Impact to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified SnsMessage message. Does not implicitly {@link Push.SnsMessage.verify|verify} messages. - * @param message SnsMessage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Push.ISnsMessage, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for Impact + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a SnsMessage message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SnsMessage - * @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): Push.SnsMessage; + /** Properties of a RecordInfo. */ + interface IRecordInfo { - /** - * Creates a SnsMessage message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SnsMessage - */ - public static fromObject(object: { [k: string]: any }): Push.SnsMessage; + /** RecordInfo recordUid */ + recordUid?: (Uint8Array|null); - /** - * Creates a plain object from a SnsMessage message. Also converts values to other types if specified. - * @param message SnsMessage - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Push.SnsMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** RecordInfo locationsCount */ + locationsCount?: (number|null); + } - /** - * Converts this SnsMessage to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Additional info for a record being removed. + * Only populated for MOVE_TO_OWNER_TRASH to show "also in X other folders". + */ + class RecordInfo implements IRecordInfo { - /** - * Gets the default type url for SnsMessage - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } -} + /** + * Constructs a new RecordInfo. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.remove.IRecordInfo); -/** Namespace ServiceLogger. */ -export namespace ServiceLogger { + /** RecordInfo recordUid. */ + public recordUid: Uint8Array; - /** Properties of an IdRange. */ - interface IIdRange { + /** RecordInfo locationsCount. */ + public locationsCount: number; - /** IdRange startingId */ - startingId?: (number|null); + /** + * Creates a new RecordInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordInfo instance + */ + public static create(properties?: folder.v3.remove.IRecordInfo): folder.v3.remove.RecordInfo; - /** IdRange endingId */ - endingId?: (number|null); - } + /** + * Encodes the specified RecordInfo message. Does not implicitly {@link folder.v3.remove.RecordInfo.verify|verify} messages. + * @param message RecordInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.remove.IRecordInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** Specifies the first and last IDs of a range of IDs so that a Request can ask for information about a range of IDs. */ - class IdRange implements IIdRange { + /** + * Decodes a RecordInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordInfo + * @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): folder.v3.remove.RecordInfo; - /** - * Constructs a new IdRange. - * @param [properties] Properties to set - */ - constructor(properties?: ServiceLogger.IIdRange); + /** + * Creates a RecordInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordInfo + */ + public static fromObject(object: { [k: string]: any }): folder.v3.remove.RecordInfo; - /** IdRange startingId. */ - public startingId: number; + /** + * Creates a plain object from a RecordInfo message. Also converts values to other types if specified. + * @param message RecordInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.remove.RecordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** IdRange endingId. */ - public endingId: number; + /** + * Converts this RecordInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new IdRange instance using the specified properties. - * @param [properties] Properties to set - * @returns IdRange instance - */ - public static create(properties?: ServiceLogger.IIdRange): ServiceLogger.IdRange; + /** + * Gets the default type url for RecordInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified IdRange message. Does not implicitly {@link ServiceLogger.IdRange.verify|verify} messages. - * @param message IdRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ServiceLogger.IIdRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an ItemError. */ + interface IItemError { - /** - * Decodes an IdRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IdRange - * @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): ServiceLogger.IdRange; + /** ItemError code */ + code?: (folder.v3.remove.RemoveErrorCode|null); - /** - * Creates an IdRange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IdRange - */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.IdRange; + /** ItemError message */ + message?: (string|null); + } - /** - * Creates a plain object from an IdRange message. Also converts values to other types if specified. - * @param message IdRange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ServiceLogger.IdRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Error details for a failed item. */ + class ItemError implements IItemError { - /** - * Converts this IdRange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new ItemError. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.remove.IItemError); - /** - * Gets the default type url for IdRange - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ItemError code. */ + public code: folder.v3.remove.RemoveErrorCode; - /** Properties of a ServiceInfoSpecifier. */ - interface IServiceInfoSpecifier { + /** ItemError message. */ + public message: string; - /** ServiceInfoSpecifier all */ - all?: (boolean|null); + /** + * Creates a new ItemError instance using the specified properties. + * @param [properties] Properties to set + * @returns ItemError instance + */ + public static create(properties?: folder.v3.remove.IItemError): folder.v3.remove.ItemError; - /** ServiceInfoSpecifier serviceInfoId */ - serviceInfoId?: (number|null); + /** + * Encodes the specified ItemError message. Does not implicitly {@link folder.v3.remove.ItemError.verify|verify} messages. + * @param message ItemError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.remove.IItemError, writer?: $protobuf.Writer): $protobuf.Writer; - /** ServiceInfoSpecifier name */ - name?: (string|null); - } + /** + * Decodes an ItemError message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ItemError + * @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): folder.v3.remove.ItemError; - /** Used in ServiceInfoRequest */ - class ServiceInfoSpecifier implements IServiceInfoSpecifier { + /** + * Creates an ItemError message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ItemError + */ + public static fromObject(object: { [k: string]: any }): folder.v3.remove.ItemError; - /** - * Constructs a new ServiceInfoSpecifier. - * @param [properties] Properties to set - */ - constructor(properties?: ServiceLogger.IServiceInfoSpecifier); + /** + * Creates a plain object from an ItemError message. Also converts values to other types if specified. + * @param message ItemError + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.remove.ItemError, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ServiceInfoSpecifier all. */ - public all: boolean; + /** + * Converts this ItemError to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ServiceInfoSpecifier serviceInfoId. */ - public serviceInfoId: number; + /** + * Gets the default type url for ItemError + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ServiceInfoSpecifier name. */ - public name: string; + /** Properties of a RemovalTokenPayload. */ + interface IRemovalTokenPayload { - /** - * Creates a new ServiceInfoSpecifier instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceInfoSpecifier instance - */ - public static create(properties?: ServiceLogger.IServiceInfoSpecifier): ServiceLogger.ServiceInfoSpecifier; + /** RemovalTokenPayload itemFingerprints */ + itemFingerprints?: (folder.v3.remove.IItemFingerprint[]|null); - /** - * Encodes the specified ServiceInfoSpecifier message. Does not implicitly {@link ServiceLogger.ServiceInfoSpecifier.verify|verify} messages. - * @param message ServiceInfoSpecifier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ServiceLogger.IServiceInfoSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; + /** RemovalTokenPayload userId */ + userId?: (number|null); - /** - * Decodes a ServiceInfoSpecifier message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceInfoSpecifier - * @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): ServiceLogger.ServiceInfoSpecifier; + /** RemovalTokenPayload deviceId */ + deviceId?: (number|null); - /** - * Creates a ServiceInfoSpecifier message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServiceInfoSpecifier - */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoSpecifier; + /** RemovalTokenPayload sessionUid */ + sessionUid?: (Uint8Array|null); - /** - * Creates a plain object from a ServiceInfoSpecifier message. Also converts values to other types if specified. - * @param message ServiceInfoSpecifier - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ServiceLogger.ServiceInfoSpecifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** RemovalTokenPayload expiresAtMillis */ + expiresAtMillis?: (number|null); + } - /** - * Converts this ServiceInfoSpecifier to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Internal token payload (not exposed in API, just for serialization) */ + class RemovalTokenPayload implements IRemovalTokenPayload { - /** - * Gets the default type url for ServiceInfoSpecifier - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new RemovalTokenPayload. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.remove.IRemovalTokenPayload); - /** Properties of a ServiceInfoRequest. */ - interface IServiceInfoRequest { + /** RemovalTokenPayload itemFingerprints. */ + public itemFingerprints: folder.v3.remove.IItemFingerprint[]; - /** ServiceInfoRequest serviceInfoSpecifier */ - serviceInfoSpecifier?: (ServiceLogger.IServiceInfoSpecifier[]|null); - } + /** RemovalTokenPayload userId. */ + public userId: number; - /** Request information about one or more services by ID or name, or retrieve all. */ - class ServiceInfoRequest implements IServiceInfoRequest { + /** RemovalTokenPayload deviceId. */ + public deviceId: number; - /** - * Constructs a new ServiceInfoRequest. - * @param [properties] Properties to set - */ - constructor(properties?: ServiceLogger.IServiceInfoRequest); + /** RemovalTokenPayload sessionUid. */ + public sessionUid: Uint8Array; - /** ServiceInfoRequest serviceInfoSpecifier. */ - public serviceInfoSpecifier: ServiceLogger.IServiceInfoSpecifier[]; + /** RemovalTokenPayload expiresAtMillis. */ + public expiresAtMillis: number; - /** - * Creates a new ServiceInfoRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceInfoRequest instance - */ - public static create(properties?: ServiceLogger.IServiceInfoRequest): ServiceLogger.ServiceInfoRequest; + /** + * Creates a new RemovalTokenPayload instance using the specified properties. + * @param [properties] Properties to set + * @returns RemovalTokenPayload instance + */ + public static create(properties?: folder.v3.remove.IRemovalTokenPayload): folder.v3.remove.RemovalTokenPayload; - /** - * Encodes the specified ServiceInfoRequest message. Does not implicitly {@link ServiceLogger.ServiceInfoRequest.verify|verify} messages. - * @param message ServiceInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ServiceLogger.IServiceInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified RemovalTokenPayload message. Does not implicitly {@link folder.v3.remove.RemovalTokenPayload.verify|verify} messages. + * @param message RemovalTokenPayload message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.remove.IRemovalTokenPayload, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ServiceInfoRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceInfoRequest - * @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): ServiceLogger.ServiceInfoRequest; + /** + * Decodes a RemovalTokenPayload message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemovalTokenPayload + * @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): folder.v3.remove.RemovalTokenPayload; - /** - * Creates a ServiceInfoRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServiceInfoRequest - */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoRequest; + /** + * Creates a RemovalTokenPayload message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemovalTokenPayload + */ + public static fromObject(object: { [k: string]: any }): folder.v3.remove.RemovalTokenPayload; - /** - * Creates a plain object from a ServiceInfoRequest message. Also converts values to other types if specified. - * @param message ServiceInfoRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ServiceLogger.ServiceInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a RemovalTokenPayload message. Also converts values to other types if specified. + * @param message RemovalTokenPayload + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.remove.RemovalTokenPayload, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this ServiceInfoRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this RemovalTokenPayload to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for ServiceInfoRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for RemovalTokenPayload + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a ServiceInfoRecord. */ - interface IServiceInfoRecord { + /** Properties of an ItemFingerprint. */ + interface IItemFingerprint { - /** ServiceInfoRecord serviceInfoId */ - serviceInfoId?: (number|null); + /** ItemFingerprint record */ + record?: (folder.v3.remove.IRecordTarget|null); - /** ServiceInfoRecord name */ - name?: (string|null); + /** ItemFingerprint folder */ + folder?: (folder.v3.remove.IFolderTarget|null); - /** ServiceInfoRecord deleteAfter */ - deleteAfter?: (number|null); + /** ItemFingerprint fingerprint */ + fingerprint?: (Uint8Array|null); + } - /** ServiceInfoRecord deleteAfterTimeUnits */ - deleteAfterTimeUnits?: (string|null); + /** Represents an ItemFingerprint. */ + class ItemFingerprint implements IItemFingerprint { - /** ServiceInfoRecord isShortTermLogging */ - isShortTermLogging?: (boolean|null); - } + /** + * Constructs a new ItemFingerprint. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.remove.IItemFingerprint); - /** Used in ServiceInfoResponse */ - class ServiceInfoRecord implements IServiceInfoRecord { + /** ItemFingerprint record. */ + public record?: (folder.v3.remove.IRecordTarget|null); - /** - * Constructs a new ServiceInfoRecord. - * @param [properties] Properties to set - */ - constructor(properties?: ServiceLogger.IServiceInfoRecord); + /** ItemFingerprint folder. */ + public folder?: (folder.v3.remove.IFolderTarget|null); - /** ServiceInfoRecord serviceInfoId. */ - public serviceInfoId: number; + /** ItemFingerprint fingerprint. */ + public fingerprint: Uint8Array; - /** ServiceInfoRecord name. */ - public name: string; + /** ItemFingerprint target. */ + public target?: ("record"|"folder"); - /** ServiceInfoRecord deleteAfter. */ - public deleteAfter: number; + /** + * Creates a new ItemFingerprint instance using the specified properties. + * @param [properties] Properties to set + * @returns ItemFingerprint instance + */ + public static create(properties?: folder.v3.remove.IItemFingerprint): folder.v3.remove.ItemFingerprint; - /** ServiceInfoRecord deleteAfterTimeUnits. */ - public deleteAfterTimeUnits: string; + /** + * Encodes the specified ItemFingerprint message. Does not implicitly {@link folder.v3.remove.ItemFingerprint.verify|verify} messages. + * @param message ItemFingerprint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.remove.IItemFingerprint, writer?: $protobuf.Writer): $protobuf.Writer; - /** ServiceInfoRecord isShortTermLogging. */ - public isShortTermLogging: boolean; + /** + * Decodes an ItemFingerprint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ItemFingerprint + * @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): folder.v3.remove.ItemFingerprint; - /** - * Creates a new ServiceInfoRecord instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceInfoRecord instance - */ - public static create(properties?: ServiceLogger.IServiceInfoRecord): ServiceLogger.ServiceInfoRecord; + /** + * Creates an ItemFingerprint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ItemFingerprint + */ + public static fromObject(object: { [k: string]: any }): folder.v3.remove.ItemFingerprint; - /** - * Encodes the specified ServiceInfoRecord message. Does not implicitly {@link ServiceLogger.ServiceInfoRecord.verify|verify} messages. - * @param message ServiceInfoRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ServiceLogger.IServiceInfoRecord, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an ItemFingerprint message. Also converts values to other types if specified. + * @param message ItemFingerprint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.remove.ItemFingerprint, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a ServiceInfoRecord message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceInfoRecord - * @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): ServiceLogger.ServiceInfoRecord; + /** + * Converts this ItemFingerprint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a ServiceInfoRecord message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServiceInfoRecord - */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoRecord; + /** + * Gets the default type url for ItemFingerprint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a ServiceInfoRecord message. Also converts values to other types if specified. - * @param message ServiceInfoRecord - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ServiceLogger.ServiceInfoRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a RecordTarget. */ + interface IRecordTarget { - /** - * Converts this ServiceInfoRecord to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** RecordTarget folderUid */ + folderUid?: (Uint8Array|null); - /** - * Gets the default type url for ServiceInfoRecord - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** RecordTarget recordUid */ + recordUid?: (Uint8Array|null); - /** Properties of a ServiceInfoResponse. */ - interface IServiceInfoResponse { + /** RecordTarget operationType */ + operationType?: (folder.v3.remove.RecordOperationType|null); + } - /** ServiceInfoResponse serviceInfoRecord */ - serviceInfoRecord?: (ServiceLogger.IServiceInfoRecord[]|null); - } + /** Represents a RecordTarget. */ + class RecordTarget implements IRecordTarget { - /** Returns information about Services */ - class ServiceInfoResponse implements IServiceInfoResponse { + /** + * Constructs a new RecordTarget. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.remove.IRecordTarget); - /** - * Constructs a new ServiceInfoResponse. - * @param [properties] Properties to set - */ - constructor(properties?: ServiceLogger.IServiceInfoResponse); + /** RecordTarget folderUid. */ + public folderUid: Uint8Array; - /** ServiceInfoResponse serviceInfoRecord. */ - public serviceInfoRecord: ServiceLogger.IServiceInfoRecord[]; + /** RecordTarget recordUid. */ + public recordUid: Uint8Array; - /** - * Creates a new ServiceInfoResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceInfoResponse instance - */ - public static create(properties?: ServiceLogger.IServiceInfoResponse): ServiceLogger.ServiceInfoResponse; + /** RecordTarget operationType. */ + public operationType: folder.v3.remove.RecordOperationType; - /** - * Encodes the specified ServiceInfoResponse message. Does not implicitly {@link ServiceLogger.ServiceInfoResponse.verify|verify} messages. - * @param message ServiceInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ServiceLogger.IServiceInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new RecordTarget instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordTarget instance + */ + public static create(properties?: folder.v3.remove.IRecordTarget): folder.v3.remove.RecordTarget; - /** - * Decodes a ServiceInfoResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceInfoResponse - * @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): ServiceLogger.ServiceInfoResponse; + /** + * Encodes the specified RecordTarget message. Does not implicitly {@link folder.v3.remove.RecordTarget.verify|verify} messages. + * @param message RecordTarget message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.remove.IRecordTarget, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a ServiceInfoResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServiceInfoResponse - */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoResponse; + /** + * Decodes a RecordTarget message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordTarget + * @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): folder.v3.remove.RecordTarget; - /** - * Creates a plain object from a ServiceInfoResponse message. Also converts values to other types if specified. - * @param message ServiceInfoResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ServiceLogger.ServiceInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a RecordTarget message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordTarget + */ + public static fromObject(object: { [k: string]: any }): folder.v3.remove.RecordTarget; - /** - * Converts this ServiceInfoResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a RecordTarget message. Also converts values to other types if specified. + * @param message RecordTarget + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.remove.RecordTarget, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for ServiceInfoResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this RecordTarget to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a ServiceInfoUpdateRequest. */ - interface IServiceInfoUpdateRequest { + /** + * Gets the default type url for RecordTarget + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ServiceInfoUpdateRequest serviceInfoRecord */ - serviceInfoRecord?: (ServiceLogger.IServiceInfoRecord[]|null); - } + /** Properties of a FolderTarget. */ + interface IFolderTarget { - /** Update one or more ServiceInfo records by their IDs */ - class ServiceInfoUpdateRequest implements IServiceInfoUpdateRequest { + /** FolderTarget folderUid */ + folderUid?: (Uint8Array|null); - /** - * Constructs a new ServiceInfoUpdateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: ServiceLogger.IServiceInfoUpdateRequest); + /** FolderTarget operationType */ + operationType?: (folder.v3.remove.FolderOperationType|null); + } - /** ServiceInfoUpdateRequest serviceInfoRecord. */ - public serviceInfoRecord: ServiceLogger.IServiceInfoRecord[]; + /** Represents a FolderTarget. */ + class FolderTarget implements IFolderTarget { - /** - * Creates a new ServiceInfoUpdateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceInfoUpdateRequest instance - */ - public static create(properties?: ServiceLogger.IServiceInfoUpdateRequest): ServiceLogger.ServiceInfoUpdateRequest; + /** + * Constructs a new FolderTarget. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.remove.IFolderTarget); - /** - * Encodes the specified ServiceInfoUpdateRequest message. Does not implicitly {@link ServiceLogger.ServiceInfoUpdateRequest.verify|verify} messages. - * @param message ServiceInfoUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ServiceLogger.IServiceInfoUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** FolderTarget folderUid. */ + public folderUid: Uint8Array; - /** - * Decodes a ServiceInfoUpdateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceInfoUpdateRequest - * @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): ServiceLogger.ServiceInfoUpdateRequest; + /** FolderTarget operationType. */ + public operationType: folder.v3.remove.FolderOperationType; - /** - * Creates a ServiceInfoUpdateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServiceInfoUpdateRequest - */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoUpdateRequest; + /** + * Creates a new FolderTarget instance using the specified properties. + * @param [properties] Properties to set + * @returns FolderTarget instance + */ + public static create(properties?: folder.v3.remove.IFolderTarget): folder.v3.remove.FolderTarget; - /** - * Creates a plain object from a ServiceInfoUpdateRequest message. Also converts values to other types if specified. - * @param message ServiceInfoUpdateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ServiceLogger.ServiceInfoUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified FolderTarget message. Does not implicitly {@link folder.v3.remove.FolderTarget.verify|verify} messages. + * @param message FolderTarget message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.remove.IFolderTarget, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this ServiceInfoUpdateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a FolderTarget message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FolderTarget + * @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): folder.v3.remove.FolderTarget; - /** - * Gets the default type url for ServiceInfoUpdateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a FolderTarget message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FolderTarget + */ + public static fromObject(object: { [k: string]: any }): folder.v3.remove.FolderTarget; - /** Properties of a ServiceRuleSpecifier. */ - interface IServiceRuleSpecifier { + /** + * Creates a plain object from a FolderTarget message. Also converts values to other types if specified. + * @param message FolderTarget + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.remove.FolderTarget, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ServiceRuleSpecifier all */ - all?: (boolean|null); + /** + * Converts this FolderTarget to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ServiceRuleSpecifier serviceRuleId */ - serviceRuleId?: (number|null); + /** + * Gets the default type url for FolderTarget + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ServiceRuleSpecifier serviceInfoId */ - serviceInfoId?: (number|null); + /** RestoreStatus enum. */ + enum RestoreStatus { + RESTORE_STATUS_UNKNOWN = 0, + RS_SUCCESS = 1, + RS_NOT_IN_TRASHCAN = 2, + RS_ACCESS_DENIED = 3, + RS_TARGET_FOLDER_NOT_FOUND = 4, + RS_ALREADY_EXISTS_IN_TARGET = 5, + RS_FAIL = 6 + } - /** ServiceRuleSpecifier resourceIdRange */ - resourceIdRange?: (ServiceLogger.IIdRange[]|null); - } + /** RestoreItemType enum. */ + enum RestoreItemType { + RESTORE_ITEM_UNKNOWN = 0, + RESTORE_ITEM_RECORD = 1, + RESTORE_ITEM_FOLDER = 2 + } - /** Represents a ServiceRuleSpecifier. */ - class ServiceRuleSpecifier implements IServiceRuleSpecifier { + /** Properties of a RestoreResult. */ + interface IRestoreResult { - /** - * Constructs a new ServiceRuleSpecifier. - * @param [properties] Properties to set - */ - constructor(properties?: ServiceLogger.IServiceRuleSpecifier); + /** RestoreResult itemUid */ + itemUid?: (Uint8Array|null); - /** ServiceRuleSpecifier all. */ - public all: boolean; + /** RestoreResult itemType */ + itemType?: (folder.v3.remove.RestoreItemType|null); - /** ServiceRuleSpecifier serviceRuleId. */ - public serviceRuleId: number; + /** RestoreResult status */ + status?: (folder.v3.remove.RestoreStatus|null); - /** ServiceRuleSpecifier serviceInfoId. */ - public serviceInfoId: number; + /** RestoreResult errorMessage */ + errorMessage?: (string|null); + } - /** ServiceRuleSpecifier resourceIdRange. */ - public resourceIdRange: ServiceLogger.IIdRange[]; + /** Represents a RestoreResult. */ + class RestoreResult implements IRestoreResult { - /** - * Creates a new ServiceRuleSpecifier instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceRuleSpecifier instance - */ - public static create(properties?: ServiceLogger.IServiceRuleSpecifier): ServiceLogger.ServiceRuleSpecifier; + /** + * Constructs a new RestoreResult. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.remove.IRestoreResult); - /** - * Encodes the specified ServiceRuleSpecifier message. Does not implicitly {@link ServiceLogger.ServiceRuleSpecifier.verify|verify} messages. - * @param message ServiceRuleSpecifier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ServiceLogger.IServiceRuleSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; + /** RestoreResult itemUid. */ + public itemUid: Uint8Array; - /** - * Decodes a ServiceRuleSpecifier message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceRuleSpecifier - * @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): ServiceLogger.ServiceRuleSpecifier; + /** RestoreResult itemType. */ + public itemType: folder.v3.remove.RestoreItemType; - /** - * Creates a ServiceRuleSpecifier message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServiceRuleSpecifier - */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleSpecifier; + /** RestoreResult status. */ + public status: folder.v3.remove.RestoreStatus; - /** - * Creates a plain object from a ServiceRuleSpecifier message. Also converts values to other types if specified. - * @param message ServiceRuleSpecifier - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ServiceLogger.ServiceRuleSpecifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** RestoreResult errorMessage. */ + public errorMessage: string; - /** - * Converts this ServiceRuleSpecifier to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new RestoreResult instance using the specified properties. + * @param [properties] Properties to set + * @returns RestoreResult instance + */ + public static create(properties?: folder.v3.remove.IRestoreResult): folder.v3.remove.RestoreResult; - /** - * Gets the default type url for ServiceRuleSpecifier - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified RestoreResult message. Does not implicitly {@link folder.v3.remove.RestoreResult.verify|verify} messages. + * @param message RestoreResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.remove.IRestoreResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a ServiceRuleRequest. */ - interface IServiceRuleRequest { + /** + * Decodes a RestoreResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RestoreResult + * @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): folder.v3.remove.RestoreResult; - /** ServiceRuleRequest serviceRuleSpecifier */ - serviceRuleSpecifier?: (ServiceLogger.IServiceRuleSpecifier[]|null); - } + /** + * Creates a RestoreResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RestoreResult + */ + public static fromObject(object: { [k: string]: any }): folder.v3.remove.RestoreResult; - /** Represents a ServiceRuleRequest. */ - class ServiceRuleRequest implements IServiceRuleRequest { + /** + * Creates a plain object from a RestoreResult message. Also converts values to other types if specified. + * @param message RestoreResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.remove.RestoreResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new ServiceRuleRequest. - * @param [properties] Properties to set - */ - constructor(properties?: ServiceLogger.IServiceRuleRequest); + /** + * Converts this RestoreResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ServiceRuleRequest serviceRuleSpecifier. */ - public serviceRuleSpecifier: ServiceLogger.IServiceRuleSpecifier[]; + /** + * Gets the default type url for RestoreResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a new ServiceRuleRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceRuleRequest instance - */ - public static create(properties?: ServiceLogger.IServiceRuleRequest): ServiceLogger.ServiceRuleRequest; + /** Properties of a TrashcanRestoreResponse. */ + interface ITrashcanRestoreResponse { - /** - * Encodes the specified ServiceRuleRequest message. Does not implicitly {@link ServiceLogger.ServiceRuleRequest.verify|verify} messages. - * @param message ServiceRuleRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ServiceLogger.IServiceRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** TrashcanRestoreResponse results */ + results?: (folder.v3.remove.IRestoreResult[]|null); - /** - * Decodes a ServiceRuleRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceRuleRequest - * @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): ServiceLogger.ServiceRuleRequest; + /** TrashcanRestoreResponse errorMessage */ + errorMessage?: (string|null); + } - /** - * Creates a ServiceRuleRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServiceRuleRequest - */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleRequest; + /** Represents a TrashcanRestoreResponse. */ + class TrashcanRestoreResponse implements ITrashcanRestoreResponse { - /** - * Creates a plain object from a ServiceRuleRequest message. Also converts values to other types if specified. - * @param message ServiceRuleRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ServiceLogger.ServiceRuleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new TrashcanRestoreResponse. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.remove.ITrashcanRestoreResponse); - /** - * Converts this ServiceRuleRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** TrashcanRestoreResponse results. */ + public results: folder.v3.remove.IRestoreResult[]; - /** - * Gets the default type url for ServiceRuleRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** TrashcanRestoreResponse errorMessage. */ + public errorMessage: string; - /** Properties of a ServiceRuleRecord. */ - interface IServiceRuleRecord { + /** + * Creates a new TrashcanRestoreResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TrashcanRestoreResponse instance + */ + public static create(properties?: folder.v3.remove.ITrashcanRestoreResponse): folder.v3.remove.TrashcanRestoreResponse; - /** ServiceRuleRecord serviceRuleId */ - serviceRuleId?: (number|null); + /** + * Encodes the specified TrashcanRestoreResponse message. Does not implicitly {@link folder.v3.remove.TrashcanRestoreResponse.verify|verify} messages. + * @param message TrashcanRestoreResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.remove.ITrashcanRestoreResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** ServiceRuleRecord serviceInfoId */ - serviceInfoId?: (number|null); + /** + * Decodes a TrashcanRestoreResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrashcanRestoreResponse + * @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): folder.v3.remove.TrashcanRestoreResponse; - /** ServiceRuleRecord resourceId */ - resourceId?: (number|null); + /** + * Creates a TrashcanRestoreResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrashcanRestoreResponse + */ + public static fromObject(object: { [k: string]: any }): folder.v3.remove.TrashcanRestoreResponse; - /** ServiceRuleRecord isLoggingEnabled */ - isLoggingEnabled?: (boolean|null); + /** + * Creates a plain object from a TrashcanRestoreResponse message. Also converts values to other types if specified. + * @param message TrashcanRestoreResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.remove.TrashcanRestoreResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ServiceRuleRecord logLevel */ - logLevel?: (string|null); + /** + * Converts this TrashcanRestoreResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ServiceRuleRecord ruleStart */ - ruleStart?: (string|null); + /** + * Gets the default type url for TrashcanRestoreResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ServiceRuleRecord ruleEnd */ - ruleEnd?: (string|null); + /** Properties of a RestoreRecord. */ + interface IRestoreRecord { - /** ServiceRuleRecord dateModified */ - dateModified?: (string|null); - } + /** RestoreRecord recordUid */ + recordUid?: (Uint8Array|null); - /** Represents a ServiceRuleRecord. */ - class ServiceRuleRecord implements IServiceRuleRecord { + /** RestoreRecord encryptedRecordKey */ + encryptedRecordKey?: (Uint8Array|null); - /** - * Constructs a new ServiceRuleRecord. - * @param [properties] Properties to set - */ - constructor(properties?: ServiceLogger.IServiceRuleRecord); + /** RestoreRecord sourceFolderUid */ + sourceFolderUid?: (Uint8Array|null); + } - /** ServiceRuleRecord serviceRuleId. */ - public serviceRuleId: number; + /** Represents a RestoreRecord. */ + class RestoreRecord implements IRestoreRecord { - /** ServiceRuleRecord serviceInfoId. */ - public serviceInfoId: number; + /** + * Constructs a new RestoreRecord. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.remove.IRestoreRecord); - /** ServiceRuleRecord resourceId. */ - public resourceId: number; + /** RestoreRecord recordUid. */ + public recordUid: Uint8Array; - /** ServiceRuleRecord isLoggingEnabled. */ - public isLoggingEnabled: boolean; + /** RestoreRecord encryptedRecordKey. */ + public encryptedRecordKey: Uint8Array; - /** ServiceRuleRecord logLevel. */ - public logLevel: string; + /** RestoreRecord sourceFolderUid. */ + public sourceFolderUid: Uint8Array; - /** ServiceRuleRecord ruleStart. */ - public ruleStart: string; + /** + * Creates a new RestoreRecord instance using the specified properties. + * @param [properties] Properties to set + * @returns RestoreRecord instance + */ + public static create(properties?: folder.v3.remove.IRestoreRecord): folder.v3.remove.RestoreRecord; - /** ServiceRuleRecord ruleEnd. */ - public ruleEnd: string; + /** + * Encodes the specified RestoreRecord message. Does not implicitly {@link folder.v3.remove.RestoreRecord.verify|verify} messages. + * @param message RestoreRecord message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.remove.IRestoreRecord, writer?: $protobuf.Writer): $protobuf.Writer; - /** ServiceRuleRecord dateModified. */ - public dateModified: string; + /** + * Decodes a RestoreRecord message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RestoreRecord + * @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): folder.v3.remove.RestoreRecord; - /** - * Creates a new ServiceRuleRecord instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceRuleRecord instance - */ - public static create(properties?: ServiceLogger.IServiceRuleRecord): ServiceLogger.ServiceRuleRecord; + /** + * Creates a RestoreRecord message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RestoreRecord + */ + public static fromObject(object: { [k: string]: any }): folder.v3.remove.RestoreRecord; - /** - * Encodes the specified ServiceRuleRecord message. Does not implicitly {@link ServiceLogger.ServiceRuleRecord.verify|verify} messages. - * @param message ServiceRuleRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ServiceLogger.IServiceRuleRecord, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a RestoreRecord message. Also converts values to other types if specified. + * @param message RestoreRecord + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.remove.RestoreRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RestoreRecord to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a ServiceRuleRecord message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceRuleRecord - * @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): ServiceLogger.ServiceRuleRecord; + /** + * Gets the default type url for RestoreRecord + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a ServiceRuleRecord message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServiceRuleRecord - */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleRecord; + /** Properties of a RestoreFolder. */ + interface IRestoreFolder { - /** - * Creates a plain object from a ServiceRuleRecord message. Also converts values to other types if specified. - * @param message ServiceRuleRecord - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ServiceLogger.ServiceRuleRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** RestoreFolder folderUid */ + folderUid?: (Uint8Array|null); - /** - * Converts this ServiceRuleRecord to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** RestoreFolder encryptedFolderKey */ + encryptedFolderKey?: (Uint8Array|null); + } - /** - * Gets the default type url for ServiceRuleRecord - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Represents a RestoreFolder. */ + class RestoreFolder implements IRestoreFolder { - /** Properties of a ServiceRuleResponse. */ - interface IServiceRuleResponse { + /** + * Constructs a new RestoreFolder. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.remove.IRestoreFolder); - /** ServiceRuleResponse serviceRule */ - serviceRule?: (ServiceLogger.IServiceRuleRecord[]|null); - } + /** RestoreFolder folderUid. */ + public folderUid: Uint8Array; - /** Represents a ServiceRuleResponse. */ - class ServiceRuleResponse implements IServiceRuleResponse { + /** RestoreFolder encryptedFolderKey. */ + public encryptedFolderKey: Uint8Array; - /** - * Constructs a new ServiceRuleResponse. - * @param [properties] Properties to set - */ - constructor(properties?: ServiceLogger.IServiceRuleResponse); + /** + * Creates a new RestoreFolder instance using the specified properties. + * @param [properties] Properties to set + * @returns RestoreFolder instance + */ + public static create(properties?: folder.v3.remove.IRestoreFolder): folder.v3.remove.RestoreFolder; - /** ServiceRuleResponse serviceRule. */ - public serviceRule: ServiceLogger.IServiceRuleRecord[]; + /** + * Encodes the specified RestoreFolder message. Does not implicitly {@link folder.v3.remove.RestoreFolder.verify|verify} messages. + * @param message RestoreFolder message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.remove.IRestoreFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new ServiceRuleResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceRuleResponse instance - */ - public static create(properties?: ServiceLogger.IServiceRuleResponse): ServiceLogger.ServiceRuleResponse; + /** + * Decodes a RestoreFolder message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RestoreFolder + * @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): folder.v3.remove.RestoreFolder; - /** - * Encodes the specified ServiceRuleResponse message. Does not implicitly {@link ServiceLogger.ServiceRuleResponse.verify|verify} messages. - * @param message ServiceRuleResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ServiceLogger.IServiceRuleResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a RestoreFolder message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RestoreFolder + */ + public static fromObject(object: { [k: string]: any }): folder.v3.remove.RestoreFolder; - /** - * Decodes a ServiceRuleResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceRuleResponse - * @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): ServiceLogger.ServiceRuleResponse; + /** + * Creates a plain object from a RestoreFolder message. Also converts values to other types if specified. + * @param message RestoreFolder + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.remove.RestoreFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a ServiceRuleResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServiceRuleResponse - */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleResponse; + /** + * Converts this RestoreFolder to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a ServiceRuleResponse message. Also converts values to other types if specified. - * @param message ServiceRuleResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ServiceLogger.ServiceRuleResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for RestoreFolder + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this ServiceRuleResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a TrashcanRestoreRequest. */ + interface ITrashcanRestoreRequest { - /** - * Gets the default type url for ServiceRuleResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** TrashcanRestoreRequest records */ + records?: (folder.v3.remove.IRestoreRecord[]|null); - /** Properties of a ServiceRuleUpdateRequest. */ - interface IServiceRuleUpdateRequest { + /** TrashcanRestoreRequest folders */ + folders?: (folder.v3.remove.IRestoreFolder[]|null); - /** ServiceRuleUpdateRequest serviceRuleRecord */ - serviceRuleRecord?: (ServiceLogger.IServiceRuleRecord[]|null); - } + /** TrashcanRestoreRequest targetFolderUid */ + targetFolderUid?: (Uint8Array|null); + } - /** Update one or more ServiceRule records by their IDs */ - class ServiceRuleUpdateRequest implements IServiceRuleUpdateRequest { + /** Represents a TrashcanRestoreRequest. */ + class TrashcanRestoreRequest implements ITrashcanRestoreRequest { - /** - * Constructs a new ServiceRuleUpdateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: ServiceLogger.IServiceRuleUpdateRequest); + /** + * Constructs a new TrashcanRestoreRequest. + * @param [properties] Properties to set + */ + constructor(properties?: folder.v3.remove.ITrashcanRestoreRequest); - /** ServiceRuleUpdateRequest serviceRuleRecord. */ - public serviceRuleRecord: ServiceLogger.IServiceRuleRecord[]; + /** TrashcanRestoreRequest records. */ + public records: folder.v3.remove.IRestoreRecord[]; - /** - * Creates a new ServiceRuleUpdateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceRuleUpdateRequest instance - */ - public static create(properties?: ServiceLogger.IServiceRuleUpdateRequest): ServiceLogger.ServiceRuleUpdateRequest; + /** TrashcanRestoreRequest folders. */ + public folders: folder.v3.remove.IRestoreFolder[]; - /** - * Encodes the specified ServiceRuleUpdateRequest message. Does not implicitly {@link ServiceLogger.ServiceRuleUpdateRequest.verify|verify} messages. - * @param message ServiceRuleUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ServiceLogger.IServiceRuleUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** TrashcanRestoreRequest targetFolderUid. */ + public targetFolderUid: Uint8Array; - /** - * Decodes a ServiceRuleUpdateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceRuleUpdateRequest - * @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): ServiceLogger.ServiceRuleUpdateRequest; + /** + * Creates a new TrashcanRestoreRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TrashcanRestoreRequest instance + */ + public static create(properties?: folder.v3.remove.ITrashcanRestoreRequest): folder.v3.remove.TrashcanRestoreRequest; - /** - * Creates a ServiceRuleUpdateRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServiceRuleUpdateRequest - */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleUpdateRequest; + /** + * Encodes the specified TrashcanRestoreRequest message. Does not implicitly {@link folder.v3.remove.TrashcanRestoreRequest.verify|verify} messages. + * @param message TrashcanRestoreRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: folder.v3.remove.ITrashcanRestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a ServiceRuleUpdateRequest message. Also converts values to other types if specified. - * @param message ServiceRuleUpdateRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ServiceLogger.ServiceRuleUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a TrashcanRestoreRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrashcanRestoreRequest + * @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): folder.v3.remove.TrashcanRestoreRequest; - /** - * Converts this ServiceRuleUpdateRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a TrashcanRestoreRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrashcanRestoreRequest + */ + public static fromObject(object: { [k: string]: any }): folder.v3.remove.TrashcanRestoreRequest; - /** - * Gets the default type url for ServiceRuleUpdateRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from a TrashcanRestoreRequest message. Also converts values to other types if specified. + * @param message TrashcanRestoreRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: folder.v3.remove.TrashcanRestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a ServiceLogSpecifier. */ - interface IServiceLogSpecifier { + /** + * Converts this TrashcanRestoreRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ServiceLogSpecifier all */ - all?: (boolean|null); + /** + * Gets the default type url for TrashcanRestoreRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } +} - /** ServiceLogSpecifier serviceLogId */ - serviceLogId?: (number|null); +/** Namespace Push. */ +export namespace Push { - /** ServiceLogSpecifier serviceIdRange */ - serviceIdRange?: (ServiceLogger.IIdRange[]|null); + /** Properties of a UserRegistrationRequest. */ + interface IUserRegistrationRequest { - /** ServiceLogSpecifier resourceIdRange */ - resourceIdRange?: (ServiceLogger.IIdRange[]|null); + /** UserRegistrationRequest messageSessionUid */ + messageSessionUid?: (Uint8Array|null); - /** ServiceLogSpecifier startDateTime */ - startDateTime?: (string|null); + /** UserRegistrationRequest userId */ + userId?: (number|null); - /** ServiceLogSpecifier endDateTime */ - endDateTime?: (string|null); + /** UserRegistrationRequest enterpriseId */ + enterpriseId?: (number|null); } - /** Represents a ServiceLogSpecifier. */ - class ServiceLogSpecifier implements IServiceLogSpecifier { + /** Represents a UserRegistrationRequest. */ + class UserRegistrationRequest implements IUserRegistrationRequest { /** - * Constructs a new ServiceLogSpecifier. + * Constructs a new UserRegistrationRequest. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceLogSpecifier); - - /** ServiceLogSpecifier all. */ - public all: boolean; - - /** ServiceLogSpecifier serviceLogId. */ - public serviceLogId: number; - - /** ServiceLogSpecifier serviceIdRange. */ - public serviceIdRange: ServiceLogger.IIdRange[]; + constructor(properties?: Push.IUserRegistrationRequest); - /** ServiceLogSpecifier resourceIdRange. */ - public resourceIdRange: ServiceLogger.IIdRange[]; + /** UserRegistrationRequest messageSessionUid. */ + public messageSessionUid: Uint8Array; - /** ServiceLogSpecifier startDateTime. */ - public startDateTime: string; + /** UserRegistrationRequest userId. */ + public userId: number; - /** ServiceLogSpecifier endDateTime. */ - public endDateTime: string; + /** UserRegistrationRequest enterpriseId. */ + public enterpriseId: number; /** - * Creates a new ServiceLogSpecifier instance using the specified properties. + * Creates a new UserRegistrationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceLogSpecifier instance + * @returns UserRegistrationRequest instance */ - public static create(properties?: ServiceLogger.IServiceLogSpecifier): ServiceLogger.ServiceLogSpecifier; + public static create(properties?: Push.IUserRegistrationRequest): Push.UserRegistrationRequest; /** - * Encodes the specified ServiceLogSpecifier message. Does not implicitly {@link ServiceLogger.ServiceLogSpecifier.verify|verify} messages. - * @param message ServiceLogSpecifier message or plain object to encode + * Encodes the specified UserRegistrationRequest message. Does not implicitly {@link Push.UserRegistrationRequest.verify|verify} messages. + * @param message UserRegistrationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ServiceLogger.IServiceLogSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Push.IUserRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceLogSpecifier message from the specified reader or buffer. + * Decodes a UserRegistrationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceLogSpecifier + * @returns UserRegistrationRequest * @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): ServiceLogger.ServiceLogSpecifier; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.UserRegistrationRequest; /** - * Creates a ServiceLogSpecifier message from a plain object. Also converts values to their respective internal types. + * Creates a UserRegistrationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceLogSpecifier + * @returns UserRegistrationRequest */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogSpecifier; + public static fromObject(object: { [k: string]: any }): Push.UserRegistrationRequest; /** - * Creates a plain object from a ServiceLogSpecifier message. Also converts values to other types if specified. - * @param message ServiceLogSpecifier + * Creates a plain object from a UserRegistrationRequest message. Also converts values to other types if specified. + * @param message UserRegistrationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogSpecifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Push.UserRegistrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceLogSpecifier to JSON. + * Converts this UserRegistrationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceLogSpecifier + * Gets the default type url for UserRegistrationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceLogGetRequest. */ - interface IServiceLogGetRequest { + /** MessageType enum. */ + enum MessageType { + UNKNOWN = 0, + DNA = 1, + SSO = 2, + CHAT = 3, + USER = 4, + ENTERPRISE = 5, + KEEPER = 6, + SESSION = 7, + DEVICE = 8, + TOTP = 9 + } - /** ServiceLogGetRequest serviceLogSpecifier */ - serviceLogSpecifier?: (ServiceLogger.IServiceLogSpecifier[]|null); + /** Properties of a KAToPushServerRequest. */ + interface IKAToPushServerRequest { + + /** KAToPushServerRequest messageType */ + messageType?: (Push.MessageType|null); + + /** KAToPushServerRequest message */ + message?: (string|null); + + /** KAToPushServerRequest messageSessionUid */ + messageSessionUid?: (Uint8Array|null); + + /** KAToPushServerRequest encryptedDeviceToken */ + encryptedDeviceToken?: (Uint8Array[]|null); + + /** KAToPushServerRequest userId */ + userId?: (number[]|null); + + /** KAToPushServerRequest enterpriseId */ + enterpriseId?: (number[]|null); } - /** Represents a ServiceLogGetRequest. */ - class ServiceLogGetRequest implements IServiceLogGetRequest { + /** Represents a KAToPushServerRequest. */ + class KAToPushServerRequest implements IKAToPushServerRequest { /** - * Constructs a new ServiceLogGetRequest. + * Constructs a new KAToPushServerRequest. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceLogGetRequest); + constructor(properties?: Push.IKAToPushServerRequest); - /** ServiceLogGetRequest serviceLogSpecifier. */ - public serviceLogSpecifier: ServiceLogger.IServiceLogSpecifier[]; + /** KAToPushServerRequest messageType. */ + public messageType: Push.MessageType; + + /** KAToPushServerRequest message. */ + public message: string; + + /** KAToPushServerRequest messageSessionUid. */ + public messageSessionUid: Uint8Array; + + /** KAToPushServerRequest encryptedDeviceToken. */ + public encryptedDeviceToken: Uint8Array[]; + + /** KAToPushServerRequest userId. */ + public userId: number[]; + + /** KAToPushServerRequest enterpriseId. */ + public enterpriseId: number[]; /** - * Creates a new ServiceLogGetRequest instance using the specified properties. + * Creates a new KAToPushServerRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceLogGetRequest instance + * @returns KAToPushServerRequest instance */ - public static create(properties?: ServiceLogger.IServiceLogGetRequest): ServiceLogger.ServiceLogGetRequest; + public static create(properties?: Push.IKAToPushServerRequest): Push.KAToPushServerRequest; /** - * Encodes the specified ServiceLogGetRequest message. Does not implicitly {@link ServiceLogger.ServiceLogGetRequest.verify|verify} messages. - * @param message ServiceLogGetRequest message or plain object to encode + * Encodes the specified KAToPushServerRequest message. Does not implicitly {@link Push.KAToPushServerRequest.verify|verify} messages. + * @param message KAToPushServerRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ServiceLogger.IServiceLogGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Push.IKAToPushServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceLogGetRequest message from the specified reader or buffer. + * Decodes a KAToPushServerRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceLogGetRequest + * @returns KAToPushServerRequest * @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): ServiceLogger.ServiceLogGetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.KAToPushServerRequest; /** - * Creates a ServiceLogGetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a KAToPushServerRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceLogGetRequest + * @returns KAToPushServerRequest */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogGetRequest; + public static fromObject(object: { [k: string]: any }): Push.KAToPushServerRequest; /** - * Creates a plain object from a ServiceLogGetRequest message. Also converts values to other types if specified. - * @param message ServiceLogGetRequest + * Creates a plain object from a KAToPushServerRequest message. Also converts values to other types if specified. + * @param message KAToPushServerRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogGetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Push.KAToPushServerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceLogGetRequest to JSON. + * Converts this KAToPushServerRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceLogGetRequest + * Gets the default type url for KAToPushServerRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceLogRecord. */ - interface IServiceLogRecord { - - /** ServiceLogRecord serviceLogId */ - serviceLogId?: (number|null); - - /** ServiceLogRecord serviceInfoId */ - serviceInfoId?: (number|null); - - /** ServiceLogRecord resourceId */ - resourceId?: (number|null); - - /** ServiceLogRecord logger */ - logger?: (string|null); - - /** ServiceLogRecord logLevel */ - logLevel?: (string|null); + /** Properties of a WssConnectionRequest. */ + interface IWssConnectionRequest { - /** ServiceLogRecord message */ - message?: (string|null); + /** WssConnectionRequest messageSessionUid */ + messageSessionUid?: (Uint8Array|null); - /** ServiceLogRecord exception */ - exception?: (string|null); + /** WssConnectionRequest encryptedDeviceToken */ + encryptedDeviceToken?: (Uint8Array|null); - /** ServiceLogRecord dateCreated */ - dateCreated?: (string|null); + /** WssConnectionRequest deviceTimeStamp */ + deviceTimeStamp?: (number|null); } - /** Represents a ServiceLogRecord. */ - class ServiceLogRecord implements IServiceLogRecord { + /** Represents a WssConnectionRequest. */ + class WssConnectionRequest implements IWssConnectionRequest { /** - * Constructs a new ServiceLogRecord. + * Constructs a new WssConnectionRequest. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceLogRecord); - - /** ServiceLogRecord serviceLogId. */ - public serviceLogId: number; - - /** ServiceLogRecord serviceInfoId. */ - public serviceInfoId: number; - - /** ServiceLogRecord resourceId. */ - public resourceId: number; - - /** ServiceLogRecord logger. */ - public logger: string; - - /** ServiceLogRecord logLevel. */ - public logLevel: string; + constructor(properties?: Push.IWssConnectionRequest); - /** ServiceLogRecord message. */ - public message: string; + /** WssConnectionRequest messageSessionUid. */ + public messageSessionUid: Uint8Array; - /** ServiceLogRecord exception. */ - public exception: string; + /** WssConnectionRequest encryptedDeviceToken. */ + public encryptedDeviceToken: Uint8Array; - /** ServiceLogRecord dateCreated. */ - public dateCreated: string; + /** WssConnectionRequest deviceTimeStamp. */ + public deviceTimeStamp: number; /** - * Creates a new ServiceLogRecord instance using the specified properties. + * Creates a new WssConnectionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceLogRecord instance + * @returns WssConnectionRequest instance */ - public static create(properties?: ServiceLogger.IServiceLogRecord): ServiceLogger.ServiceLogRecord; + public static create(properties?: Push.IWssConnectionRequest): Push.WssConnectionRequest; /** - * Encodes the specified ServiceLogRecord message. Does not implicitly {@link ServiceLogger.ServiceLogRecord.verify|verify} messages. - * @param message ServiceLogRecord message or plain object to encode + * Encodes the specified WssConnectionRequest message. Does not implicitly {@link Push.WssConnectionRequest.verify|verify} messages. + * @param message WssConnectionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ServiceLogger.IServiceLogRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Push.IWssConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceLogRecord message from the specified reader or buffer. + * Decodes a WssConnectionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceLogRecord + * @returns WssConnectionRequest * @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): ServiceLogger.ServiceLogRecord; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.WssConnectionRequest; /** - * Creates a ServiceLogRecord message from a plain object. Also converts values to their respective internal types. + * Creates a WssConnectionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceLogRecord + * @returns WssConnectionRequest */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogRecord; + public static fromObject(object: { [k: string]: any }): Push.WssConnectionRequest; /** - * Creates a plain object from a ServiceLogRecord message. Also converts values to other types if specified. - * @param message ServiceLogRecord + * Creates a plain object from a WssConnectionRequest message. Also converts values to other types if specified. + * @param message WssConnectionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Push.WssConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceLogRecord to JSON. + * Converts this WssConnectionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceLogRecord + * Gets the default type url for WssConnectionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceLogAddRequest. */ - interface IServiceLogAddRequest { + /** Properties of a WssClientResponse. */ + interface IWssClientResponse { - /** ServiceLogAddRequest entry */ - entry?: (ServiceLogger.IServiceLogRecord[]|null); + /** WssClientResponse messageType */ + messageType?: (Push.MessageType|null); + + /** WssClientResponse message */ + message?: (string|null); } - /** Represents a ServiceLogAddRequest. */ - class ServiceLogAddRequest implements IServiceLogAddRequest { + /** Represents a WssClientResponse. */ + class WssClientResponse implements IWssClientResponse { /** - * Constructs a new ServiceLogAddRequest. + * Constructs a new WssClientResponse. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceLogAddRequest); + constructor(properties?: Push.IWssClientResponse); - /** ServiceLogAddRequest entry. */ - public entry: ServiceLogger.IServiceLogRecord[]; + /** WssClientResponse messageType. */ + public messageType: Push.MessageType; + + /** WssClientResponse message. */ + public message: string; /** - * Creates a new ServiceLogAddRequest instance using the specified properties. + * Creates a new WssClientResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceLogAddRequest instance + * @returns WssClientResponse instance */ - public static create(properties?: ServiceLogger.IServiceLogAddRequest): ServiceLogger.ServiceLogAddRequest; + public static create(properties?: Push.IWssClientResponse): Push.WssClientResponse; /** - * Encodes the specified ServiceLogAddRequest message. Does not implicitly {@link ServiceLogger.ServiceLogAddRequest.verify|verify} messages. - * @param message ServiceLogAddRequest message or plain object to encode + * Encodes the specified WssClientResponse message. Does not implicitly {@link Push.WssClientResponse.verify|verify} messages. + * @param message WssClientResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ServiceLogger.IServiceLogAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Push.IWssClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceLogAddRequest message from the specified reader or buffer. + * Decodes a WssClientResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceLogAddRequest + * @returns WssClientResponse * @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): ServiceLogger.ServiceLogAddRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.WssClientResponse; /** - * Creates a ServiceLogAddRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WssClientResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceLogAddRequest + * @returns WssClientResponse */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogAddRequest; + public static fromObject(object: { [k: string]: any }): Push.WssClientResponse; /** - * Creates a plain object from a ServiceLogAddRequest message. Also converts values to other types if specified. - * @param message ServiceLogAddRequest + * Creates a plain object from a WssClientResponse message. Also converts values to other types if specified. + * @param message WssClientResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Push.WssClientResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceLogAddRequest to JSON. + * Converts this WssClientResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceLogAddRequest + * Gets the default type url for WssClientResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceLogResponse. */ - interface IServiceLogResponse { + /** Properties of a PushServerDeviceRegistrationRequest. */ + interface IPushServerDeviceRegistrationRequest { - /** ServiceLogResponse entry */ - entry?: (ServiceLogger.IServiceLogRecord[]|null); + /** PushServerDeviceRegistrationRequest encryptedDeviceToken */ + encryptedDeviceToken?: (Uint8Array|null); + + /** PushServerDeviceRegistrationRequest pushToken */ + pushToken?: (string|null); + + /** PushServerDeviceRegistrationRequest mobilePushPlatform */ + mobilePushPlatform?: (string|null); + + /** PushServerDeviceRegistrationRequest transmissionKey */ + transmissionKey?: (Uint8Array|null); } - /** Represents a ServiceLogResponse. */ - class ServiceLogResponse implements IServiceLogResponse { + /** Represents a PushServerDeviceRegistrationRequest. */ + class PushServerDeviceRegistrationRequest implements IPushServerDeviceRegistrationRequest { /** - * Constructs a new ServiceLogResponse. + * Constructs a new PushServerDeviceRegistrationRequest. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceLogResponse); + constructor(properties?: Push.IPushServerDeviceRegistrationRequest); - /** ServiceLogResponse entry. */ - public entry: ServiceLogger.IServiceLogRecord[]; + /** PushServerDeviceRegistrationRequest encryptedDeviceToken. */ + public encryptedDeviceToken: Uint8Array; + + /** PushServerDeviceRegistrationRequest pushToken. */ + public pushToken: string; + + /** PushServerDeviceRegistrationRequest mobilePushPlatform. */ + public mobilePushPlatform: string; + + /** PushServerDeviceRegistrationRequest transmissionKey. */ + public transmissionKey: Uint8Array; /** - * Creates a new ServiceLogResponse instance using the specified properties. + * Creates a new PushServerDeviceRegistrationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceLogResponse instance + * @returns PushServerDeviceRegistrationRequest instance */ - public static create(properties?: ServiceLogger.IServiceLogResponse): ServiceLogger.ServiceLogResponse; + public static create(properties?: Push.IPushServerDeviceRegistrationRequest): Push.PushServerDeviceRegistrationRequest; /** - * Encodes the specified ServiceLogResponse message. Does not implicitly {@link ServiceLogger.ServiceLogResponse.verify|verify} messages. - * @param message ServiceLogResponse message or plain object to encode + * Encodes the specified PushServerDeviceRegistrationRequest message. Does not implicitly {@link Push.PushServerDeviceRegistrationRequest.verify|verify} messages. + * @param message PushServerDeviceRegistrationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ServiceLogger.IServiceLogResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Push.IPushServerDeviceRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceLogResponse message from the specified reader or buffer. + * Decodes a PushServerDeviceRegistrationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceLogResponse + * @returns PushServerDeviceRegistrationRequest * @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): ServiceLogger.ServiceLogResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.PushServerDeviceRegistrationRequest; /** - * Creates a ServiceLogResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PushServerDeviceRegistrationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceLogResponse + * @returns PushServerDeviceRegistrationRequest */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogResponse; + public static fromObject(object: { [k: string]: any }): Push.PushServerDeviceRegistrationRequest; /** - * Creates a plain object from a ServiceLogResponse message. Also converts values to other types if specified. - * @param message ServiceLogResponse + * Creates a plain object from a PushServerDeviceRegistrationRequest message. Also converts values to other types if specified. + * @param message PushServerDeviceRegistrationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Push.PushServerDeviceRegistrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceLogResponse to JSON. + * Converts this PushServerDeviceRegistrationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceLogResponse + * Gets the default type url for PushServerDeviceRegistrationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ServiceLogClearRequest. */ - interface IServiceLogClearRequest { - - /** ServiceLogClearRequest useDefaults */ - useDefaults?: (boolean|null); - - /** ServiceLogClearRequest serviceTypeId */ - serviceTypeId?: (number|null); - - /** ServiceLogClearRequest daysOld */ - daysOld?: (number|null); + /** Properties of a SnsMessage. */ + interface ISnsMessage { - /** ServiceLogClearRequest hoursOld */ - hoursOld?: (number|null); + /** SnsMessage messageType */ + messageType?: (Push.MessageType|null); - /** ServiceLogClearRequest resourceIdRange */ - resourceIdRange?: (ServiceLogger.IIdRange[]|null); + /** SnsMessage message */ + message?: (Uint8Array|null); } - /** This is a request to clear the SSO Service Provider log */ - class ServiceLogClearRequest implements IServiceLogClearRequest { + /** Represents a SnsMessage. */ + class SnsMessage implements ISnsMessage { /** - * Constructs a new ServiceLogClearRequest. + * Constructs a new SnsMessage. * @param [properties] Properties to set */ - constructor(properties?: ServiceLogger.IServiceLogClearRequest); - - /** ServiceLogClearRequest useDefaults. */ - public useDefaults: boolean; - - /** ServiceLogClearRequest serviceTypeId. */ - public serviceTypeId: number; - - /** ServiceLogClearRequest daysOld. */ - public daysOld: number; + constructor(properties?: Push.ISnsMessage); - /** ServiceLogClearRequest hoursOld. */ - public hoursOld: number; + /** SnsMessage messageType. */ + public messageType: Push.MessageType; - /** ServiceLogClearRequest resourceIdRange. */ - public resourceIdRange: ServiceLogger.IIdRange[]; + /** SnsMessage message. */ + public message: Uint8Array; /** - * Creates a new ServiceLogClearRequest instance using the specified properties. + * Creates a new SnsMessage instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceLogClearRequest instance + * @returns SnsMessage instance */ - public static create(properties?: ServiceLogger.IServiceLogClearRequest): ServiceLogger.ServiceLogClearRequest; + public static create(properties?: Push.ISnsMessage): Push.SnsMessage; /** - * Encodes the specified ServiceLogClearRequest message. Does not implicitly {@link ServiceLogger.ServiceLogClearRequest.verify|verify} messages. - * @param message ServiceLogClearRequest message or plain object to encode + * Encodes the specified SnsMessage message. Does not implicitly {@link Push.SnsMessage.verify|verify} messages. + * @param message SnsMessage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ServiceLogger.IServiceLogClearRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Push.ISnsMessage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceLogClearRequest message from the specified reader or buffer. + * Decodes a SnsMessage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceLogClearRequest + * @returns SnsMessage * @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): ServiceLogger.ServiceLogClearRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Push.SnsMessage; /** - * Creates a ServiceLogClearRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SnsMessage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceLogClearRequest + * @returns SnsMessage */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogClearRequest; + public static fromObject(object: { [k: string]: any }): Push.SnsMessage; /** - * Creates a plain object from a ServiceLogClearRequest message. Also converts values to other types if specified. - * @param message ServiceLogClearRequest + * Creates a plain object from a SnsMessage message. Also converts values to other types if specified. + * @param message SnsMessage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogClearRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Push.SnsMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceLogClearRequest to JSON. + * Converts this SnsMessage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceLogClearRequest + * Gets the default type url for SnsMessage * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } +} - /** Properties of a ServiceLogClearResponse. */ - interface IServiceLogClearResponse { +/** Namespace record. */ +export namespace record { - /** ServiceLogClearResponse serviceTypeId */ - serviceTypeId?: (number|null); + /** Namespace v3. */ + namespace v3 { - /** ServiceLogClearResponse serviceName */ - serviceName?: (string|null); + /** Namespace details. */ + namespace details { - /** ServiceLogClearResponse resourceIdRange */ - resourceIdRange?: (ServiceLogger.IIdRange[]|null); + /** Represents a RecordDetailsService */ + class RecordDetailsService extends $protobuf.rpc.Service { - /** ServiceLogClearResponse numDeleted */ - numDeleted?: (number|null); + /** + * Constructs a new RecordDetailsService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** ServiceLogClearResponse numRemaining */ - numRemaining?: (number|null); - } + /** + * Creates new RecordDetailsService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RecordDetailsService; - /** This is the response from the sso_log_clear command */ - class ServiceLogClearResponse implements IServiceLogClearResponse { + /** + * Calls GetRecordData. + * @param request RecordDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RecordDataResponse + */ + public getRecordData(request: record.v3.details.IRecordDataRequest, callback: record.v3.details.RecordDetailsService.GetRecordDataCallback): void; - /** - * Constructs a new ServiceLogClearResponse. - * @param [properties] Properties to set - */ - constructor(properties?: ServiceLogger.IServiceLogClearResponse); + /** + * Calls GetRecordData. + * @param request RecordDataRequest message or plain object + * @returns Promise + */ + public getRecordData(request: record.v3.details.IRecordDataRequest): Promise; - /** ServiceLogClearResponse serviceTypeId. */ - public serviceTypeId: number; + /** + * Calls GetRecordAccessors. + * @param request RecordAccessRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RecordAccessResponse + */ + public getRecordAccessors(request: record.v3.details.IRecordAccessRequest, callback: record.v3.details.RecordDetailsService.GetRecordAccessorsCallback): void; - /** ServiceLogClearResponse serviceName. */ - public serviceName: string; + /** + * Calls GetRecordAccessors. + * @param request RecordAccessRequest message or plain object + * @returns Promise + */ + public getRecordAccessors(request: record.v3.details.IRecordAccessRequest): Promise; - /** ServiceLogClearResponse resourceIdRange. */ - public resourceIdRange: ServiceLogger.IIdRange[]; + /** + * Calls GetRecordAccessorDetails. + * @param request RecordAccessorDetailsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RecordAccessorDetailsResponse + */ + public getRecordAccessorDetails(request: record.v3.details.IRecordAccessorDetailsRequest, callback: record.v3.details.RecordDetailsService.GetRecordAccessorDetailsCallback): void; - /** ServiceLogClearResponse numDeleted. */ - public numDeleted: number; + /** + * Calls GetRecordAccessorDetails. + * @param request RecordAccessorDetailsRequest message or plain object + * @returns Promise + */ + public getRecordAccessorDetails(request: record.v3.details.IRecordAccessorDetailsRequest): Promise; + } - /** ServiceLogClearResponse numRemaining. */ - public numRemaining: number; + namespace RecordDetailsService { - /** - * Creates a new ServiceLogClearResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceLogClearResponse instance - */ - public static create(properties?: ServiceLogger.IServiceLogClearResponse): ServiceLogger.ServiceLogClearResponse; + /** + * Callback as used by {@link record.v3.details.RecordDetailsService#getRecordData}. + * @param error Error, if any + * @param [response] RecordDataResponse + */ + type GetRecordDataCallback = (error: (Error|null), response?: record.v3.details.RecordDataResponse) => void; - /** - * Encodes the specified ServiceLogClearResponse message. Does not implicitly {@link ServiceLogger.ServiceLogClearResponse.verify|verify} messages. - * @param message ServiceLogClearResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ServiceLogger.IServiceLogClearResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Callback as used by {@link record.v3.details.RecordDetailsService#getRecordAccessors}. + * @param error Error, if any + * @param [response] RecordAccessResponse + */ + type GetRecordAccessorsCallback = (error: (Error|null), response?: record.v3.details.RecordAccessResponse) => void; - /** - * Decodes a ServiceLogClearResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceLogClearResponse - * @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): ServiceLogger.ServiceLogClearResponse; + /** + * Callback as used by {@link record.v3.details.RecordDetailsService#getRecordAccessorDetails}. + * @param error Error, if any + * @param [response] RecordAccessorDetailsResponse + */ + type GetRecordAccessorDetailsCallback = (error: (Error|null), response?: record.v3.details.RecordAccessorDetailsResponse) => void; + } - /** - * Creates a ServiceLogClearResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServiceLogClearResponse - */ - public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogClearResponse; + /** Properties of a RecordDataRequest. */ + interface IRecordDataRequest { + + /** + * represents the client time in milliseconds. Client time is used to + * adjust the record client_modified_time for each record. + */ + clientTime?: (number|null); + + /** the list of record UIDs to retrieve information for. */ + recordUids?: (Uint8Array[]|null); + } + + /** Represents a record data request. Record details include the record [meta]data (title, color, etc.) */ + class RecordDataRequest implements IRecordDataRequest { + + /** + * Constructs a new RecordDataRequest. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.details.IRecordDataRequest); + + /** + * represents the client time in milliseconds. Client time is used to + * adjust the record client_modified_time for each record. + */ + public clientTime: number; + + /** the list of record UIDs to retrieve information for. */ + public recordUids: Uint8Array[]; + + /** + * Creates a new RecordDataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordDataRequest instance + */ + public static create(properties?: record.v3.details.IRecordDataRequest): record.v3.details.RecordDataRequest; + + /** + * Encodes the specified RecordDataRequest message. Does not implicitly {@link record.v3.details.RecordDataRequest.verify|verify} messages. + * @param message RecordDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.details.IRecordDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecordDataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordDataRequest + * @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): record.v3.details.RecordDataRequest; + + /** + * Creates a RecordDataRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordDataRequest + */ + public static fromObject(object: { [k: string]: any }): record.v3.details.RecordDataRequest; + + /** + * Creates a plain object from a RecordDataRequest message. Also converts values to other types if specified. + * @param message RecordDataRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.details.RecordDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecordDataRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecordDataRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RecordDataResponse. */ + interface IRecordDataResponse { + + /** The data associated with the record. */ + data?: (Records.IRecordData[]|null); + + /** + * A list of record UIDs from the request that the calling user does not have access to. + * Each UID in this list corresponds to a record the user has no permission to access. + */ + forbiddenRecords?: (Uint8Array[]|null); + } + + /** Response message containing records' data and a list of inaccessible records for the calling user. */ + class RecordDataResponse implements IRecordDataResponse { + + /** + * Constructs a new RecordDataResponse. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.details.IRecordDataResponse); + + /** The data associated with the record. */ + public data: Records.IRecordData[]; + + /** + * A list of record UIDs from the request that the calling user does not have access to. + * Each UID in this list corresponds to a record the user has no permission to access. + */ + public forbiddenRecords: Uint8Array[]; + + /** + * Creates a new RecordDataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordDataResponse instance + */ + public static create(properties?: record.v3.details.IRecordDataResponse): record.v3.details.RecordDataResponse; + + /** + * Encodes the specified RecordDataResponse message. Does not implicitly {@link record.v3.details.RecordDataResponse.verify|verify} messages. + * @param message RecordDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.details.IRecordDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecordDataResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordDataResponse + * @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): record.v3.details.RecordDataResponse; + + /** + * Creates a RecordDataResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordDataResponse + */ + public static fromObject(object: { [k: string]: any }): record.v3.details.RecordDataResponse; + + /** + * Creates a plain object from a RecordDataResponse message. Also converts values to other types if specified. + * @param message RecordDataResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.details.RecordDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecordDataResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecordDataResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RecordAccessRequest. */ + interface IRecordAccessRequest { + + /** the list of record UIDs to retrieve information for. */ + recordUids?: (Uint8Array[]|null); + + /** + * Pagination parameters. + * If not provided, uses defaults (page 0, size 100). + */ + page?: (keeper.api.common.IPage|null); + } + + /** + * Represents a record accessors request. Record details include whom the record has been + * shared with (user or team), and what role and permissions the accessors have over the record. + */ + class RecordAccessRequest implements IRecordAccessRequest { + + /** + * Constructs a new RecordAccessRequest. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.details.IRecordAccessRequest); + + /** the list of record UIDs to retrieve information for. */ + public recordUids: Uint8Array[]; + + /** + * Pagination parameters. + * If not provided, uses defaults (page 0, size 100). + */ + public page?: (keeper.api.common.IPage|null); + + /** + * Creates a new RecordAccessRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordAccessRequest instance + */ + public static create(properties?: record.v3.details.IRecordAccessRequest): record.v3.details.RecordAccessRequest; - /** - * Creates a plain object from a ServiceLogClearResponse message. Also converts values to other types if specified. - * @param message ServiceLogClearResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ServiceLogger.ServiceLogClearResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified RecordAccessRequest message. Does not implicitly {@link record.v3.details.RecordAccessRequest.verify|verify} messages. + * @param message RecordAccessRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.details.IRecordAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this ServiceLogClearResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a RecordAccessRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordAccessRequest + * @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): record.v3.details.RecordAccessRequest; - /** - * Gets the default type url for ServiceLogClearResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } -} + /** + * Creates a RecordAccessRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordAccessRequest + */ + public static fromObject(object: { [k: string]: any }): record.v3.details.RecordAccessRequest; -/** Namespace Vault. */ -export namespace Vault { + /** + * Creates a plain object from a RecordAccessRequest message. Also converts values to other types if specified. + * @param message RecordAccessRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.details.RecordAccessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CacheStatus enum. */ - enum CacheStatus { - KEEP = 0, - CLEAR = 1 - } + /** + * Converts this RecordAccessRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a SyncDownRequest. */ - interface ISyncDownRequest { + /** + * Gets the default type url for RecordAccessRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** SyncDownRequest continuationToken */ - continuationToken?: (Uint8Array|null); + /** Properties of a RecordAccessResponse. */ + interface IRecordAccessResponse { - /** SyncDownRequest dataVersion */ - dataVersion?: (number|null); + /** List of record access permissions, detailing the accessors and their roles. */ + recordAccesses?: (record.v3.details.IRecordAccess[]|null); - /** SyncDownRequest debug */ - debug?: (boolean|null); - } + /** + * A list of record UIDs from the request that the calling user does not have access to. + * Each UID in this list corresponds to a record the user has no permission to access. + */ + forbiddenRecords?: (Uint8Array[]|null); - /** Represents a SyncDownRequest. */ - class SyncDownRequest implements ISyncDownRequest { + /** + * Pagination metadata for this response. + * Contains current page info, total count, and whether more pages exist. + */ + pageInfo?: (keeper.api.common.IPageInfo|null); + } - /** - * Constructs a new SyncDownRequest. - * @param [properties] Properties to set - */ - constructor(properties?: Vault.ISyncDownRequest); + /** Response message containing records' accesses and a list of inaccessible records for the calling user. */ + class RecordAccessResponse implements IRecordAccessResponse { - /** SyncDownRequest continuationToken. */ - public continuationToken: Uint8Array; + /** + * Constructs a new RecordAccessResponse. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.details.IRecordAccessResponse); - /** SyncDownRequest dataVersion. */ - public dataVersion: number; + /** List of record access permissions, detailing the accessors and their roles. */ + public recordAccesses: record.v3.details.IRecordAccess[]; - /** SyncDownRequest debug. */ - public debug: boolean; + /** + * A list of record UIDs from the request that the calling user does not have access to. + * Each UID in this list corresponds to a record the user has no permission to access. + */ + public forbiddenRecords: Uint8Array[]; - /** - * Creates a new SyncDownRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SyncDownRequest instance - */ - public static create(properties?: Vault.ISyncDownRequest): Vault.SyncDownRequest; + /** + * Pagination metadata for this response. + * Contains current page info, total count, and whether more pages exist. + */ + public pageInfo?: (keeper.api.common.IPageInfo|null); - /** - * Encodes the specified SyncDownRequest message. Does not implicitly {@link Vault.SyncDownRequest.verify|verify} messages. - * @param message SyncDownRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Vault.ISyncDownRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new RecordAccessResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordAccessResponse instance + */ + public static create(properties?: record.v3.details.IRecordAccessResponse): record.v3.details.RecordAccessResponse; - /** - * Decodes a SyncDownRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SyncDownRequest - * @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): Vault.SyncDownRequest; + /** + * Encodes the specified RecordAccessResponse message. Does not implicitly {@link record.v3.details.RecordAccessResponse.verify|verify} messages. + * @param message RecordAccessResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.details.IRecordAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a SyncDownRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SyncDownRequest - */ - public static fromObject(object: { [k: string]: any }): Vault.SyncDownRequest; + /** + * Decodes a RecordAccessResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordAccessResponse + * @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): record.v3.details.RecordAccessResponse; - /** - * Creates a plain object from a SyncDownRequest message. Also converts values to other types if specified. - * @param message SyncDownRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Vault.SyncDownRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a RecordAccessResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordAccessResponse + */ + public static fromObject(object: { [k: string]: any }): record.v3.details.RecordAccessResponse; - /** - * Converts this SyncDownRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a RecordAccessResponse message. Also converts values to other types if specified. + * @param message RecordAccessResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.details.RecordAccessResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for SyncDownRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this RecordAccessResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a SyncDownResponse. */ - interface ISyncDownResponse { + /** + * Gets the default type url for RecordAccessResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** SyncDownResponse continuationToken */ - continuationToken?: (Uint8Array|null); + /** Properties of a RecordAccessorDetailsRequest. */ + interface IRecordAccessorDetailsRequest { - /** SyncDownResponse hasMore */ - hasMore?: (boolean|null); + /** The record UID to retrieve information for. */ + recordUid?: (Uint8Array|null); - /** SyncDownResponse cacheStatus */ - cacheStatus?: (Vault.CacheStatus|null); + /** The accessor UID (user or team) to retrieve information for. */ + accessorUid?: (Uint8Array|null); - /** SyncDownResponse userFolders */ - userFolders?: (Vault.IUserFolder[]|null); + /** + * Pagination parameters. + * If not provided, uses defaults (page 0, size 100). + */ + page?: (keeper.api.common.IPage|null); + } - /** SyncDownResponse sharedFolders */ - sharedFolders?: (Vault.ISharedFolder[]|null); + /** Represents a record accessor details request. */ + class RecordAccessorDetailsRequest implements IRecordAccessorDetailsRequest { - /** SyncDownResponse userFolderSharedFolders */ - userFolderSharedFolders?: (Vault.IUserFolderSharedFolder[]|null); + /** + * Constructs a new RecordAccessorDetailsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.details.IRecordAccessorDetailsRequest); - /** SyncDownResponse sharedFolderFolders */ - sharedFolderFolders?: (Vault.ISharedFolderFolder[]|null); + /** The record UID to retrieve information for. */ + public recordUid: Uint8Array; - /** SyncDownResponse records */ - records?: (Vault.IRecord[]|null); + /** The accessor UID (user or team) to retrieve information for. */ + public accessorUid: Uint8Array; - /** SyncDownResponse recordMetaData */ - recordMetaData?: (Vault.IRecordMetaData[]|null); + /** + * Pagination parameters. + * If not provided, uses defaults (page 0, size 100). + */ + public page?: (keeper.api.common.IPage|null); - /** SyncDownResponse nonSharedData */ - nonSharedData?: (Vault.INonSharedData[]|null); + /** + * Creates a new RecordAccessorDetailsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordAccessorDetailsRequest instance + */ + public static create(properties?: record.v3.details.IRecordAccessorDetailsRequest): record.v3.details.RecordAccessorDetailsRequest; - /** SyncDownResponse recordLinks */ - recordLinks?: (Vault.IRecordLink[]|null); + /** + * Encodes the specified RecordAccessorDetailsRequest message. Does not implicitly {@link record.v3.details.RecordAccessorDetailsRequest.verify|verify} messages. + * @param message RecordAccessorDetailsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.details.IRecordAccessorDetailsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** SyncDownResponse userFolderRecords */ - userFolderRecords?: (Vault.IUserFolderRecord[]|null); + /** + * Decodes a RecordAccessorDetailsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordAccessorDetailsRequest + * @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): record.v3.details.RecordAccessorDetailsRequest; - /** SyncDownResponse sharedFolderRecords */ - sharedFolderRecords?: (Vault.ISharedFolderRecord[]|null); + /** + * Creates a RecordAccessorDetailsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordAccessorDetailsRequest + */ + public static fromObject(object: { [k: string]: any }): record.v3.details.RecordAccessorDetailsRequest; - /** SyncDownResponse sharedFolderFolderRecords */ - sharedFolderFolderRecords?: (Vault.ISharedFolderFolderRecord[]|null); + /** + * Creates a plain object from a RecordAccessorDetailsRequest message. Also converts values to other types if specified. + * @param message RecordAccessorDetailsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.details.RecordAccessorDetailsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** SyncDownResponse sharedFolderUsers */ - sharedFolderUsers?: (Vault.ISharedFolderUser[]|null); + /** + * Converts this RecordAccessorDetailsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** SyncDownResponse sharedFolderTeams */ - sharedFolderTeams?: (Vault.ISharedFolderTeam[]|null); + /** + * Gets the default type url for RecordAccessorDetailsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** SyncDownResponse recordAddAuditData */ - recordAddAuditData?: (Uint8Array[]|null); + /** Properties of a RecordAccessorDetailsResponse. */ + interface IRecordAccessorDetailsResponse { - /** SyncDownResponse teams */ - teams?: (Vault.ITeam[]|null); + /** Set if has direct access to the record. */ + recordAccessData?: (Folder.IRecordAccessData|null); - /** SyncDownResponse sharingChanges */ - sharingChanges?: (Vault.ISharingChange[]|null); + /** The list of folder the user has access and that contain the record. */ + folderAccessData?: (Folder.IFolderAccessData[]|null); - /** SyncDownResponse profile */ - profile?: (Vault.IProfile|null); + /** + * Pagination metadata for this response. + * Contains current page info, total count, and whether more pages exist. + */ + pageInfo?: (keeper.api.common.IPageInfo|null); + } - /** SyncDownResponse profilePic */ - profilePic?: (Vault.IProfilePic|null); + /** + * Represents a record accessor details response. + * Record accessor details include information on how a specific accessor obtained access to a record. + */ + class RecordAccessorDetailsResponse implements IRecordAccessorDetailsResponse { + + /** + * Constructs a new RecordAccessorDetailsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.details.IRecordAccessorDetailsResponse); - /** SyncDownResponse pendingTeamMembers */ - pendingTeamMembers?: (Vault.IPendingTeamMember[]|null); + /** Set if has direct access to the record. */ + public recordAccessData?: (Folder.IRecordAccessData|null); - /** SyncDownResponse breachWatchRecords */ - breachWatchRecords?: (Vault.IBreachWatchRecord[]|null); + /** The list of folder the user has access and that contain the record. */ + public folderAccessData: Folder.IFolderAccessData[]; - /** SyncDownResponse userAuths */ - userAuths?: (Vault.IUserAuth[]|null); + /** + * * Pagination metadata for this response. + * * Contains current page info, total count, and whether more pages exist. + */ + public pageInfo?: (keeper.api.common.IPageInfo|null); - /** SyncDownResponse breachWatchSecurityData */ - breachWatchSecurityData?: (Vault.IBreachWatchSecurityData[]|null); + /** + * Creates a new RecordAccessorDetailsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordAccessorDetailsResponse instance + */ + public static create(properties?: record.v3.details.IRecordAccessorDetailsResponse): record.v3.details.RecordAccessorDetailsResponse; - /** SyncDownResponse reusedPasswords */ - reusedPasswords?: (Vault.IReusedPasswords|null); + /** + * Encodes the specified RecordAccessorDetailsResponse message. Does not implicitly {@link record.v3.details.RecordAccessorDetailsResponse.verify|verify} messages. + * @param message RecordAccessorDetailsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.details.IRecordAccessorDetailsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** SyncDownResponse removedUserFolders */ - removedUserFolders?: (Uint8Array[]|null); + /** + * Decodes a RecordAccessorDetailsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordAccessorDetailsResponse + * @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): record.v3.details.RecordAccessorDetailsResponse; - /** SyncDownResponse removedSharedFolders */ - removedSharedFolders?: (Uint8Array[]|null); + /** + * Creates a RecordAccessorDetailsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordAccessorDetailsResponse + */ + public static fromObject(object: { [k: string]: any }): record.v3.details.RecordAccessorDetailsResponse; - /** SyncDownResponse removedUserFolderSharedFolders */ - removedUserFolderSharedFolders?: (Vault.IUserFolderSharedFolder[]|null); + /** + * Creates a plain object from a RecordAccessorDetailsResponse message. Also converts values to other types if specified. + * @param message RecordAccessorDetailsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.details.RecordAccessorDetailsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** SyncDownResponse removedSharedFolderFolders */ - removedSharedFolderFolders?: (Vault.ISharedFolderFolder[]|null); + /** + * Converts this RecordAccessorDetailsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** SyncDownResponse removedRecords */ - removedRecords?: (Uint8Array[]|null); + /** + * Gets the default type url for RecordAccessorDetailsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** SyncDownResponse removedRecordLinks */ - removedRecordLinks?: (Vault.IRecordLink[]|null); + /** Properties of a RecordAccess. */ + interface IRecordAccess { - /** SyncDownResponse removedUserFolderRecords */ - removedUserFolderRecords?: (Vault.IUserFolderRecord[]|null); + /** Core access details including permissions, role, and metadata. */ + data?: (Folder.IRecordAccessData|null); - /** SyncDownResponse removedSharedFolderRecords */ - removedSharedFolderRecords?: (Vault.ISharedFolderRecord[]|null); + /** The record accessor. */ + accessorInfo?: (record.v3.details.IAccessorInfo|null); + } - /** SyncDownResponse removedSharedFolderFolderRecords */ - removedSharedFolderFolderRecords?: (Vault.ISharedFolderFolderRecord[]|null); + /** + * Describes the access a user has to a specific record. + * Includes ownership, access roles, and additional sharing metadata. + */ + class RecordAccess implements IRecordAccess { - /** SyncDownResponse removedSharedFolderUsers */ - removedSharedFolderUsers?: (Vault.ISharedFolderUser[]|null); + /** + * Constructs a new RecordAccess. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.details.IRecordAccess); - /** SyncDownResponse removedSharedFolderTeams */ - removedSharedFolderTeams?: (Vault.ISharedFolderTeam[]|null); + /** Core access details including permissions, role, and metadata. */ + public data?: (Folder.IRecordAccessData|null); - /** SyncDownResponse removedTeams */ - removedTeams?: (Uint8Array[]|null); + /** The record accessor. */ + public accessorInfo?: (record.v3.details.IAccessorInfo|null); - /** SyncDownResponse ksmAppShares */ - ksmAppShares?: (Vault.IKsmChange[]|null); + /** + * Creates a new RecordAccess instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordAccess instance + */ + public static create(properties?: record.v3.details.IRecordAccess): record.v3.details.RecordAccess; - /** SyncDownResponse ksmAppClients */ - ksmAppClients?: (Vault.IKsmChange[]|null); + /** + * Encodes the specified RecordAccess message. Does not implicitly {@link record.v3.details.RecordAccess.verify|verify} messages. + * @param message RecordAccess message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.details.IRecordAccess, writer?: $protobuf.Writer): $protobuf.Writer; - /** SyncDownResponse shareInvitations */ - shareInvitations?: (Vault.IShareInvitation[]|null); + /** + * Decodes a RecordAccess message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordAccess + * @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): record.v3.details.RecordAccess; - /** SyncDownResponse diagnostics */ - diagnostics?: (Vault.ISyncDiagnostics|null); + /** + * Creates a RecordAccess message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordAccess + */ + public static fromObject(object: { [k: string]: any }): record.v3.details.RecordAccess; - /** SyncDownResponse recordRotations */ - recordRotations?: (Vault.IRecordRotation[]|null); + /** + * Creates a plain object from a RecordAccess message. Also converts values to other types if specified. + * @param message RecordAccess + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.details.RecordAccess, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** SyncDownResponse users */ - users?: (Vault.IUser[]|null); + /** + * Converts this RecordAccess to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** SyncDownResponse removedUsers */ - removedUsers?: (Uint8Array[]|null); + /** + * Gets the default type url for RecordAccess + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** SyncDownResponse securityScoreData */ - securityScoreData?: (Vault.ISecurityScoreData[]|null); + /** Properties of an AccessorInfo. */ + interface IAccessorInfo { - /** SyncDownResponse notificationSync */ - notificationSync?: (NotificationCenter.INotificationWrapper[]|null); + /** accessor name */ + name?: (string|null); + } - /** SyncDownResponse keeperDriveData */ - keeperDriveData?: (Vault.IKeeperDriveData|null); - } + /** The entity representing the record accessor. Either a team or a user */ + class AccessorInfo implements IAccessorInfo { - /** Represents a SyncDownResponse. */ - class SyncDownResponse implements ISyncDownResponse { + /** + * Constructs a new AccessorInfo. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.details.IAccessorInfo); - /** - * Constructs a new SyncDownResponse. - * @param [properties] Properties to set - */ - constructor(properties?: Vault.ISyncDownResponse); + /** accessor name */ + public name: string; - /** SyncDownResponse continuationToken. */ - public continuationToken: Uint8Array; + /** + * Creates a new AccessorInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns AccessorInfo instance + */ + public static create(properties?: record.v3.details.IAccessorInfo): record.v3.details.AccessorInfo; - /** SyncDownResponse hasMore. */ - public hasMore: boolean; + /** + * Encodes the specified AccessorInfo message. Does not implicitly {@link record.v3.details.AccessorInfo.verify|verify} messages. + * @param message AccessorInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.details.IAccessorInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** SyncDownResponse cacheStatus. */ - public cacheStatus: Vault.CacheStatus; + /** + * Decodes an AccessorInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AccessorInfo + * @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): record.v3.details.AccessorInfo; - /** SyncDownResponse userFolders. */ - public userFolders: Vault.IUserFolder[]; + /** + * Creates an AccessorInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AccessorInfo + */ + public static fromObject(object: { [k: string]: any }): record.v3.details.AccessorInfo; - /** SyncDownResponse sharedFolders. */ - public sharedFolders: Vault.ISharedFolder[]; + /** + * Creates a plain object from an AccessorInfo message. Also converts values to other types if specified. + * @param message AccessorInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.details.AccessorInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** SyncDownResponse userFolderSharedFolders. */ - public userFolderSharedFolders: Vault.IUserFolderSharedFolder[]; + /** + * Converts this AccessorInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** SyncDownResponse sharedFolderFolders. */ - public sharedFolderFolders: Vault.ISharedFolderFolder[]; + /** + * Gets the default type url for AccessorInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** SyncDownResponse records. */ - public records: Vault.IRecord[]; + /** Namespace sharing. */ + namespace sharing { - /** SyncDownResponse recordMetaData. */ - public recordMetaData: Vault.IRecordMetaData[]; + /** Represents a RecordSharingService */ + class RecordSharingService extends $protobuf.rpc.Service { - /** SyncDownResponse nonSharedData. */ - public nonSharedData: Vault.INonSharedData[]; + /** + * Constructs a new RecordSharingService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** SyncDownResponse recordLinks. */ - public recordLinks: Vault.IRecordLink[]; + /** + * Creates new RecordSharingService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RecordSharingService; - /** SyncDownResponse userFolderRecords. */ - public userFolderRecords: Vault.IUserFolderRecord[]; + /** + * Manage direct sharing of records: grant, update and revoke user access to + * records in the same request + * @param request Request message or plain object + * @param callback Node-style callback called with the error, if any, and Response + */ + public shareRecord(request: record.v3.sharing.IRequest, callback: record.v3.sharing.RecordSharingService.ShareRecordCallback): void; - /** SyncDownResponse sharedFolderRecords. */ - public sharedFolderRecords: Vault.ISharedFolderRecord[]; + /** + * Manage direct sharing of records: grant, update and revoke user access to + * records in the same request + * @param request Request message or plain object + * @returns Promise + */ + public shareRecord(request: record.v3.sharing.IRequest): Promise; + } - /** SyncDownResponse sharedFolderFolderRecords. */ - public sharedFolderFolderRecords: Vault.ISharedFolderFolderRecord[]; + namespace RecordSharingService { - /** SyncDownResponse sharedFolderUsers. */ - public sharedFolderUsers: Vault.ISharedFolderUser[]; + /** + * Callback as used by {@link record.v3.sharing.RecordSharingService#shareRecord}. + * @param error Error, if any + * @param [response] Response + */ + type ShareRecordCallback = (error: (Error|null), response?: record.v3.sharing.Response) => void; + } - /** SyncDownResponse sharedFolderTeams. */ - public sharedFolderTeams: Vault.ISharedFolderTeam[]; + /** Properties of a Request. */ + interface IRequest { - /** SyncDownResponse recordAddAuditData. */ - public recordAddAuditData: Uint8Array[]; + /** + * add new permissions to a list of existing records + * corresponds to creating new records shares, directly with "someone", whether a team or a specific user + */ + createSharingPermissions?: (record.v3.sharing.IPermissions[]|null); - /** SyncDownResponse teams. */ - public teams: Vault.ITeam[]; + /** update existing permissions of a list of existing records shared with a team or a user */ + updateSharingPermissions?: (record.v3.sharing.IPermissions[]|null); - /** SyncDownResponse sharingChanges. */ - public sharingChanges: Vault.ISharingChange[]; + /** + * remove all sharing permissions from existing records + * specified records that were previously shared with "someone" (user or team) directly will be "unshared" + */ + revokeSharingPermissions?: (record.v3.sharing.IPermissions[]|null); - /** SyncDownResponse profile. */ - public profile?: (Vault.IProfile|null); + /** A string that is sent back in the push notification to identify the user who initiated the push (device id) */ + echo?: (string|null); + } - /** SyncDownResponse profilePic. */ - public profilePic?: (Vault.IProfilePic|null); + /** + * Represents a request encapsulating new, updated and deleted record sharing permissions. + * References: + * https://keeper.atlassian.net/wiki/spaces/FEAT/pages/1540653191/Shared+Subfolder+Permissions+aka+best+project+ever + * https://keeper.atlassian.net/wiki/spaces/KA/pages/2520711174/records_share_update+v3 + */ + class Request implements IRequest { - /** SyncDownResponse pendingTeamMembers. */ - public pendingTeamMembers: Vault.IPendingTeamMember[]; + /** + * Constructs a new Request. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.sharing.IRequest); - /** SyncDownResponse breachWatchRecords. */ - public breachWatchRecords: Vault.IBreachWatchRecord[]; + /** + * add new permissions to a list of existing records + * corresponds to creating new records shares, directly with "someone", whether a team or a specific user + */ + public createSharingPermissions: record.v3.sharing.IPermissions[]; - /** SyncDownResponse userAuths. */ - public userAuths: Vault.IUserAuth[]; + /** update existing permissions of a list of existing records shared with a team or a user */ + public updateSharingPermissions: record.v3.sharing.IPermissions[]; - /** SyncDownResponse breachWatchSecurityData. */ - public breachWatchSecurityData: Vault.IBreachWatchSecurityData[]; + /** + * remove all sharing permissions from existing records + * specified records that were previously shared with "someone" (user or team) directly will be "unshared" + */ + public revokeSharingPermissions: record.v3.sharing.IPermissions[]; - /** SyncDownResponse reusedPasswords. */ - public reusedPasswords?: (Vault.IReusedPasswords|null); + /** A string that is sent back in the push notification to identify the user who initiated the push (device id) */ + public echo: string; - /** SyncDownResponse removedUserFolders. */ - public removedUserFolders: Uint8Array[]; + /** + * Creates a new Request instance using the specified properties. + * @param [properties] Properties to set + * @returns Request instance + */ + public static create(properties?: record.v3.sharing.IRequest): record.v3.sharing.Request; - /** SyncDownResponse removedSharedFolders. */ - public removedSharedFolders: Uint8Array[]; + /** + * Encodes the specified Request message. Does not implicitly {@link record.v3.sharing.Request.verify|verify} messages. + * @param message Request message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.sharing.IRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** SyncDownResponse removedUserFolderSharedFolders. */ - public removedUserFolderSharedFolders: Vault.IUserFolderSharedFolder[]; + /** + * Decodes a Request message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Request + * @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): record.v3.sharing.Request; - /** SyncDownResponse removedSharedFolderFolders. */ - public removedSharedFolderFolders: Vault.ISharedFolderFolder[]; + /** + * Creates a Request message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Request + */ + public static fromObject(object: { [k: string]: any }): record.v3.sharing.Request; - /** SyncDownResponse removedRecords. */ - public removedRecords: Uint8Array[]; + /** + * Creates a plain object from a Request message. Also converts values to other types if specified. + * @param message Request + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.sharing.Request, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** SyncDownResponse removedRecordLinks. */ - public removedRecordLinks: Vault.IRecordLink[]; + /** + * Converts this Request to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** SyncDownResponse removedUserFolderRecords. */ - public removedUserFolderRecords: Vault.IUserFolderRecord[]; + /** + * Gets the default type url for Request + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** SyncDownResponse removedSharedFolderRecords. */ - public removedSharedFolderRecords: Vault.ISharedFolderRecord[]; + /** Properties of a Permissions. */ + interface IPermissions { - /** SyncDownResponse removedSharedFolderFolderRecords. */ - public removedSharedFolderFolderRecords: Vault.ISharedFolderFolderRecord[]; + /** The uid of the recipient the record is shared with. Must be either a team uid or a user uid. */ + recipientUid?: (Uint8Array|null); - /** SyncDownResponse removedSharedFolderUsers. */ - public removedSharedFolderUsers: Vault.ISharedFolderUser[]; + /** Identifier of the record being shared or whose sharing permissions are being updated/removed */ + recordUid?: (Uint8Array|null); - /** SyncDownResponse removedSharedFolderTeams. */ - public removedSharedFolderTeams: Vault.ISharedFolderTeam[]; + /** The record key encrypted with the recipient's public key (see. @username) */ + recordKey?: (Uint8Array|null); - /** SyncDownResponse removedTeams. */ - public removedTeams: Uint8Array[]; + /** Use ECIES algorithm instead of RSA to share to the recipient's public ECC key (see. @username) */ + useEccKey?: (boolean|null); - /** SyncDownResponse ksmAppShares. */ - public ksmAppShares: Vault.IKsmChange[]; + /** + * The set of record permissions granted to the recipient (@username). + * Permissions apply in the context of the specified folder. + */ + rules?: (Folder.IRecordAccessData|null); + } - /** SyncDownResponse ksmAppClients. */ - public ksmAppClients: Vault.IKsmChange[]; + /** Represents a Permissions. */ + class Permissions implements IPermissions { - /** SyncDownResponse shareInvitations. */ - public shareInvitations: Vault.IShareInvitation[]; + /** + * Constructs a new Permissions. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.sharing.IPermissions); - /** SyncDownResponse diagnostics. */ - public diagnostics?: (Vault.ISyncDiagnostics|null); + /** The uid of the recipient the record is shared with. Must be either a team uid or a user uid. */ + public recipientUid: Uint8Array; - /** SyncDownResponse recordRotations. */ - public recordRotations: Vault.IRecordRotation[]; + /** Identifier of the record being shared or whose sharing permissions are being updated/removed */ + public recordUid: Uint8Array; - /** SyncDownResponse users. */ - public users: Vault.IUser[]; + /** The record key encrypted with the recipient's public key (see. @username) */ + public recordKey: Uint8Array; - /** SyncDownResponse removedUsers. */ - public removedUsers: Uint8Array[]; + /** Use ECIES algorithm instead of RSA to share to the recipient's public ECC key (see. @username) */ + public useEccKey: boolean; - /** SyncDownResponse securityScoreData. */ - public securityScoreData: Vault.ISecurityScoreData[]; + /** + * The set of record permissions granted to the recipient (@username). + * Permissions apply in the context of the specified folder. + */ + public rules?: (Folder.IRecordAccessData|null); - /** SyncDownResponse notificationSync. */ - public notificationSync: NotificationCenter.INotificationWrapper[]; + /** + * Creates a new Permissions instance using the specified properties. + * @param [properties] Properties to set + * @returns Permissions instance + */ + public static create(properties?: record.v3.sharing.IPermissions): record.v3.sharing.Permissions; - /** SyncDownResponse keeperDriveData. */ - public keeperDriveData?: (Vault.IKeeperDriveData|null); + /** + * Encodes the specified Permissions message. Does not implicitly {@link record.v3.sharing.Permissions.verify|verify} messages. + * @param message Permissions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.sharing.IPermissions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new SyncDownResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SyncDownResponse instance - */ - public static create(properties?: Vault.ISyncDownResponse): Vault.SyncDownResponse; + /** + * Decodes a Permissions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Permissions + * @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): record.v3.sharing.Permissions; - /** - * Encodes the specified SyncDownResponse message. Does not implicitly {@link Vault.SyncDownResponse.verify|verify} messages. - * @param message SyncDownResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Vault.ISyncDownResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a Permissions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Permissions + */ + public static fromObject(object: { [k: string]: any }): record.v3.sharing.Permissions; - /** - * Decodes a SyncDownResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SyncDownResponse - * @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): Vault.SyncDownResponse; + /** + * Creates a plain object from a Permissions message. Also converts values to other types if specified. + * @param message Permissions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.sharing.Permissions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a SyncDownResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SyncDownResponse - */ - public static fromObject(object: { [k: string]: any }): Vault.SyncDownResponse; + /** + * Converts this Permissions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a SyncDownResponse message. Also converts values to other types if specified. - * @param message SyncDownResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Vault.SyncDownResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for Permissions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this SyncDownResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a Response. */ + interface IResponse { - /** - * Gets the default type url for SyncDownResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** The list of the respective sharing status of the newly shared records */ + createdSharingStatus?: (record.v3.sharing.IStatus[]|null); - /** Properties of a DriveRecord. */ - interface IDriveRecord { + /** The list of the respective sharing status of the updated shared records */ + updatedSharingStatus?: (record.v3.sharing.IStatus[]|null); - /** DriveRecord recordUid */ - recordUid?: (Uint8Array|null); + /** The list of the respective sharing status of records that have been "unshared" */ + revokedSharingStatus?: (record.v3.sharing.IStatus[]|null); + } - /** DriveRecord revision */ - revision?: (number|null); + /** Represents a Response. */ + class Response implements IResponse { - /** DriveRecord version */ - version?: (number|null); + /** + * Constructs a new Response. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.sharing.IResponse); - /** DriveRecord shared */ - shared?: (boolean|null); + /** The list of the respective sharing status of the newly shared records */ + public createdSharingStatus: record.v3.sharing.IStatus[]; - /** DriveRecord clientModifiedTime */ - clientModifiedTime?: (number|null); + /** The list of the respective sharing status of the updated shared records */ + public updatedSharingStatus: record.v3.sharing.IStatus[]; - /** DriveRecord fileSize */ - fileSize?: (number|null); + /** The list of the respective sharing status of records that have been "unshared" */ + public revokedSharingStatus: record.v3.sharing.IStatus[]; - /** DriveRecord thumbnailSize */ - thumbnailSize?: (number|null); - } + /** + * Creates a new Response instance using the specified properties. + * @param [properties] Properties to set + * @returns Response instance + */ + public static create(properties?: record.v3.sharing.IResponse): record.v3.sharing.Response; - /** Represents a DriveRecord. */ - class DriveRecord implements IDriveRecord { + /** + * Encodes the specified Response message. Does not implicitly {@link record.v3.sharing.Response.verify|verify} messages. + * @param message Response message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.sharing.IResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new DriveRecord. - * @param [properties] Properties to set - */ - constructor(properties?: Vault.IDriveRecord); + /** + * Decodes a Response message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Response + * @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): record.v3.sharing.Response; - /** DriveRecord recordUid. */ - public recordUid: Uint8Array; + /** + * Creates a Response message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Response + */ + public static fromObject(object: { [k: string]: any }): record.v3.sharing.Response; - /** DriveRecord revision. */ - public revision: number; + /** + * Creates a plain object from a Response message. Also converts values to other types if specified. + * @param message Response + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.sharing.Response, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** DriveRecord version. */ - public version: number; + /** + * Converts this Response to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** DriveRecord shared. */ - public shared: boolean; + /** + * Gets the default type url for Response + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** DriveRecord clientModifiedTime. */ - public clientModifiedTime: number; + /** Properties of a Status. */ + interface IStatus { - /** DriveRecord fileSize. */ - public fileSize: number; + /** Identifier of the record being shared or whose sharing permissions are being updated/removed */ + recordUid?: (Uint8Array|null); - /** DriveRecord thumbnailSize. */ - public thumbnailSize: number; + /** Status of the request (success or error) */ + status?: (record.v3.sharing.SharingStatus|null); - /** - * Creates a new DriveRecord instance using the specified properties. - * @param [properties] Properties to set - * @returns DriveRecord instance - */ - public static create(properties?: Vault.IDriveRecord): Vault.DriveRecord; + /** Translatable, human-readable message */ + message?: (string|null); - /** - * Encodes the specified DriveRecord message. Does not implicitly {@link Vault.DriveRecord.verify|verify} messages. - * @param message DriveRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Vault.IDriveRecord, writer?: $protobuf.Writer): $protobuf.Writer; + /** XOR(userUid, teamUid); the recipient the record was shared with */ + recipientUid?: (Uint8Array|null); + } - /** - * Decodes a DriveRecord message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DriveRecord - * @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): Vault.DriveRecord; + /** Represents a Status. */ + class Status implements IStatus { - /** - * Creates a DriveRecord message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DriveRecord - */ - public static fromObject(object: { [k: string]: any }): Vault.DriveRecord; + /** + * Constructs a new Status. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.sharing.IStatus); - /** - * Creates a plain object from a DriveRecord message. Also converts values to other types if specified. - * @param message DriveRecord - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Vault.DriveRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Identifier of the record being shared or whose sharing permissions are being updated/removed */ + public recordUid: Uint8Array; - /** - * Converts this DriveRecord to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Status of the request (success or error) */ + public status: record.v3.sharing.SharingStatus; - /** - * Gets the default type url for DriveRecord - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Translatable, human-readable message */ + public message: string; - /** Properties of a FolderSharingState. */ - interface IFolderSharingState { + /** XOR(userUid, teamUid); the recipient the record was shared with */ + public recipientUid: Uint8Array; - /** FolderSharingState folderUid */ - folderUid?: (Uint8Array|null); + /** + * Creates a new Status instance using the specified properties. + * @param [properties] Properties to set + * @returns Status instance + */ + public static create(properties?: record.v3.sharing.IStatus): record.v3.sharing.Status; - /** FolderSharingState shared */ - shared?: (boolean|null); + /** + * Encodes the specified Status message. Does not implicitly {@link record.v3.sharing.Status.verify|verify} messages. + * @param message Status message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.sharing.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** FolderSharingState count */ - count?: (number|null); - } + /** + * Decodes a Status message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Status + * @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): record.v3.sharing.Status; - /** Represents a FolderSharingState. */ - class FolderSharingState implements IFolderSharingState { + /** + * Creates a Status message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Status + */ + public static fromObject(object: { [k: string]: any }): record.v3.sharing.Status; - /** - * Constructs a new FolderSharingState. - * @param [properties] Properties to set - */ - constructor(properties?: Vault.IFolderSharingState); + /** + * Creates a plain object from a Status message. Also converts values to other types if specified. + * @param message Status + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.sharing.Status, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FolderSharingState folderUid. */ - public folderUid: Uint8Array; + /** + * Converts this Status to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** FolderSharingState shared. */ - public shared: boolean; + /** + * Gets the default type url for Status + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** FolderSharingState count. */ - public count: number; + /** SharingStatus enum. */ + enum SharingStatus { + SUCCESS = 0, + PENDING_ACCEPT = 1, + USER_NOT_FOUND = 2, + ALREADY_SHARED = 3, + NOT_ALLOWED_TO_SHARE = 4, + ACCESS_DENIED = 5, + NOT_ALLOWED_TO_SET_PERMISSIONS = 6 + } - /** - * Creates a new FolderSharingState instance using the specified properties. - * @param [properties] Properties to set - * @returns FolderSharingState instance - */ - public static create(properties?: Vault.IFolderSharingState): Vault.FolderSharingState; + /** Properties of a RevokedAccess. */ + interface IRevokedAccess { - /** - * Encodes the specified FolderSharingState message. Does not implicitly {@link Vault.FolderSharingState.verify|verify} messages. - * @param message FolderSharingState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Vault.IFolderSharingState, writer?: $protobuf.Writer): $protobuf.Writer; + /** the uid of the record whose access have been revoked */ + recordUid?: (Uint8Array|null); - /** - * Decodes a FolderSharingState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FolderSharingState - * @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): Vault.FolderSharingState; + /** the uid of actor whose access has been revoked. represents a User (an account) */ + actorUid?: (Uint8Array|null); + } - /** - * Creates a FolderSharingState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FolderSharingState - */ - public static fromObject(object: { [k: string]: any }): Vault.FolderSharingState; + /** Represents a RevokedAccess. */ + class RevokedAccess implements IRevokedAccess { - /** - * Creates a plain object from a FolderSharingState message. Also converts values to other types if specified. - * @param message FolderSharingState - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Vault.FolderSharingState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new RevokedAccess. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.sharing.IRevokedAccess); - /** - * Converts this FolderSharingState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** the uid of the record whose access have been revoked */ + public recordUid: Uint8Array; - /** - * Gets the default type url for FolderSharingState - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** the uid of actor whose access has been revoked. represents a User (an account) */ + public actorUid: Uint8Array; - /** Properties of a KeeperDriveData. */ - interface IKeeperDriveData { + /** + * Creates a new RevokedAccess instance using the specified properties. + * @param [properties] Properties to set + * @returns RevokedAccess instance + */ + public static create(properties?: record.v3.sharing.IRevokedAccess): record.v3.sharing.RevokedAccess; - /** KeeperDriveData folders */ - folders?: (Folder.IFolderData[]|null); + /** + * Encodes the specified RevokedAccess message. Does not implicitly {@link record.v3.sharing.RevokedAccess.verify|verify} messages. + * @param message RevokedAccess message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.sharing.IRevokedAccess, writer?: $protobuf.Writer): $protobuf.Writer; - /** KeeperDriveData folderKeys */ - folderKeys?: (Folder.IFolderKey[]|null); + /** + * Decodes a RevokedAccess message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RevokedAccess + * @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): record.v3.sharing.RevokedAccess; - /** KeeperDriveData folderAccesses */ - folderAccesses?: (Folder.IFolderAccessData[]|null); + /** + * Creates a RevokedAccess message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RevokedAccess + */ + public static fromObject(object: { [k: string]: any }): record.v3.sharing.RevokedAccess; - /** KeeperDriveData revokedFolderAccesses */ - revokedFolderAccesses?: (Folder.IRevokedAccess[]|null); + /** + * Creates a plain object from a RevokedAccess message. Also converts values to other types if specified. + * @param message RevokedAccess + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.sharing.RevokedAccess, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** KeeperDriveData recordData */ - recordData?: (Folder.IRecordData[]|null); + /** + * Converts this RevokedAccess to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** KeeperDriveData nonSharedData */ - nonSharedData?: (Vault.INonSharedData[]|null); + /** + * Gets the default type url for RevokedAccess + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** KeeperDriveData recordAccesses */ - recordAccesses?: (Folder.IRecordAccessData[]|null); + /** Properties of a RecordSharingState. */ + interface IRecordSharingState { - /** KeeperDriveData revokedRecordAccesses */ - revokedRecordAccesses?: (record.v3.sharing.IRevokedAccess[]|null); + /** The UID of the record this sharing state relates to. */ + recordUid?: (Uint8Array|null); - /** KeeperDriveData recordSharingStates */ - recordSharingStates?: (record.v3.sharing.IRecordSharingState[]|null); + /** True if the record is directly shared with non-owner actors. */ + isDirectlyShared?: (boolean|null); - /** KeeperDriveData recordLinks */ - recordLinks?: (Vault.IRecordLink[]|null); + /** True if the record is indirectly shared via folder access with non-owner actors. */ + isIndirectlyShared?: (boolean|null); - /** KeeperDriveData removedRecordLinks */ - removedRecordLinks?: (Vault.IRecordLink[]|null); + /** Synthetic convenience property: {@code isDirectlyShared || isIndirectlyShared}. */ + isShared?: (boolean|null); + } - /** KeeperDriveData breachWatchRecords */ - breachWatchRecords?: (Vault.IBreachWatchRecord[]|null); + /** + * Represents the sharing state of a single record. + * + *

This message captures whether a record is shared either directly (via explicit grants) + * or indirectly (via folder access). It includes a computed convenience field + * {@code isShared}, which is true if the record is shared through either mechanism. + * + *

This message is typically stored in a DAG edge and used by clients during sync + */ + class RecordSharingState implements IRecordSharingState { - /** KeeperDriveData securityScoreData */ - securityScoreData?: (Vault.ISecurityScoreData[]|null); + /** + * Constructs a new RecordSharingState. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.sharing.IRecordSharingState); - /** KeeperDriveData breachWatchSecurityData */ - breachWatchSecurityData?: (Vault.IBreachWatchSecurityData[]|null); + /** The UID of the record this sharing state relates to. */ + public recordUid: Uint8Array; - /** KeeperDriveData removedFolders */ - removedFolders?: (Folder.IFolderRemoved[]|null); + /** True if the record is directly shared with non-owner actors. */ + public isDirectlyShared: boolean; - /** KeeperDriveData removedFolderRecords */ - removedFolderRecords?: (Records.IFolderRecordKey[]|null); + /** True if the record is indirectly shared via folder access with non-owner actors. */ + public isIndirectlyShared: boolean; - /** KeeperDriveData folderRecords */ - folderRecords?: (Folder.IFolderRecord[]|null); + /** Synthetic convenience property: {@code isDirectlyShared || isIndirectlyShared}. */ + public isShared: boolean; - /** KeeperDriveData recordRotationData */ - recordRotationData?: (Vault.IRecordRotation[]|null); + /** + * Creates a new RecordSharingState instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordSharingState instance + */ + public static create(properties?: record.v3.sharing.IRecordSharingState): record.v3.sharing.RecordSharingState; - /** KeeperDriveData records */ - records?: (Vault.IDriveRecord[]|null); + /** + * Encodes the specified RecordSharingState message. Does not implicitly {@link record.v3.sharing.RecordSharingState.verify|verify} messages. + * @param message RecordSharingState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.sharing.IRecordSharingState, writer?: $protobuf.Writer): $protobuf.Writer; - /** KeeperDriveData folderSharingState */ - folderSharingState?: (Vault.IFolderSharingState[]|null); + /** + * Decodes a RecordSharingState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordSharingState + * @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): record.v3.sharing.RecordSharingState; - /** KeeperDriveData rawDagData */ - rawDagData?: (Dag.IDebugData[]|null); - } + /** + * Creates a RecordSharingState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordSharingState + */ + public static fromObject(object: { [k: string]: any }): record.v3.sharing.RecordSharingState; - /** Represents a KeeperDriveData. */ - class KeeperDriveData implements IKeeperDriveData { + /** + * Creates a plain object from a RecordSharingState message. Also converts values to other types if specified. + * @param message RecordSharingState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.sharing.RecordSharingState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new KeeperDriveData. - * @param [properties] Properties to set - */ - constructor(properties?: Vault.IKeeperDriveData); + /** + * Converts this RecordSharingState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** KeeperDriveData folders. */ - public folders: Folder.IFolderData[]; + /** + * Gets the default type url for RecordSharingState + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** KeeperDriveData folderKeys. */ - public folderKeys: Folder.IFolderKey[]; + /** Properties of a RecordsAddRequest. */ + interface IRecordsAddRequest { - /** KeeperDriveData folderAccesses. */ - public folderAccesses: Folder.IFolderAccessData[]; + /** RecordsAddRequest records */ + records?: (record.v3.IRecordAdd[]|null); - /** KeeperDriveData revokedFolderAccesses. */ - public revokedFolderAccesses: Folder.IRevokedAccess[]; + /** RecordsAddRequest clientTime */ + clientTime?: (number|null); - /** KeeperDriveData recordData. */ - public recordData: Folder.IRecordData[]; + /** RecordsAddRequest securityDataKeyType */ + securityDataKeyType?: (Records.RecordKeyType|null); + } - /** KeeperDriveData nonSharedData. */ - public nonSharedData: Vault.INonSharedData[]; + /** Represents a RecordsAddRequest. */ + class RecordsAddRequest implements IRecordsAddRequest { - /** KeeperDriveData recordAccesses. */ - public recordAccesses: Folder.IRecordAccessData[]; + /** + * Constructs a new RecordsAddRequest. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.IRecordsAddRequest); - /** KeeperDriveData revokedRecordAccesses. */ - public revokedRecordAccesses: record.v3.sharing.IRevokedAccess[]; + /** RecordsAddRequest records. */ + public records: record.v3.IRecordAdd[]; - /** KeeperDriveData recordSharingStates. */ - public recordSharingStates: record.v3.sharing.IRecordSharingState[]; + /** RecordsAddRequest clientTime. */ + public clientTime: number; - /** KeeperDriveData recordLinks. */ - public recordLinks: Vault.IRecordLink[]; + /** RecordsAddRequest securityDataKeyType. */ + public securityDataKeyType: Records.RecordKeyType; - /** KeeperDriveData removedRecordLinks. */ - public removedRecordLinks: Vault.IRecordLink[]; + /** + * Creates a new RecordsAddRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordsAddRequest instance + */ + public static create(properties?: record.v3.IRecordsAddRequest): record.v3.RecordsAddRequest; - /** KeeperDriveData breachWatchRecords. */ - public breachWatchRecords: Vault.IBreachWatchRecord[]; + /** + * Encodes the specified RecordsAddRequest message. Does not implicitly {@link record.v3.RecordsAddRequest.verify|verify} messages. + * @param message RecordsAddRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.IRecordsAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** KeeperDriveData securityScoreData. */ - public securityScoreData: Vault.ISecurityScoreData[]; + /** + * Decodes a RecordsAddRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordsAddRequest + * @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): record.v3.RecordsAddRequest; - /** KeeperDriveData breachWatchSecurityData. */ - public breachWatchSecurityData: Vault.IBreachWatchSecurityData[]; + /** + * Creates a RecordsAddRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordsAddRequest + */ + public static fromObject(object: { [k: string]: any }): record.v3.RecordsAddRequest; - /** KeeperDriveData removedFolders. */ - public removedFolders: Folder.IFolderRemoved[]; + /** + * Creates a plain object from a RecordsAddRequest message. Also converts values to other types if specified. + * @param message RecordsAddRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.RecordsAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** KeeperDriveData removedFolderRecords. */ - public removedFolderRecords: Records.IFolderRecordKey[]; + /** + * Converts this RecordsAddRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** KeeperDriveData folderRecords. */ - public folderRecords: Folder.IFolderRecord[]; + /** + * Gets the default type url for RecordsAddRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** KeeperDriveData recordRotationData. */ - public recordRotationData: Vault.IRecordRotation[]; + /** Properties of a RecordAdd. */ + interface IRecordAdd { - /** KeeperDriveData records. */ - public records: Vault.IDriveRecord[]; + /** RecordAdd recordUid */ + recordUid?: (Uint8Array|null); - /** KeeperDriveData folderSharingState. */ - public folderSharingState: Vault.IFolderSharingState[]; + /** RecordAdd recordKey */ + recordKey?: (Uint8Array|null); - /** KeeperDriveData rawDagData. */ - public rawDagData: Dag.IDebugData[]; + /** RecordAdd recordKeyType */ + recordKeyType?: (Folder.EncryptedKeyType|null); - /** - * Creates a new KeeperDriveData instance using the specified properties. - * @param [properties] Properties to set - * @returns KeeperDriveData instance - */ - public static create(properties?: Vault.IKeeperDriveData): Vault.KeeperDriveData; + /** + * Record creates in root folder is encrypted by user key. + * Record creates in non-root folder is encrypted by folder key. + */ + recordKeyEncryptedBy?: (Folder.FolderKeyEncryptionType|null); - /** - * Encodes the specified KeeperDriveData message. Does not implicitly {@link Vault.KeeperDriveData.verify|verify} messages. - * @param message KeeperDriveData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Vault.IKeeperDriveData, writer?: $protobuf.Writer): $protobuf.Writer; + /** RecordAdd clientModifiedTime */ + clientModifiedTime?: (number|null); - /** - * Decodes a KeeperDriveData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KeeperDriveData - * @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): Vault.KeeperDriveData; + /** RecordAdd data */ + data?: (Uint8Array|null); - /** - * Creates a KeeperDriveData message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KeeperDriveData - */ - public static fromObject(object: { [k: string]: any }): Vault.KeeperDriveData; + /** RecordAdd nonSharedData */ + nonSharedData?: (Uint8Array|null); - /** - * Creates a plain object from a KeeperDriveData message. Also converts values to other types if specified. - * @param message KeeperDriveData - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Vault.KeeperDriveData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** RecordAdd folderUid */ + folderUid?: (Uint8Array|null); - /** - * Converts this KeeperDriveData to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** RecordAdd recordLinks */ + recordLinks?: (Records.IRecordLink[]|null); - /** - * Gets the default type url for KeeperDriveData - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** RecordAdd audit */ + audit?: (Records.IRecordAudit|null); - /** Properties of a UserFolder. */ - interface IUserFolder { + /** RecordAdd securityData */ + securityData?: (Records.ISecurityData|null); - /** UserFolder folderUid */ - folderUid?: (Uint8Array|null); + /** RecordAdd securityScoreData */ + securityScoreData?: (Records.ISecurityScoreData|null); + } - /** UserFolder parentUid */ - parentUid?: (Uint8Array|null); + /** Represents a RecordAdd. */ + class RecordAdd implements IRecordAdd { - /** UserFolder userFolderKey */ - userFolderKey?: (Uint8Array|null); + /** + * Constructs a new RecordAdd. + * @param [properties] Properties to set + */ + constructor(properties?: record.v3.IRecordAdd); - /** UserFolder keyType */ - keyType?: (Records.RecordKeyType|null); + /** RecordAdd recordUid. */ + public recordUid: Uint8Array; - /** UserFolder revision */ - revision?: (number|null); + /** RecordAdd recordKey. */ + public recordKey: Uint8Array; - /** UserFolder data */ - data?: (Uint8Array|null); - } + /** RecordAdd recordKeyType. */ + public recordKeyType: Folder.EncryptedKeyType; - /** Represents a UserFolder. */ - class UserFolder implements IUserFolder { + /** + * Record creates in root folder is encrypted by user key. + * Record creates in non-root folder is encrypted by folder key. + */ + public recordKeyEncryptedBy: Folder.FolderKeyEncryptionType; - /** - * Constructs a new UserFolder. - * @param [properties] Properties to set - */ - constructor(properties?: Vault.IUserFolder); + /** RecordAdd clientModifiedTime. */ + public clientModifiedTime: number; - /** UserFolder folderUid. */ - public folderUid: Uint8Array; + /** RecordAdd data. */ + public data: Uint8Array; - /** UserFolder parentUid. */ - public parentUid: Uint8Array; + /** RecordAdd nonSharedData. */ + public nonSharedData: Uint8Array; - /** UserFolder userFolderKey. */ - public userFolderKey: Uint8Array; + /** RecordAdd folderUid. */ + public folderUid: Uint8Array; - /** UserFolder keyType. */ - public keyType: Records.RecordKeyType; + /** RecordAdd recordLinks. */ + public recordLinks: Records.IRecordLink[]; - /** UserFolder revision. */ - public revision: number; + /** RecordAdd audit. */ + public audit?: (Records.IRecordAudit|null); - /** UserFolder data. */ - public data: Uint8Array; + /** RecordAdd securityData. */ + public securityData?: (Records.ISecurityData|null); - /** - * Creates a new UserFolder instance using the specified properties. - * @param [properties] Properties to set - * @returns UserFolder instance - */ - public static create(properties?: Vault.IUserFolder): Vault.UserFolder; + /** RecordAdd securityScoreData. */ + public securityScoreData?: (Records.ISecurityScoreData|null); - /** - * Encodes the specified UserFolder message. Does not implicitly {@link Vault.UserFolder.verify|verify} messages. - * @param message UserFolder message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Vault.IUserFolder, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new RecordAdd instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordAdd instance + */ + public static create(properties?: record.v3.IRecordAdd): record.v3.RecordAdd; - /** - * Decodes a UserFolder message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserFolder - * @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): Vault.UserFolder; + /** + * Encodes the specified RecordAdd message. Does not implicitly {@link record.v3.RecordAdd.verify|verify} messages. + * @param message RecordAdd message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: record.v3.IRecordAdd, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a UserFolder message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UserFolder - */ - public static fromObject(object: { [k: string]: any }): Vault.UserFolder; + /** + * Decodes a RecordAdd message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordAdd + * @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): record.v3.RecordAdd; - /** - * Creates a plain object from a UserFolder message. Also converts values to other types if specified. - * @param message UserFolder - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Vault.UserFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a RecordAdd message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordAdd + */ + public static fromObject(object: { [k: string]: any }): record.v3.RecordAdd; - /** - * Converts this UserFolder to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a RecordAdd message. Also converts values to other types if specified. + * @param message RecordAdd + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: record.v3.RecordAdd, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for UserFolder - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Converts this RecordAdd to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecordAdd + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } +} - /** Properties of a SharedFolder. */ - interface ISharedFolder { +/** Namespace keeper. */ +export namespace keeper { - /** SharedFolder sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + /** Namespace api. */ + namespace api { - /** SharedFolder revision */ - revision?: (number|null); + /** Namespace common. */ + namespace common { - /** SharedFolder sharedFolderKey */ - sharedFolderKey?: (Uint8Array|null); + /** Properties of a Page. */ + interface IPage { - /** SharedFolder keyType */ - keyType?: (Records.RecordKeyType|null); + /** + * Zero-indexed page number. + * Default: 0 (first page) + */ + pageNumber?: (number|null); - /** SharedFolder data */ - data?: (Uint8Array|null); + /** Number of items per page. */ + pageSize?: (number|null); - /** SharedFolder defaultManageRecords */ - defaultManageRecords?: (boolean|null); + /** Use as cursor to the next page. */ + cursorToken?: (string|null); + } - /** SharedFolder defaultManageUsers */ - defaultManageUsers?: (boolean|null); + /** + * Pagination parameters for paginated requests. + * Used to specify which page of results to retrieve. + */ + class Page implements IPage { - /** SharedFolder defaultCanEdit */ - defaultCanEdit?: (boolean|null); + /** + * Constructs a new Page. + * @param [properties] Properties to set + */ + constructor(properties?: keeper.api.common.IPage); - /** SharedFolder defaultCanReshare */ - defaultCanReshare?: (boolean|null); + /** + * Zero-indexed page number. + * Default: 0 (first page) + */ + public pageNumber: number; - /** SharedFolder cacheStatus */ - cacheStatus?: (Vault.CacheStatus|null); + /** Number of items per page. */ + public pageSize: number; - /** SharedFolder owner */ - owner?: (string|null); + /** Use as cursor to the next page. */ + public cursorToken: string; - /** SharedFolder ownerAccountUid */ - ownerAccountUid?: (Uint8Array|null); + /** + * Creates a new Page instance using the specified properties. + * @param [properties] Properties to set + * @returns Page instance + */ + public static create(properties?: keeper.api.common.IPage): keeper.api.common.Page; - /** SharedFolder name */ - name?: (Uint8Array|null); - } + /** + * Encodes the specified Page message. Does not implicitly {@link keeper.api.common.Page.verify|verify} messages. + * @param message Page message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: keeper.api.common.IPage, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a SharedFolder. */ - class SharedFolder implements ISharedFolder { + /** + * Decodes a Page message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Page + * @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): keeper.api.common.Page; - /** - * Constructs a new SharedFolder. - * @param [properties] Properties to set - */ - constructor(properties?: Vault.ISharedFolder); + /** + * Creates a Page message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Page + */ + public static fromObject(object: { [k: string]: any }): keeper.api.common.Page; - /** SharedFolder sharedFolderUid. */ - public sharedFolderUid: Uint8Array; + /** + * Creates a plain object from a Page message. Also converts values to other types if specified. + * @param message Page + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: keeper.api.common.Page, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** SharedFolder revision. */ - public revision: number; + /** + * Converts this Page to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** SharedFolder sharedFolderKey. */ - public sharedFolderKey: Uint8Array; + /** + * Gets the default type url for Page + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** SharedFolder keyType. */ - public keyType: Records.RecordKeyType; + /** Properties of a PageInfo. */ + interface IPageInfo { - /** SharedFolder data. */ - public data: Uint8Array; + /** Current page number (zero-indexed). */ + pageNumber?: (number|null); - /** SharedFolder defaultManageRecords. */ - public defaultManageRecords: boolean; + /** Number of items per page. */ + pageSize?: (number|null); - /** SharedFolder defaultManageUsers. */ - public defaultManageUsers: boolean; + /** Total number of items available across all pages. */ + totalCount?: (number|null); - /** SharedFolder defaultCanEdit. */ - public defaultCanEdit: boolean; + /** + * Indicates whether more pages are available. + * True if (page_number + 1) * page_size < total_count + */ + hasMore?: (boolean|null); - /** SharedFolder defaultCanReshare. */ - public defaultCanReshare: boolean; + /** Use as cursor to the next page. */ + cursorToken?: (string|null); + } - /** SharedFolder cacheStatus. */ - public cacheStatus: Vault.CacheStatus; + /** + * Pagination metadata included in paginated responses. + * Provides information about the current page and total available items. + */ + class PageInfo implements IPageInfo { - /** SharedFolder owner. */ - public owner: string; + /** + * Constructs a new PageInfo. + * @param [properties] Properties to set + */ + constructor(properties?: keeper.api.common.IPageInfo); - /** SharedFolder ownerAccountUid. */ - public ownerAccountUid: Uint8Array; + /** Current page number (zero-indexed). */ + public pageNumber: number; - /** SharedFolder name. */ - public name: Uint8Array; + /** Number of items per page. */ + public pageSize: number; - /** - * Creates a new SharedFolder instance using the specified properties. - * @param [properties] Properties to set - * @returns SharedFolder instance - */ - public static create(properties?: Vault.ISharedFolder): Vault.SharedFolder; + /** Total number of items available across all pages. */ + public totalCount: number; - /** - * Encodes the specified SharedFolder message. Does not implicitly {@link Vault.SharedFolder.verify|verify} messages. - * @param message SharedFolder message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Vault.ISharedFolder, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Indicates whether more pages are available. + * True if (page_number + 1) * page_size < total_count + */ + public hasMore: boolean; - /** - * Decodes a SharedFolder message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SharedFolder - * @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): Vault.SharedFolder; + /** Use as cursor to the next page. */ + public cursorToken: string; - /** - * Creates a SharedFolder message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SharedFolder - */ - public static fromObject(object: { [k: string]: any }): Vault.SharedFolder; + /** + * Creates a new PageInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns PageInfo instance + */ + public static create(properties?: keeper.api.common.IPageInfo): keeper.api.common.PageInfo; + + /** + * Encodes the specified PageInfo message. Does not implicitly {@link keeper.api.common.PageInfo.verify|verify} messages. + * @param message PageInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: keeper.api.common.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PageInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PageInfo + * @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): keeper.api.common.PageInfo; - /** - * Creates a plain object from a SharedFolder message. Also converts values to other types if specified. - * @param message SharedFolder - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Vault.SharedFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a PageInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PageInfo + */ + public static fromObject(object: { [k: string]: any }): keeper.api.common.PageInfo; - /** - * Converts this SharedFolder to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a PageInfo message. Also converts values to other types if specified. + * @param message PageInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: keeper.api.common.PageInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for SharedFolder - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Converts this PageInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PageInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } } +} - /** Properties of a UserFolderSharedFolder. */ - interface IUserFolderSharedFolder { +/** Namespace ServiceLogger. */ +export namespace ServiceLogger { - /** UserFolderSharedFolder folderUid */ - folderUid?: (Uint8Array|null); + /** Properties of an IdRange. */ + interface IIdRange { - /** UserFolderSharedFolder sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + /** IdRange startingId */ + startingId?: (number|null); - /** UserFolderSharedFolder revision */ - revision?: (number|null); + /** IdRange endingId */ + endingId?: (number|null); } - /** Represents a UserFolderSharedFolder. */ - class UserFolderSharedFolder implements IUserFolderSharedFolder { + /** Specifies the first and last IDs of a range of IDs so that a Request can ask for information about a range of IDs. */ + class IdRange implements IIdRange { /** - * Constructs a new UserFolderSharedFolder. + * Constructs a new IdRange. * @param [properties] Properties to set */ - constructor(properties?: Vault.IUserFolderSharedFolder); - - /** UserFolderSharedFolder folderUid. */ - public folderUid: Uint8Array; + constructor(properties?: ServiceLogger.IIdRange); - /** UserFolderSharedFolder sharedFolderUid. */ - public sharedFolderUid: Uint8Array; + /** IdRange startingId. */ + public startingId: number; - /** UserFolderSharedFolder revision. */ - public revision: number; + /** IdRange endingId. */ + public endingId: number; /** - * Creates a new UserFolderSharedFolder instance using the specified properties. + * Creates a new IdRange instance using the specified properties. * @param [properties] Properties to set - * @returns UserFolderSharedFolder instance + * @returns IdRange instance */ - public static create(properties?: Vault.IUserFolderSharedFolder): Vault.UserFolderSharedFolder; + public static create(properties?: ServiceLogger.IIdRange): ServiceLogger.IdRange; /** - * Encodes the specified UserFolderSharedFolder message. Does not implicitly {@link Vault.UserFolderSharedFolder.verify|verify} messages. - * @param message UserFolderSharedFolder message or plain object to encode + * Encodes the specified IdRange message. Does not implicitly {@link ServiceLogger.IdRange.verify|verify} messages. + * @param message IdRange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.IUserFolderSharedFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IIdRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserFolderSharedFolder message from the specified reader or buffer. + * Decodes an IdRange message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserFolderSharedFolder + * @returns IdRange * @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): Vault.UserFolderSharedFolder; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.IdRange; /** - * Creates a UserFolderSharedFolder message from a plain object. Also converts values to their respective internal types. + * Creates an IdRange message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserFolderSharedFolder + * @returns IdRange */ - public static fromObject(object: { [k: string]: any }): Vault.UserFolderSharedFolder; + public static fromObject(object: { [k: string]: any }): ServiceLogger.IdRange; /** - * Creates a plain object from a UserFolderSharedFolder message. Also converts values to other types if specified. - * @param message UserFolderSharedFolder + * Creates a plain object from an IdRange message. Also converts values to other types if specified. + * @param message IdRange * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.UserFolderSharedFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.IdRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserFolderSharedFolder to JSON. + * Converts this IdRange to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserFolderSharedFolder + * Gets the default type url for IdRange * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SharedFolderFolder. */ - interface ISharedFolderFolder { - - /** SharedFolderFolder sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); - - /** SharedFolderFolder folderUid */ - folderUid?: (Uint8Array|null); - - /** SharedFolderFolder parentUid */ - parentUid?: (Uint8Array|null); - - /** SharedFolderFolder sharedFolderFolderKey */ - sharedFolderFolderKey?: (Uint8Array|null); + /** Properties of a ServiceInfoSpecifier. */ + interface IServiceInfoSpecifier { - /** SharedFolderFolder keyType */ - keyType?: (Records.RecordKeyType|null); + /** ServiceInfoSpecifier all */ + all?: (boolean|null); - /** SharedFolderFolder revision */ - revision?: (number|null); + /** ServiceInfoSpecifier serviceInfoId */ + serviceInfoId?: (number|null); - /** SharedFolderFolder data */ - data?: (Uint8Array|null); + /** ServiceInfoSpecifier name */ + name?: (string|null); } - /** Represents a SharedFolderFolder. */ - class SharedFolderFolder implements ISharedFolderFolder { + /** Used in ServiceInfoRequest */ + class ServiceInfoSpecifier implements IServiceInfoSpecifier { /** - * Constructs a new SharedFolderFolder. + * Constructs a new ServiceInfoSpecifier. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISharedFolderFolder); - - /** SharedFolderFolder sharedFolderUid. */ - public sharedFolderUid: Uint8Array; - - /** SharedFolderFolder folderUid. */ - public folderUid: Uint8Array; - - /** SharedFolderFolder parentUid. */ - public parentUid: Uint8Array; - - /** SharedFolderFolder sharedFolderFolderKey. */ - public sharedFolderFolderKey: Uint8Array; + constructor(properties?: ServiceLogger.IServiceInfoSpecifier); - /** SharedFolderFolder keyType. */ - public keyType: Records.RecordKeyType; + /** ServiceInfoSpecifier all. */ + public all: boolean; - /** SharedFolderFolder revision. */ - public revision: number; + /** ServiceInfoSpecifier serviceInfoId. */ + public serviceInfoId: number; - /** SharedFolderFolder data. */ - public data: Uint8Array; + /** ServiceInfoSpecifier name. */ + public name: string; /** - * Creates a new SharedFolderFolder instance using the specified properties. + * Creates a new ServiceInfoSpecifier instance using the specified properties. * @param [properties] Properties to set - * @returns SharedFolderFolder instance + * @returns ServiceInfoSpecifier instance */ - public static create(properties?: Vault.ISharedFolderFolder): Vault.SharedFolderFolder; + public static create(properties?: ServiceLogger.IServiceInfoSpecifier): ServiceLogger.ServiceInfoSpecifier; /** - * Encodes the specified SharedFolderFolder message. Does not implicitly {@link Vault.SharedFolderFolder.verify|verify} messages. - * @param message SharedFolderFolder message or plain object to encode + * Encodes the specified ServiceInfoSpecifier message. Does not implicitly {@link ServiceLogger.ServiceInfoSpecifier.verify|verify} messages. + * @param message ServiceInfoSpecifier message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.ISharedFolderFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceInfoSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SharedFolderFolder message from the specified reader or buffer. + * Decodes a ServiceInfoSpecifier message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SharedFolderFolder + * @returns ServiceInfoSpecifier * @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): Vault.SharedFolderFolder; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoSpecifier; /** - * Creates a SharedFolderFolder message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceInfoSpecifier message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SharedFolderFolder + * @returns ServiceInfoSpecifier */ - public static fromObject(object: { [k: string]: any }): Vault.SharedFolderFolder; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoSpecifier; /** - * Creates a plain object from a SharedFolderFolder message. Also converts values to other types if specified. - * @param message SharedFolderFolder + * Creates a plain object from a ServiceInfoSpecifier message. Also converts values to other types if specified. + * @param message ServiceInfoSpecifier * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharedFolderFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceInfoSpecifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SharedFolderFolder to JSON. + * Converts this ServiceInfoSpecifier to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SharedFolderFolder + * Gets the default type url for ServiceInfoSpecifier * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SharedFolderKey. */ - interface ISharedFolderKey { - - /** SharedFolderKey sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); - - /** SharedFolderKey sharedFolderKey */ - sharedFolderKey?: (Uint8Array|null); + /** Properties of a ServiceInfoRequest. */ + interface IServiceInfoRequest { - /** SharedFolderKey keyType */ - keyType?: (Records.RecordKeyType|null); + /** ServiceInfoRequest serviceInfoSpecifier */ + serviceInfoSpecifier?: (ServiceLogger.IServiceInfoSpecifier[]|null); } - /** Represents a SharedFolderKey. */ - class SharedFolderKey implements ISharedFolderKey { + /** Request information about one or more services by ID or name, or retrieve all. */ + class ServiceInfoRequest implements IServiceInfoRequest { /** - * Constructs a new SharedFolderKey. + * Constructs a new ServiceInfoRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISharedFolderKey); - - /** SharedFolderKey sharedFolderUid. */ - public sharedFolderUid: Uint8Array; - - /** SharedFolderKey sharedFolderKey. */ - public sharedFolderKey: Uint8Array; + constructor(properties?: ServiceLogger.IServiceInfoRequest); - /** SharedFolderKey keyType. */ - public keyType: Records.RecordKeyType; + /** ServiceInfoRequest serviceInfoSpecifier. */ + public serviceInfoSpecifier: ServiceLogger.IServiceInfoSpecifier[]; /** - * Creates a new SharedFolderKey instance using the specified properties. + * Creates a new ServiceInfoRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SharedFolderKey instance + * @returns ServiceInfoRequest instance */ - public static create(properties?: Vault.ISharedFolderKey): Vault.SharedFolderKey; + public static create(properties?: ServiceLogger.IServiceInfoRequest): ServiceLogger.ServiceInfoRequest; /** - * Encodes the specified SharedFolderKey message. Does not implicitly {@link Vault.SharedFolderKey.verify|verify} messages. - * @param message SharedFolderKey message or plain object to encode + * Encodes the specified ServiceInfoRequest message. Does not implicitly {@link ServiceLogger.ServiceInfoRequest.verify|verify} messages. + * @param message ServiceInfoRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.ISharedFolderKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SharedFolderKey message from the specified reader or buffer. + * Decodes a ServiceInfoRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SharedFolderKey + * @returns ServiceInfoRequest * @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): Vault.SharedFolderKey; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoRequest; /** - * Creates a SharedFolderKey message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceInfoRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SharedFolderKey + * @returns ServiceInfoRequest */ - public static fromObject(object: { [k: string]: any }): Vault.SharedFolderKey; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoRequest; /** - * Creates a plain object from a SharedFolderKey message. Also converts values to other types if specified. - * @param message SharedFolderKey + * Creates a plain object from a ServiceInfoRequest message. Also converts values to other types if specified. + * @param message ServiceInfoRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharedFolderKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SharedFolderKey to JSON. + * Converts this ServiceInfoRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SharedFolderKey + * Gets the default type url for ServiceInfoRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Team. */ - interface ITeam { + /** Properties of a ServiceInfoRecord. */ + interface IServiceInfoRecord { - /** Team teamUid */ - teamUid?: (Uint8Array|null); + /** ServiceInfoRecord serviceInfoId */ + serviceInfoId?: (number|null); - /** Team name */ + /** ServiceInfoRecord name */ name?: (string|null); - /** Team teamKey */ - teamKey?: (Uint8Array|null); - - /** Team teamKeyType */ - teamKeyType?: (Records.RecordKeyType|null); - - /** Team teamPrivateKey */ - teamPrivateKey?: (Uint8Array|null); - - /** Team restrictEdit */ - restrictEdit?: (boolean|null); - - /** Team restrictShare */ - restrictShare?: (boolean|null); - - /** Team restrictView */ - restrictView?: (boolean|null); - - /** Team removedSharedFolders */ - removedSharedFolders?: (Uint8Array[]|null); - - /** Team sharedFolderKeys */ - sharedFolderKeys?: (Vault.ISharedFolderKey[]|null); + /** ServiceInfoRecord deleteAfter */ + deleteAfter?: (number|null); - /** Team teamEccPrivateKey */ - teamEccPrivateKey?: (Uint8Array|null); + /** ServiceInfoRecord deleteAfterTimeUnits */ + deleteAfterTimeUnits?: (string|null); - /** Team teamEccPublicKey */ - teamEccPublicKey?: (Uint8Array|null); + /** ServiceInfoRecord isShortTermLogging */ + isShortTermLogging?: (boolean|null); } - /** Represents a Team. */ - class Team implements ITeam { + /** Used in ServiceInfoResponse */ + class ServiceInfoRecord implements IServiceInfoRecord { /** - * Constructs a new Team. + * Constructs a new ServiceInfoRecord. * @param [properties] Properties to set */ - constructor(properties?: Vault.ITeam); + constructor(properties?: ServiceLogger.IServiceInfoRecord); - /** Team teamUid. */ - public teamUid: Uint8Array; + /** ServiceInfoRecord serviceInfoId. */ + public serviceInfoId: number; - /** Team name. */ + /** ServiceInfoRecord name. */ public name: string; - /** Team teamKey. */ - public teamKey: Uint8Array; - - /** Team teamKeyType. */ - public teamKeyType: Records.RecordKeyType; - - /** Team teamPrivateKey. */ - public teamPrivateKey: Uint8Array; - - /** Team restrictEdit. */ - public restrictEdit: boolean; - - /** Team restrictShare. */ - public restrictShare: boolean; - - /** Team restrictView. */ - public restrictView: boolean; - - /** Team removedSharedFolders. */ - public removedSharedFolders: Uint8Array[]; - - /** Team sharedFolderKeys. */ - public sharedFolderKeys: Vault.ISharedFolderKey[]; + /** ServiceInfoRecord deleteAfter. */ + public deleteAfter: number; - /** Team teamEccPrivateKey. */ - public teamEccPrivateKey: Uint8Array; + /** ServiceInfoRecord deleteAfterTimeUnits. */ + public deleteAfterTimeUnits: string; - /** Team teamEccPublicKey. */ - public teamEccPublicKey: Uint8Array; + /** ServiceInfoRecord isShortTermLogging. */ + public isShortTermLogging: boolean; /** - * Creates a new Team instance using the specified properties. + * Creates a new ServiceInfoRecord instance using the specified properties. * @param [properties] Properties to set - * @returns Team instance + * @returns ServiceInfoRecord instance */ - public static create(properties?: Vault.ITeam): Vault.Team; + public static create(properties?: ServiceLogger.IServiceInfoRecord): ServiceLogger.ServiceInfoRecord; /** - * Encodes the specified Team message. Does not implicitly {@link Vault.Team.verify|verify} messages. - * @param message Team message or plain object to encode + * Encodes the specified ServiceInfoRecord message. Does not implicitly {@link ServiceLogger.ServiceInfoRecord.verify|verify} messages. + * @param message ServiceInfoRecord message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.ITeam, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceInfoRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Team message from the specified reader or buffer. + * Decodes a ServiceInfoRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Team + * @returns ServiceInfoRecord * @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): Vault.Team; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoRecord; /** - * Creates a Team message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceInfoRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Team + * @returns ServiceInfoRecord */ - public static fromObject(object: { [k: string]: any }): Vault.Team; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoRecord; /** - * Creates a plain object from a Team message. Also converts values to other types if specified. - * @param message Team + * Creates a plain object from a ServiceInfoRecord message. Also converts values to other types if specified. + * @param message ServiceInfoRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.Team, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceInfoRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Team to JSON. + * Converts this ServiceInfoRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Team + * Gets the default type url for ServiceInfoRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Record. */ - interface IRecord { - - /** Record recordUid */ - recordUid?: (Uint8Array|null); - - /** Record revision */ - revision?: (number|null); - - /** Record version */ - version?: (number|null); - - /** Record shared */ - shared?: (boolean|null); - - /** Record clientModifiedTime */ - clientModifiedTime?: (number|null); - - /** Record data */ - data?: (Uint8Array|null); - - /** Record extra */ - extra?: (Uint8Array|null); - - /** Record udata */ - udata?: (string|null); - - /** Record fileSize */ - fileSize?: (number|null); + /** Properties of a ServiceInfoResponse. */ + interface IServiceInfoResponse { - /** Record thumbnailSize */ - thumbnailSize?: (number|null); + /** ServiceInfoResponse serviceInfoRecord */ + serviceInfoRecord?: (ServiceLogger.IServiceInfoRecord[]|null); } - /** Represents a Record. */ - class Record implements IRecord { + /** Returns information about Services */ + class ServiceInfoResponse implements IServiceInfoResponse { /** - * Constructs a new Record. + * Constructs a new ServiceInfoResponse. * @param [properties] Properties to set */ - constructor(properties?: Vault.IRecord); - - /** Record recordUid. */ - public recordUid: Uint8Array; - - /** Record revision. */ - public revision: number; - - /** Record version. */ - public version: number; - - /** Record shared. */ - public shared: boolean; - - /** Record clientModifiedTime. */ - public clientModifiedTime: number; - - /** Record data. */ - public data: Uint8Array; - - /** Record extra. */ - public extra: Uint8Array; - - /** Record udata. */ - public udata: string; - - /** Record fileSize. */ - public fileSize: number; + constructor(properties?: ServiceLogger.IServiceInfoResponse); - /** Record thumbnailSize. */ - public thumbnailSize: number; + /** ServiceInfoResponse serviceInfoRecord. */ + public serviceInfoRecord: ServiceLogger.IServiceInfoRecord[]; /** - * Creates a new Record instance using the specified properties. + * Creates a new ServiceInfoResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Record instance + * @returns ServiceInfoResponse instance */ - public static create(properties?: Vault.IRecord): Vault.Record; + public static create(properties?: ServiceLogger.IServiceInfoResponse): ServiceLogger.ServiceInfoResponse; /** - * Encodes the specified Record message. Does not implicitly {@link Vault.Record.verify|verify} messages. - * @param message Record message or plain object to encode + * Encodes the specified ServiceInfoResponse message. Does not implicitly {@link ServiceLogger.ServiceInfoResponse.verify|verify} messages. + * @param message ServiceInfoResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.IRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Record message from the specified reader or buffer. + * Decodes a ServiceInfoResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Record + * @returns ServiceInfoResponse * @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): Vault.Record; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoResponse; /** - * Creates a Record message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Record + * @returns ServiceInfoResponse */ - public static fromObject(object: { [k: string]: any }): Vault.Record; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoResponse; /** - * Creates a plain object from a Record message. Also converts values to other types if specified. - * @param message Record + * Creates a plain object from a ServiceInfoResponse message. Also converts values to other types if specified. + * @param message ServiceInfoResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.Record, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Record to JSON. + * Converts this ServiceInfoResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Record + * Gets the default type url for ServiceInfoResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordLink. */ - interface IRecordLink { - - /** RecordLink parentRecordUid */ - parentRecordUid?: (Uint8Array|null); - - /** RecordLink childRecordUid */ - childRecordUid?: (Uint8Array|null); - - /** RecordLink recordKey */ - recordKey?: (Uint8Array|null); + /** Properties of a ServiceInfoUpdateRequest. */ + interface IServiceInfoUpdateRequest { - /** RecordLink revision */ - revision?: (number|null); + /** ServiceInfoUpdateRequest serviceInfoRecord */ + serviceInfoRecord?: (ServiceLogger.IServiceInfoRecord[]|null); } - /** Represents a RecordLink. */ - class RecordLink implements IRecordLink { + /** Update one or more ServiceInfo records by their IDs */ + class ServiceInfoUpdateRequest implements IServiceInfoUpdateRequest { /** - * Constructs a new RecordLink. + * Constructs a new ServiceInfoUpdateRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.IRecordLink); - - /** RecordLink parentRecordUid. */ - public parentRecordUid: Uint8Array; - - /** RecordLink childRecordUid. */ - public childRecordUid: Uint8Array; - - /** RecordLink recordKey. */ - public recordKey: Uint8Array; + constructor(properties?: ServiceLogger.IServiceInfoUpdateRequest); - /** RecordLink revision. */ - public revision: number; + /** ServiceInfoUpdateRequest serviceInfoRecord. */ + public serviceInfoRecord: ServiceLogger.IServiceInfoRecord[]; /** - * Creates a new RecordLink instance using the specified properties. + * Creates a new ServiceInfoUpdateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RecordLink instance + * @returns ServiceInfoUpdateRequest instance */ - public static create(properties?: Vault.IRecordLink): Vault.RecordLink; + public static create(properties?: ServiceLogger.IServiceInfoUpdateRequest): ServiceLogger.ServiceInfoUpdateRequest; /** - * Encodes the specified RecordLink message. Does not implicitly {@link Vault.RecordLink.verify|verify} messages. - * @param message RecordLink message or plain object to encode + * Encodes the specified ServiceInfoUpdateRequest message. Does not implicitly {@link ServiceLogger.ServiceInfoUpdateRequest.verify|verify} messages. + * @param message ServiceInfoUpdateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.IRecordLink, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceInfoUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordLink message from the specified reader or buffer. + * Decodes a ServiceInfoUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordLink + * @returns ServiceInfoUpdateRequest * @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): Vault.RecordLink; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceInfoUpdateRequest; /** - * Creates a RecordLink message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceInfoUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordLink + * @returns ServiceInfoUpdateRequest */ - public static fromObject(object: { [k: string]: any }): Vault.RecordLink; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceInfoUpdateRequest; /** - * Creates a plain object from a RecordLink message. Also converts values to other types if specified. - * @param message RecordLink + * Creates a plain object from a ServiceInfoUpdateRequest message. Also converts values to other types if specified. + * @param message ServiceInfoUpdateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.RecordLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceInfoUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordLink to JSON. + * Converts this ServiceInfoUpdateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordLink + * Gets the default type url for ServiceInfoUpdateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a UserFolderRecord. */ - interface IUserFolderRecord { + /** Properties of a ServiceRuleSpecifier. */ + interface IServiceRuleSpecifier { - /** UserFolderRecord folderUid */ - folderUid?: (Uint8Array|null); + /** ServiceRuleSpecifier all */ + all?: (boolean|null); - /** UserFolderRecord recordUid */ - recordUid?: (Uint8Array|null); + /** ServiceRuleSpecifier serviceRuleId */ + serviceRuleId?: (number|null); - /** UserFolderRecord revision */ - revision?: (number|null); + /** ServiceRuleSpecifier serviceInfoId */ + serviceInfoId?: (number|null); + + /** ServiceRuleSpecifier resourceIdRange */ + resourceIdRange?: (ServiceLogger.IIdRange[]|null); } - /** Represents a UserFolderRecord. */ - class UserFolderRecord implements IUserFolderRecord { + /** Represents a ServiceRuleSpecifier. */ + class ServiceRuleSpecifier implements IServiceRuleSpecifier { /** - * Constructs a new UserFolderRecord. + * Constructs a new ServiceRuleSpecifier. * @param [properties] Properties to set */ - constructor(properties?: Vault.IUserFolderRecord); + constructor(properties?: ServiceLogger.IServiceRuleSpecifier); - /** UserFolderRecord folderUid. */ - public folderUid: Uint8Array; + /** ServiceRuleSpecifier all. */ + public all: boolean; - /** UserFolderRecord recordUid. */ - public recordUid: Uint8Array; + /** ServiceRuleSpecifier serviceRuleId. */ + public serviceRuleId: number; - /** UserFolderRecord revision. */ - public revision: number; + /** ServiceRuleSpecifier serviceInfoId. */ + public serviceInfoId: number; + + /** ServiceRuleSpecifier resourceIdRange. */ + public resourceIdRange: ServiceLogger.IIdRange[]; /** - * Creates a new UserFolderRecord instance using the specified properties. + * Creates a new ServiceRuleSpecifier instance using the specified properties. * @param [properties] Properties to set - * @returns UserFolderRecord instance + * @returns ServiceRuleSpecifier instance */ - public static create(properties?: Vault.IUserFolderRecord): Vault.UserFolderRecord; + public static create(properties?: ServiceLogger.IServiceRuleSpecifier): ServiceLogger.ServiceRuleSpecifier; /** - * Encodes the specified UserFolderRecord message. Does not implicitly {@link Vault.UserFolderRecord.verify|verify} messages. - * @param message UserFolderRecord message or plain object to encode + * Encodes the specified ServiceRuleSpecifier message. Does not implicitly {@link ServiceLogger.ServiceRuleSpecifier.verify|verify} messages. + * @param message ServiceRuleSpecifier message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.IUserFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceRuleSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserFolderRecord message from the specified reader or buffer. + * Decodes a ServiceRuleSpecifier message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserFolderRecord + * @returns ServiceRuleSpecifier * @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): Vault.UserFolderRecord; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleSpecifier; /** - * Creates a UserFolderRecord message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceRuleSpecifier message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserFolderRecord + * @returns ServiceRuleSpecifier */ - public static fromObject(object: { [k: string]: any }): Vault.UserFolderRecord; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleSpecifier; /** - * Creates a plain object from a UserFolderRecord message. Also converts values to other types if specified. - * @param message UserFolderRecord + * Creates a plain object from a ServiceRuleSpecifier message. Also converts values to other types if specified. + * @param message ServiceRuleSpecifier * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.UserFolderRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceRuleSpecifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserFolderRecord to JSON. + * Converts this ServiceRuleSpecifier to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserFolderRecord + * Gets the default type url for ServiceRuleSpecifier * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SharedFolderFolderRecord. */ - interface ISharedFolderFolderRecord { - - /** SharedFolderFolderRecord sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); - - /** SharedFolderFolderRecord folderUid */ - folderUid?: (Uint8Array|null); - - /** SharedFolderFolderRecord recordUid */ - recordUid?: (Uint8Array|null); + /** Properties of a ServiceRuleRequest. */ + interface IServiceRuleRequest { - /** SharedFolderFolderRecord revision */ - revision?: (number|null); + /** ServiceRuleRequest serviceRuleSpecifier */ + serviceRuleSpecifier?: (ServiceLogger.IServiceRuleSpecifier[]|null); } - /** Represents a SharedFolderFolderRecord. */ - class SharedFolderFolderRecord implements ISharedFolderFolderRecord { + /** Represents a ServiceRuleRequest. */ + class ServiceRuleRequest implements IServiceRuleRequest { /** - * Constructs a new SharedFolderFolderRecord. + * Constructs a new ServiceRuleRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISharedFolderFolderRecord); - - /** SharedFolderFolderRecord sharedFolderUid. */ - public sharedFolderUid: Uint8Array; - - /** SharedFolderFolderRecord folderUid. */ - public folderUid: Uint8Array; - - /** SharedFolderFolderRecord recordUid. */ - public recordUid: Uint8Array; + constructor(properties?: ServiceLogger.IServiceRuleRequest); - /** SharedFolderFolderRecord revision. */ - public revision: number; + /** ServiceRuleRequest serviceRuleSpecifier. */ + public serviceRuleSpecifier: ServiceLogger.IServiceRuleSpecifier[]; /** - * Creates a new SharedFolderFolderRecord instance using the specified properties. + * Creates a new ServiceRuleRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SharedFolderFolderRecord instance + * @returns ServiceRuleRequest instance */ - public static create(properties?: Vault.ISharedFolderFolderRecord): Vault.SharedFolderFolderRecord; + public static create(properties?: ServiceLogger.IServiceRuleRequest): ServiceLogger.ServiceRuleRequest; /** - * Encodes the specified SharedFolderFolderRecord message. Does not implicitly {@link Vault.SharedFolderFolderRecord.verify|verify} messages. - * @param message SharedFolderFolderRecord message or plain object to encode + * Encodes the specified ServiceRuleRequest message. Does not implicitly {@link ServiceLogger.ServiceRuleRequest.verify|verify} messages. + * @param message ServiceRuleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.ISharedFolderFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SharedFolderFolderRecord message from the specified reader or buffer. + * Decodes a ServiceRuleRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SharedFolderFolderRecord + * @returns ServiceRuleRequest * @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): Vault.SharedFolderFolderRecord; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleRequest; /** - * Creates a SharedFolderFolderRecord message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceRuleRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SharedFolderFolderRecord + * @returns ServiceRuleRequest */ - public static fromObject(object: { [k: string]: any }): Vault.SharedFolderFolderRecord; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleRequest; /** - * Creates a plain object from a SharedFolderFolderRecord message. Also converts values to other types if specified. - * @param message SharedFolderFolderRecord + * Creates a plain object from a ServiceRuleRequest message. Also converts values to other types if specified. + * @param message ServiceRuleRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharedFolderFolderRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceRuleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SharedFolderFolderRecord to JSON. + * Converts this ServiceRuleRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SharedFolderFolderRecord + * Gets the default type url for ServiceRuleRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NonSharedData. */ - interface INonSharedData { + /** Properties of a ServiceRuleRecord. */ + interface IServiceRuleRecord { - /** NonSharedData recordUid */ - recordUid?: (Uint8Array|null); + /** ServiceRuleRecord serviceRuleId */ + serviceRuleId?: (number|null); - /** NonSharedData data */ - data?: (Uint8Array|null); + /** ServiceRuleRecord serviceInfoId */ + serviceInfoId?: (number|null); + + /** ServiceRuleRecord resourceId */ + resourceId?: (number|null); + + /** ServiceRuleRecord isLoggingEnabled */ + isLoggingEnabled?: (boolean|null); + + /** ServiceRuleRecord logLevel */ + logLevel?: (string|null); + + /** ServiceRuleRecord ruleStart */ + ruleStart?: (string|null); + + /** ServiceRuleRecord ruleEnd */ + ruleEnd?: (string|null); + + /** ServiceRuleRecord dateModified */ + dateModified?: (string|null); } - /** Represents a NonSharedData. */ - class NonSharedData implements INonSharedData { + /** Represents a ServiceRuleRecord. */ + class ServiceRuleRecord implements IServiceRuleRecord { + + /** + * Constructs a new ServiceRuleRecord. + * @param [properties] Properties to set + */ + constructor(properties?: ServiceLogger.IServiceRuleRecord); + + /** ServiceRuleRecord serviceRuleId. */ + public serviceRuleId: number; + + /** ServiceRuleRecord serviceInfoId. */ + public serviceInfoId: number; + + /** ServiceRuleRecord resourceId. */ + public resourceId: number; + + /** ServiceRuleRecord isLoggingEnabled. */ + public isLoggingEnabled: boolean; - /** - * Constructs a new NonSharedData. - * @param [properties] Properties to set - */ - constructor(properties?: Vault.INonSharedData); + /** ServiceRuleRecord logLevel. */ + public logLevel: string; - /** NonSharedData recordUid. */ - public recordUid: Uint8Array; + /** ServiceRuleRecord ruleStart. */ + public ruleStart: string; - /** NonSharedData data. */ - public data: Uint8Array; + /** ServiceRuleRecord ruleEnd. */ + public ruleEnd: string; + + /** ServiceRuleRecord dateModified. */ + public dateModified: string; /** - * Creates a new NonSharedData instance using the specified properties. + * Creates a new ServiceRuleRecord instance using the specified properties. * @param [properties] Properties to set - * @returns NonSharedData instance + * @returns ServiceRuleRecord instance */ - public static create(properties?: Vault.INonSharedData): Vault.NonSharedData; + public static create(properties?: ServiceLogger.IServiceRuleRecord): ServiceLogger.ServiceRuleRecord; /** - * Encodes the specified NonSharedData message. Does not implicitly {@link Vault.NonSharedData.verify|verify} messages. - * @param message NonSharedData message or plain object to encode + * Encodes the specified ServiceRuleRecord message. Does not implicitly {@link ServiceLogger.ServiceRuleRecord.verify|verify} messages. + * @param message ServiceRuleRecord message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.INonSharedData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceRuleRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NonSharedData message from the specified reader or buffer. + * Decodes a ServiceRuleRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NonSharedData + * @returns ServiceRuleRecord * @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): Vault.NonSharedData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleRecord; /** - * Creates a NonSharedData message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceRuleRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NonSharedData + * @returns ServiceRuleRecord */ - public static fromObject(object: { [k: string]: any }): Vault.NonSharedData; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleRecord; /** - * Creates a plain object from a NonSharedData message. Also converts values to other types if specified. - * @param message NonSharedData + * Creates a plain object from a ServiceRuleRecord message. Also converts values to other types if specified. + * @param message ServiceRuleRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.NonSharedData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceRuleRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NonSharedData to JSON. + * Converts this ServiceRuleRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NonSharedData + * Gets the default type url for ServiceRuleRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RecordMetaData. */ - interface IRecordMetaData { - - /** RecordMetaData recordUid */ - recordUid?: (Uint8Array|null); - - /** RecordMetaData owner */ - owner?: (boolean|null); - - /** RecordMetaData recordKey */ - recordKey?: (Uint8Array|null); - - /** RecordMetaData recordKeyType */ - recordKeyType?: (Records.RecordKeyType|null); - - /** RecordMetaData canShare */ - canShare?: (boolean|null); - - /** RecordMetaData canEdit */ - canEdit?: (boolean|null); - - /** RecordMetaData ownerAccountUid */ - ownerAccountUid?: (Uint8Array|null); - - /** RecordMetaData expiration */ - expiration?: (number|null); - - /** RecordMetaData expirationNotificationType */ - expirationNotificationType?: (Records.TimerNotificationType|null); + /** Properties of a ServiceRuleResponse. */ + interface IServiceRuleResponse { - /** RecordMetaData ownerUsername */ - ownerUsername?: (string|null); + /** ServiceRuleResponse serviceRule */ + serviceRule?: (ServiceLogger.IServiceRuleRecord[]|null); } - /** Represents a RecordMetaData. */ - class RecordMetaData implements IRecordMetaData { + /** Represents a ServiceRuleResponse. */ + class ServiceRuleResponse implements IServiceRuleResponse { /** - * Constructs a new RecordMetaData. + * Constructs a new ServiceRuleResponse. * @param [properties] Properties to set */ - constructor(properties?: Vault.IRecordMetaData); - - /** RecordMetaData recordUid. */ - public recordUid: Uint8Array; - - /** RecordMetaData owner. */ - public owner: boolean; - - /** RecordMetaData recordKey. */ - public recordKey: Uint8Array; - - /** RecordMetaData recordKeyType. */ - public recordKeyType: Records.RecordKeyType; - - /** RecordMetaData canShare. */ - public canShare: boolean; - - /** RecordMetaData canEdit. */ - public canEdit: boolean; - - /** RecordMetaData ownerAccountUid. */ - public ownerAccountUid: Uint8Array; - - /** RecordMetaData expiration. */ - public expiration: number; - - /** RecordMetaData expirationNotificationType. */ - public expirationNotificationType: Records.TimerNotificationType; + constructor(properties?: ServiceLogger.IServiceRuleResponse); - /** RecordMetaData ownerUsername. */ - public ownerUsername: string; + /** ServiceRuleResponse serviceRule. */ + public serviceRule: ServiceLogger.IServiceRuleRecord[]; /** - * Creates a new RecordMetaData instance using the specified properties. + * Creates a new ServiceRuleResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RecordMetaData instance + * @returns ServiceRuleResponse instance */ - public static create(properties?: Vault.IRecordMetaData): Vault.RecordMetaData; + public static create(properties?: ServiceLogger.IServiceRuleResponse): ServiceLogger.ServiceRuleResponse; /** - * Encodes the specified RecordMetaData message. Does not implicitly {@link Vault.RecordMetaData.verify|verify} messages. - * @param message RecordMetaData message or plain object to encode + * Encodes the specified ServiceRuleResponse message. Does not implicitly {@link ServiceLogger.ServiceRuleResponse.verify|verify} messages. + * @param message ServiceRuleResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.IRecordMetaData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceRuleResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecordMetaData message from the specified reader or buffer. + * Decodes a ServiceRuleResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecordMetaData + * @returns ServiceRuleResponse * @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): Vault.RecordMetaData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleResponse; /** - * Creates a RecordMetaData message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceRuleResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecordMetaData + * @returns ServiceRuleResponse */ - public static fromObject(object: { [k: string]: any }): Vault.RecordMetaData; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleResponse; /** - * Creates a plain object from a RecordMetaData message. Also converts values to other types if specified. - * @param message RecordMetaData + * Creates a plain object from a ServiceRuleResponse message. Also converts values to other types if specified. + * @param message ServiceRuleResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.RecordMetaData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceRuleResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecordMetaData to JSON. + * Converts this ServiceRuleResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RecordMetaData + * Gets the default type url for ServiceRuleResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SharingChange. */ - interface ISharingChange { - - /** SharingChange recordUid */ - recordUid?: (Uint8Array|null); + /** Properties of a ServiceRuleUpdateRequest. */ + interface IServiceRuleUpdateRequest { - /** SharingChange shared */ - shared?: (boolean|null); + /** ServiceRuleUpdateRequest serviceRuleRecord */ + serviceRuleRecord?: (ServiceLogger.IServiceRuleRecord[]|null); } - /** Represents a SharingChange. */ - class SharingChange implements ISharingChange { + /** Update one or more ServiceRule records by their IDs */ + class ServiceRuleUpdateRequest implements IServiceRuleUpdateRequest { /** - * Constructs a new SharingChange. + * Constructs a new ServiceRuleUpdateRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISharingChange); - - /** SharingChange recordUid. */ - public recordUid: Uint8Array; + constructor(properties?: ServiceLogger.IServiceRuleUpdateRequest); - /** SharingChange shared. */ - public shared: boolean; + /** ServiceRuleUpdateRequest serviceRuleRecord. */ + public serviceRuleRecord: ServiceLogger.IServiceRuleRecord[]; /** - * Creates a new SharingChange instance using the specified properties. + * Creates a new ServiceRuleUpdateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SharingChange instance + * @returns ServiceRuleUpdateRequest instance */ - public static create(properties?: Vault.ISharingChange): Vault.SharingChange; + public static create(properties?: ServiceLogger.IServiceRuleUpdateRequest): ServiceLogger.ServiceRuleUpdateRequest; /** - * Encodes the specified SharingChange message. Does not implicitly {@link Vault.SharingChange.verify|verify} messages. - * @param message SharingChange message or plain object to encode + * Encodes the specified ServiceRuleUpdateRequest message. Does not implicitly {@link ServiceLogger.ServiceRuleUpdateRequest.verify|verify} messages. + * @param message ServiceRuleUpdateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.ISharingChange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceRuleUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SharingChange message from the specified reader or buffer. + * Decodes a ServiceRuleUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SharingChange + * @returns ServiceRuleUpdateRequest * @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): Vault.SharingChange; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceRuleUpdateRequest; /** - * Creates a SharingChange message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceRuleUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SharingChange + * @returns ServiceRuleUpdateRequest */ - public static fromObject(object: { [k: string]: any }): Vault.SharingChange; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceRuleUpdateRequest; /** - * Creates a plain object from a SharingChange message. Also converts values to other types if specified. - * @param message SharingChange + * Creates a plain object from a ServiceRuleUpdateRequest message. Also converts values to other types if specified. + * @param message ServiceRuleUpdateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharingChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceRuleUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SharingChange to JSON. + * Converts this ServiceRuleUpdateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SharingChange + * Gets the default type url for ServiceRuleUpdateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Profile. */ - interface IProfile { + /** Properties of a ServiceLogSpecifier. */ + interface IServiceLogSpecifier { - /** Profile data */ - data?: (Uint8Array|null); + /** ServiceLogSpecifier all */ + all?: (boolean|null); - /** Profile profileName */ - profileName?: (string|null); + /** ServiceLogSpecifier serviceLogId */ + serviceLogId?: (number|null); - /** Profile revision */ - revision?: (number|null); + /** ServiceLogSpecifier serviceIdRange */ + serviceIdRange?: (ServiceLogger.IIdRange[]|null); + + /** ServiceLogSpecifier resourceIdRange */ + resourceIdRange?: (ServiceLogger.IIdRange[]|null); + + /** ServiceLogSpecifier startDateTime */ + startDateTime?: (string|null); + + /** ServiceLogSpecifier endDateTime */ + endDateTime?: (string|null); } - /** Represents a Profile. */ - class Profile implements IProfile { + /** Represents a ServiceLogSpecifier. */ + class ServiceLogSpecifier implements IServiceLogSpecifier { /** - * Constructs a new Profile. + * Constructs a new ServiceLogSpecifier. * @param [properties] Properties to set */ - constructor(properties?: Vault.IProfile); + constructor(properties?: ServiceLogger.IServiceLogSpecifier); - /** Profile data. */ - public data: Uint8Array; + /** ServiceLogSpecifier all. */ + public all: boolean; - /** Profile profileName. */ - public profileName: string; + /** ServiceLogSpecifier serviceLogId. */ + public serviceLogId: number; - /** Profile revision. */ - public revision: number; + /** ServiceLogSpecifier serviceIdRange. */ + public serviceIdRange: ServiceLogger.IIdRange[]; + + /** ServiceLogSpecifier resourceIdRange. */ + public resourceIdRange: ServiceLogger.IIdRange[]; + + /** ServiceLogSpecifier startDateTime. */ + public startDateTime: string; + + /** ServiceLogSpecifier endDateTime. */ + public endDateTime: string; /** - * Creates a new Profile instance using the specified properties. + * Creates a new ServiceLogSpecifier instance using the specified properties. * @param [properties] Properties to set - * @returns Profile instance + * @returns ServiceLogSpecifier instance */ - public static create(properties?: Vault.IProfile): Vault.Profile; + public static create(properties?: ServiceLogger.IServiceLogSpecifier): ServiceLogger.ServiceLogSpecifier; /** - * Encodes the specified Profile message. Does not implicitly {@link Vault.Profile.verify|verify} messages. - * @param message Profile message or plain object to encode + * Encodes the specified ServiceLogSpecifier message. Does not implicitly {@link ServiceLogger.ServiceLogSpecifier.verify|verify} messages. + * @param message ServiceLogSpecifier message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.IProfile, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceLogSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Profile message from the specified reader or buffer. + * Decodes a ServiceLogSpecifier message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Profile + * @returns ServiceLogSpecifier * @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): Vault.Profile; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogSpecifier; /** - * Creates a Profile message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogSpecifier message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Profile + * @returns ServiceLogSpecifier */ - public static fromObject(object: { [k: string]: any }): Vault.Profile; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogSpecifier; /** - * Creates a plain object from a Profile message. Also converts values to other types if specified. - * @param message Profile + * Creates a plain object from a ServiceLogSpecifier message. Also converts values to other types if specified. + * @param message ServiceLogSpecifier * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.Profile, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceLogSpecifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Profile to JSON. + * Converts this ServiceLogSpecifier to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Profile + * Gets the default type url for ServiceLogSpecifier * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ProfilePic. */ - interface IProfilePic { - - /** ProfilePic url */ - url?: (string|null); + /** Properties of a ServiceLogGetRequest. */ + interface IServiceLogGetRequest { - /** ProfilePic revision */ - revision?: (number|null); + /** ServiceLogGetRequest serviceLogSpecifier */ + serviceLogSpecifier?: (ServiceLogger.IServiceLogSpecifier[]|null); } - /** Represents a ProfilePic. */ - class ProfilePic implements IProfilePic { + /** Represents a ServiceLogGetRequest. */ + class ServiceLogGetRequest implements IServiceLogGetRequest { /** - * Constructs a new ProfilePic. + * Constructs a new ServiceLogGetRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.IProfilePic); - - /** ProfilePic url. */ - public url: string; + constructor(properties?: ServiceLogger.IServiceLogGetRequest); - /** ProfilePic revision. */ - public revision: number; + /** ServiceLogGetRequest serviceLogSpecifier. */ + public serviceLogSpecifier: ServiceLogger.IServiceLogSpecifier[]; /** - * Creates a new ProfilePic instance using the specified properties. + * Creates a new ServiceLogGetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ProfilePic instance + * @returns ServiceLogGetRequest instance */ - public static create(properties?: Vault.IProfilePic): Vault.ProfilePic; + public static create(properties?: ServiceLogger.IServiceLogGetRequest): ServiceLogger.ServiceLogGetRequest; /** - * Encodes the specified ProfilePic message. Does not implicitly {@link Vault.ProfilePic.verify|verify} messages. - * @param message ProfilePic message or plain object to encode + * Encodes the specified ServiceLogGetRequest message. Does not implicitly {@link ServiceLogger.ServiceLogGetRequest.verify|verify} messages. + * @param message ServiceLogGetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.IProfilePic, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceLogGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ProfilePic message from the specified reader or buffer. + * Decodes a ServiceLogGetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ProfilePic + * @returns ServiceLogGetRequest * @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): Vault.ProfilePic; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogGetRequest; /** - * Creates a ProfilePic message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogGetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ProfilePic + * @returns ServiceLogGetRequest */ - public static fromObject(object: { [k: string]: any }): Vault.ProfilePic; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogGetRequest; /** - * Creates a plain object from a ProfilePic message. Also converts values to other types if specified. - * @param message ProfilePic + * Creates a plain object from a ServiceLogGetRequest message. Also converts values to other types if specified. + * @param message ServiceLogGetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.ProfilePic, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceLogGetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ProfilePic to JSON. + * Converts this ServiceLogGetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ProfilePic + * Gets the default type url for ServiceLogGetRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PendingTeamMember. */ - interface IPendingTeamMember { + /** Properties of a ServiceLogRecord. */ + interface IServiceLogRecord { - /** PendingTeamMember enterpriseUserId */ - enterpriseUserId?: (number|null); + /** ServiceLogRecord serviceLogId */ + serviceLogId?: (number|null); - /** PendingTeamMember userPublicKey */ - userPublicKey?: (Uint8Array|null); + /** ServiceLogRecord serviceInfoId */ + serviceInfoId?: (number|null); - /** PendingTeamMember teamUids */ - teamUids?: (Uint8Array[]|null); + /** ServiceLogRecord resourceId */ + resourceId?: (number|null); - /** PendingTeamMember userEccPublicKey */ - userEccPublicKey?: (Uint8Array|null); + /** ServiceLogRecord logger */ + logger?: (string|null); + + /** ServiceLogRecord logLevel */ + logLevel?: (string|null); + + /** ServiceLogRecord message */ + message?: (string|null); + + /** ServiceLogRecord exception */ + exception?: (string|null); + + /** ServiceLogRecord dateCreated */ + dateCreated?: (string|null); } - /** Represents a PendingTeamMember. */ - class PendingTeamMember implements IPendingTeamMember { + /** Represents a ServiceLogRecord. */ + class ServiceLogRecord implements IServiceLogRecord { /** - * Constructs a new PendingTeamMember. + * Constructs a new ServiceLogRecord. * @param [properties] Properties to set */ - constructor(properties?: Vault.IPendingTeamMember); + constructor(properties?: ServiceLogger.IServiceLogRecord); - /** PendingTeamMember enterpriseUserId. */ - public enterpriseUserId: number; + /** ServiceLogRecord serviceLogId. */ + public serviceLogId: number; - /** PendingTeamMember userPublicKey. */ - public userPublicKey: Uint8Array; + /** ServiceLogRecord serviceInfoId. */ + public serviceInfoId: number; - /** PendingTeamMember teamUids. */ - public teamUids: Uint8Array[]; + /** ServiceLogRecord resourceId. */ + public resourceId: number; - /** PendingTeamMember userEccPublicKey. */ - public userEccPublicKey: Uint8Array; + /** ServiceLogRecord logger. */ + public logger: string; + + /** ServiceLogRecord logLevel. */ + public logLevel: string; + + /** ServiceLogRecord message. */ + public message: string; + + /** ServiceLogRecord exception. */ + public exception: string; + + /** ServiceLogRecord dateCreated. */ + public dateCreated: string; /** - * Creates a new PendingTeamMember instance using the specified properties. + * Creates a new ServiceLogRecord instance using the specified properties. * @param [properties] Properties to set - * @returns PendingTeamMember instance + * @returns ServiceLogRecord instance */ - public static create(properties?: Vault.IPendingTeamMember): Vault.PendingTeamMember; + public static create(properties?: ServiceLogger.IServiceLogRecord): ServiceLogger.ServiceLogRecord; /** - * Encodes the specified PendingTeamMember message. Does not implicitly {@link Vault.PendingTeamMember.verify|verify} messages. - * @param message PendingTeamMember message or plain object to encode + * Encodes the specified ServiceLogRecord message. Does not implicitly {@link ServiceLogger.ServiceLogRecord.verify|verify} messages. + * @param message ServiceLogRecord message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.IPendingTeamMember, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceLogRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PendingTeamMember message from the specified reader or buffer. + * Decodes a ServiceLogRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PendingTeamMember + * @returns ServiceLogRecord * @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): Vault.PendingTeamMember; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogRecord; /** - * Creates a PendingTeamMember message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PendingTeamMember + * @returns ServiceLogRecord */ - public static fromObject(object: { [k: string]: any }): Vault.PendingTeamMember; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogRecord; /** - * Creates a plain object from a PendingTeamMember message. Also converts values to other types if specified. - * @param message PendingTeamMember + * Creates a plain object from a ServiceLogRecord message. Also converts values to other types if specified. + * @param message ServiceLogRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.PendingTeamMember, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceLogRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PendingTeamMember to JSON. + * Converts this ServiceLogRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PendingTeamMember + * Gets the default type url for ServiceLogRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BreachWatchRecord. */ - interface IBreachWatchRecord { - - /** BreachWatchRecord recordUid */ - recordUid?: (Uint8Array|null); - - /** BreachWatchRecord data */ - data?: (Uint8Array|null); - - /** BreachWatchRecord type */ - type?: (BreachWatch.BreachWatchInfoType|null); - - /** BreachWatchRecord scannedBy */ - scannedBy?: (string|null); - - /** BreachWatchRecord revision */ - revision?: (number|null); - - /** BreachWatchRecord scannedByAccountUid */ - scannedByAccountUid?: (Uint8Array|null); - } - - /** Represents a BreachWatchRecord. */ - class BreachWatchRecord implements IBreachWatchRecord { - - /** - * Constructs a new BreachWatchRecord. - * @param [properties] Properties to set - */ - constructor(properties?: Vault.IBreachWatchRecord); - - /** BreachWatchRecord recordUid. */ - public recordUid: Uint8Array; - - /** BreachWatchRecord data. */ - public data: Uint8Array; + /** Properties of a ServiceLogAddRequest. */ + interface IServiceLogAddRequest { - /** BreachWatchRecord type. */ - public type: BreachWatch.BreachWatchInfoType; + /** ServiceLogAddRequest entry */ + entry?: (ServiceLogger.IServiceLogRecord[]|null); + } - /** BreachWatchRecord scannedBy. */ - public scannedBy: string; + /** Represents a ServiceLogAddRequest. */ + class ServiceLogAddRequest implements IServiceLogAddRequest { - /** BreachWatchRecord revision. */ - public revision: number; + /** + * Constructs a new ServiceLogAddRequest. + * @param [properties] Properties to set + */ + constructor(properties?: ServiceLogger.IServiceLogAddRequest); - /** BreachWatchRecord scannedByAccountUid. */ - public scannedByAccountUid: Uint8Array; + /** ServiceLogAddRequest entry. */ + public entry: ServiceLogger.IServiceLogRecord[]; /** - * Creates a new BreachWatchRecord instance using the specified properties. + * Creates a new ServiceLogAddRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BreachWatchRecord instance + * @returns ServiceLogAddRequest instance */ - public static create(properties?: Vault.IBreachWatchRecord): Vault.BreachWatchRecord; + public static create(properties?: ServiceLogger.IServiceLogAddRequest): ServiceLogger.ServiceLogAddRequest; /** - * Encodes the specified BreachWatchRecord message. Does not implicitly {@link Vault.BreachWatchRecord.verify|verify} messages. - * @param message BreachWatchRecord message or plain object to encode + * Encodes the specified ServiceLogAddRequest message. Does not implicitly {@link ServiceLogger.ServiceLogAddRequest.verify|verify} messages. + * @param message ServiceLogAddRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.IBreachWatchRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceLogAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BreachWatchRecord message from the specified reader or buffer. + * Decodes a ServiceLogAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BreachWatchRecord + * @returns ServiceLogAddRequest * @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): Vault.BreachWatchRecord; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogAddRequest; /** - * Creates a BreachWatchRecord message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BreachWatchRecord + * @returns ServiceLogAddRequest */ - public static fromObject(object: { [k: string]: any }): Vault.BreachWatchRecord; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogAddRequest; /** - * Creates a plain object from a BreachWatchRecord message. Also converts values to other types if specified. - * @param message BreachWatchRecord + * Creates a plain object from a ServiceLogAddRequest message. Also converts values to other types if specified. + * @param message ServiceLogAddRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.BreachWatchRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceLogAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BreachWatchRecord to JSON. + * Converts this ServiceLogAddRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BreachWatchRecord + * Gets the default type url for ServiceLogAddRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a UserAuth. */ - interface IUserAuth { - - /** UserAuth uid */ - uid?: (Uint8Array|null); - - /** UserAuth loginType */ - loginType?: (Authentication.LoginType|null); - - /** UserAuth deleted */ - deleted?: (boolean|null); - - /** UserAuth iterations */ - iterations?: (number|null); - - /** UserAuth salt */ - salt?: (Uint8Array|null); - - /** UserAuth encryptedClientKey */ - encryptedClientKey?: (Uint8Array|null); - - /** UserAuth revision */ - revision?: (number|null); + /** Properties of a ServiceLogResponse. */ + interface IServiceLogResponse { - /** UserAuth name */ - name?: (string|null); + /** ServiceLogResponse entry */ + entry?: (ServiceLogger.IServiceLogRecord[]|null); } - /** Represents a UserAuth. */ - class UserAuth implements IUserAuth { + /** Represents a ServiceLogResponse. */ + class ServiceLogResponse implements IServiceLogResponse { /** - * Constructs a new UserAuth. + * Constructs a new ServiceLogResponse. * @param [properties] Properties to set */ - constructor(properties?: Vault.IUserAuth); - - /** UserAuth uid. */ - public uid: Uint8Array; - - /** UserAuth loginType. */ - public loginType: Authentication.LoginType; - - /** UserAuth deleted. */ - public deleted: boolean; - - /** UserAuth iterations. */ - public iterations: number; - - /** UserAuth salt. */ - public salt: Uint8Array; - - /** UserAuth encryptedClientKey. */ - public encryptedClientKey: Uint8Array; - - /** UserAuth revision. */ - public revision: number; + constructor(properties?: ServiceLogger.IServiceLogResponse); - /** UserAuth name. */ - public name: string; + /** ServiceLogResponse entry. */ + public entry: ServiceLogger.IServiceLogRecord[]; /** - * Creates a new UserAuth instance using the specified properties. + * Creates a new ServiceLogResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UserAuth instance + * @returns ServiceLogResponse instance */ - public static create(properties?: Vault.IUserAuth): Vault.UserAuth; + public static create(properties?: ServiceLogger.IServiceLogResponse): ServiceLogger.ServiceLogResponse; /** - * Encodes the specified UserAuth message. Does not implicitly {@link Vault.UserAuth.verify|verify} messages. - * @param message UserAuth message or plain object to encode + * Encodes the specified ServiceLogResponse message. Does not implicitly {@link ServiceLogger.ServiceLogResponse.verify|verify} messages. + * @param message ServiceLogResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.IUserAuth, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceLogResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserAuth message from the specified reader or buffer. + * Decodes a ServiceLogResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserAuth + * @returns ServiceLogResponse * @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): Vault.UserAuth; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogResponse; /** - * Creates a UserAuth message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserAuth + * @returns ServiceLogResponse */ - public static fromObject(object: { [k: string]: any }): Vault.UserAuth; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogResponse; /** - * Creates a plain object from a UserAuth message. Also converts values to other types if specified. - * @param message UserAuth + * Creates a plain object from a ServiceLogResponse message. Also converts values to other types if specified. + * @param message ServiceLogResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.UserAuth, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceLogResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserAuth to JSON. + * Converts this ServiceLogResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserAuth + * Gets the default type url for ServiceLogResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BreachWatchSecurityData. */ - interface IBreachWatchSecurityData { + /** Properties of a ServiceLogClearRequest. */ + interface IServiceLogClearRequest { - /** BreachWatchSecurityData recordUid */ - recordUid?: (Uint8Array|null); + /** ServiceLogClearRequest useDefaults */ + useDefaults?: (boolean|null); - /** BreachWatchSecurityData revision */ - revision?: (number|null); + /** ServiceLogClearRequest serviceTypeId */ + serviceTypeId?: (number|null); - /** BreachWatchSecurityData removed */ - removed?: (boolean|null); + /** ServiceLogClearRequest daysOld */ + daysOld?: (number|null); + + /** ServiceLogClearRequest hoursOld */ + hoursOld?: (number|null); + + /** ServiceLogClearRequest resourceIdRange */ + resourceIdRange?: (ServiceLogger.IIdRange[]|null); } - /** Represents a BreachWatchSecurityData. */ - class BreachWatchSecurityData implements IBreachWatchSecurityData { + /** This is a request to clear the SSO Service Provider log */ + class ServiceLogClearRequest implements IServiceLogClearRequest { /** - * Constructs a new BreachWatchSecurityData. + * Constructs a new ServiceLogClearRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.IBreachWatchSecurityData); + constructor(properties?: ServiceLogger.IServiceLogClearRequest); - /** BreachWatchSecurityData recordUid. */ - public recordUid: Uint8Array; + /** ServiceLogClearRequest useDefaults. */ + public useDefaults: boolean; - /** BreachWatchSecurityData revision. */ - public revision: number; + /** ServiceLogClearRequest serviceTypeId. */ + public serviceTypeId: number; - /** BreachWatchSecurityData removed. */ - public removed: boolean; + /** ServiceLogClearRequest daysOld. */ + public daysOld: number; + + /** ServiceLogClearRequest hoursOld. */ + public hoursOld: number; + + /** ServiceLogClearRequest resourceIdRange. */ + public resourceIdRange: ServiceLogger.IIdRange[]; /** - * Creates a new BreachWatchSecurityData instance using the specified properties. + * Creates a new ServiceLogClearRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BreachWatchSecurityData instance + * @returns ServiceLogClearRequest instance */ - public static create(properties?: Vault.IBreachWatchSecurityData): Vault.BreachWatchSecurityData; + public static create(properties?: ServiceLogger.IServiceLogClearRequest): ServiceLogger.ServiceLogClearRequest; /** - * Encodes the specified BreachWatchSecurityData message. Does not implicitly {@link Vault.BreachWatchSecurityData.verify|verify} messages. - * @param message BreachWatchSecurityData message or plain object to encode + * Encodes the specified ServiceLogClearRequest message. Does not implicitly {@link ServiceLogger.ServiceLogClearRequest.verify|verify} messages. + * @param message ServiceLogClearRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.IBreachWatchSecurityData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceLogClearRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BreachWatchSecurityData message from the specified reader or buffer. + * Decodes a ServiceLogClearRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BreachWatchSecurityData + * @returns ServiceLogClearRequest * @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): Vault.BreachWatchSecurityData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogClearRequest; /** - * Creates a BreachWatchSecurityData message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogClearRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BreachWatchSecurityData + * @returns ServiceLogClearRequest */ - public static fromObject(object: { [k: string]: any }): Vault.BreachWatchSecurityData; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogClearRequest; /** - * Creates a plain object from a BreachWatchSecurityData message. Also converts values to other types if specified. - * @param message BreachWatchSecurityData + * Creates a plain object from a ServiceLogClearRequest message. Also converts values to other types if specified. + * @param message ServiceLogClearRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.BreachWatchSecurityData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceLogClearRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BreachWatchSecurityData to JSON. + * Converts this ServiceLogClearRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BreachWatchSecurityData + * Gets the default type url for ServiceLogClearRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReusedPasswords. */ - interface IReusedPasswords { + /** Properties of a ServiceLogClearResponse. */ + interface IServiceLogClearResponse { - /** ReusedPasswords count */ - count?: (number|null); + /** ServiceLogClearResponse serviceTypeId */ + serviceTypeId?: (number|null); - /** ReusedPasswords revision */ - revision?: (number|null); + /** ServiceLogClearResponse serviceName */ + serviceName?: (string|null); + + /** ServiceLogClearResponse resourceIdRange */ + resourceIdRange?: (ServiceLogger.IIdRange[]|null); + + /** ServiceLogClearResponse numDeleted */ + numDeleted?: (number|null); + + /** ServiceLogClearResponse numRemaining */ + numRemaining?: (number|null); } - /** Represents a ReusedPasswords. */ - class ReusedPasswords implements IReusedPasswords { + /** This is the response from the sso_log_clear command */ + class ServiceLogClearResponse implements IServiceLogClearResponse { /** - * Constructs a new ReusedPasswords. + * Constructs a new ServiceLogClearResponse. * @param [properties] Properties to set */ - constructor(properties?: Vault.IReusedPasswords); + constructor(properties?: ServiceLogger.IServiceLogClearResponse); - /** ReusedPasswords count. */ - public count: number; + /** ServiceLogClearResponse serviceTypeId. */ + public serviceTypeId: number; - /** ReusedPasswords revision. */ - public revision: number; + /** ServiceLogClearResponse serviceName. */ + public serviceName: string; + + /** ServiceLogClearResponse resourceIdRange. */ + public resourceIdRange: ServiceLogger.IIdRange[]; + + /** ServiceLogClearResponse numDeleted. */ + public numDeleted: number; + + /** ServiceLogClearResponse numRemaining. */ + public numRemaining: number; /** - * Creates a new ReusedPasswords instance using the specified properties. + * Creates a new ServiceLogClearResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReusedPasswords instance + * @returns ServiceLogClearResponse instance */ - public static create(properties?: Vault.IReusedPasswords): Vault.ReusedPasswords; + public static create(properties?: ServiceLogger.IServiceLogClearResponse): ServiceLogger.ServiceLogClearResponse; /** - * Encodes the specified ReusedPasswords message. Does not implicitly {@link Vault.ReusedPasswords.verify|verify} messages. - * @param message ReusedPasswords message or plain object to encode + * Encodes the specified ServiceLogClearResponse message. Does not implicitly {@link ServiceLogger.ServiceLogClearResponse.verify|verify} messages. + * @param message ServiceLogClearResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.IReusedPasswords, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ServiceLogger.IServiceLogClearResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReusedPasswords message from the specified reader or buffer. + * Decodes a ServiceLogClearResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReusedPasswords + * @returns ServiceLogClearResponse * @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): Vault.ReusedPasswords; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ServiceLogger.ServiceLogClearResponse; /** - * Creates a ReusedPasswords message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceLogClearResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReusedPasswords + * @returns ServiceLogClearResponse */ - public static fromObject(object: { [k: string]: any }): Vault.ReusedPasswords; + public static fromObject(object: { [k: string]: any }): ServiceLogger.ServiceLogClearResponse; /** - * Creates a plain object from a ReusedPasswords message. Also converts values to other types if specified. - * @param message ReusedPasswords + * Creates a plain object from a ServiceLogClearResponse message. Also converts values to other types if specified. + * @param message ServiceLogClearResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.ReusedPasswords, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ServiceLogger.ServiceLogClearResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReusedPasswords to JSON. + * Converts this ServiceLogClearResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReusedPasswords + * Gets the default type url for ServiceLogClearResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } +} - /** Properties of a SharedFolderRecord. */ - interface ISharedFolderRecord { - - /** SharedFolderRecord sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); - - /** SharedFolderRecord recordUid */ - recordUid?: (Uint8Array|null); - - /** SharedFolderRecord recordKey */ - recordKey?: (Uint8Array|null); - - /** SharedFolderRecord canShare */ - canShare?: (boolean|null); - - /** SharedFolderRecord canEdit */ - canEdit?: (boolean|null); - - /** SharedFolderRecord ownerAccountUid */ - ownerAccountUid?: (Uint8Array|null); +/** Namespace Vault. */ +export namespace Vault { - /** SharedFolderRecord expiration */ - expiration?: (number|null); + /** CacheStatus enum. */ + enum CacheStatus { + KEEP = 0, + CLEAR = 1 + } - /** SharedFolderRecord owner */ - owner?: (boolean|null); + /** Properties of a SyncDownRequest. */ + interface ISyncDownRequest { - /** SharedFolderRecord expirationNotificationType */ - expirationNotificationType?: (Records.TimerNotificationType|null); + /** SyncDownRequest continuationToken */ + continuationToken?: (Uint8Array|null); - /** SharedFolderRecord ownerUsername */ - ownerUsername?: (string|null); + /** SyncDownRequest dataVersion */ + dataVersion?: (number|null); - /** SharedFolderRecord rotateOnExpiration */ - rotateOnExpiration?: (boolean|null); + /** SyncDownRequest debug */ + debug?: (boolean|null); } - /** Represents a SharedFolderRecord. */ - class SharedFolderRecord implements ISharedFolderRecord { + /** Represents a SyncDownRequest. */ + class SyncDownRequest implements ISyncDownRequest { /** - * Constructs a new SharedFolderRecord. + * Constructs a new SyncDownRequest. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISharedFolderRecord); - - /** SharedFolderRecord sharedFolderUid. */ - public sharedFolderUid: Uint8Array; - - /** SharedFolderRecord recordUid. */ - public recordUid: Uint8Array; - - /** SharedFolderRecord recordKey. */ - public recordKey: Uint8Array; - - /** SharedFolderRecord canShare. */ - public canShare: boolean; - - /** SharedFolderRecord canEdit. */ - public canEdit: boolean; - - /** SharedFolderRecord ownerAccountUid. */ - public ownerAccountUid: Uint8Array; - - /** SharedFolderRecord expiration. */ - public expiration: number; - - /** SharedFolderRecord owner. */ - public owner: boolean; + constructor(properties?: Vault.ISyncDownRequest); - /** SharedFolderRecord expirationNotificationType. */ - public expirationNotificationType: Records.TimerNotificationType; + /** SyncDownRequest continuationToken. */ + public continuationToken: Uint8Array; - /** SharedFolderRecord ownerUsername. */ - public ownerUsername: string; + /** SyncDownRequest dataVersion. */ + public dataVersion: number; - /** SharedFolderRecord rotateOnExpiration. */ - public rotateOnExpiration: boolean; + /** SyncDownRequest debug. */ + public debug: boolean; /** - * Creates a new SharedFolderRecord instance using the specified properties. + * Creates a new SyncDownRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SharedFolderRecord instance + * @returns SyncDownRequest instance */ - public static create(properties?: Vault.ISharedFolderRecord): Vault.SharedFolderRecord; + public static create(properties?: Vault.ISyncDownRequest): Vault.SyncDownRequest; /** - * Encodes the specified SharedFolderRecord message. Does not implicitly {@link Vault.SharedFolderRecord.verify|verify} messages. - * @param message SharedFolderRecord message or plain object to encode + * Encodes the specified SyncDownRequest message. Does not implicitly {@link Vault.SyncDownRequest.verify|verify} messages. + * @param message SyncDownRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.ISharedFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISyncDownRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SharedFolderRecord message from the specified reader or buffer. + * Decodes a SyncDownRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SharedFolderRecord + * @returns SyncDownRequest * @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): Vault.SharedFolderRecord; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SyncDownRequest; /** - * Creates a SharedFolderRecord message from a plain object. Also converts values to their respective internal types. + * Creates a SyncDownRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SharedFolderRecord + * @returns SyncDownRequest */ - public static fromObject(object: { [k: string]: any }): Vault.SharedFolderRecord; + public static fromObject(object: { [k: string]: any }): Vault.SyncDownRequest; /** - * Creates a plain object from a SharedFolderRecord message. Also converts values to other types if specified. - * @param message SharedFolderRecord + * Creates a plain object from a SyncDownRequest message. Also converts values to other types if specified. + * @param message SyncDownRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharedFolderRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SyncDownRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SharedFolderRecord to JSON. + * Converts this SyncDownRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SharedFolderRecord + * Gets the default type url for SyncDownRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SharedFolderUser. */ - interface ISharedFolderUser { + /** Properties of a SyncDownResponse. */ + interface ISyncDownResponse { - /** SharedFolderUser sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + /** SyncDownResponse continuationToken */ + continuationToken?: (Uint8Array|null); - /** SharedFolderUser username */ - username?: (string|null); + /** SyncDownResponse hasMore */ + hasMore?: (boolean|null); - /** SharedFolderUser manageRecords */ - manageRecords?: (boolean|null); + /** SyncDownResponse cacheStatus */ + cacheStatus?: (Vault.CacheStatus|null); - /** SharedFolderUser manageUsers */ - manageUsers?: (boolean|null); + /** SyncDownResponse userFolders */ + userFolders?: (Vault.IUserFolder[]|null); - /** SharedFolderUser accountUid */ - accountUid?: (Uint8Array|null); + /** SyncDownResponse sharedFolders */ + sharedFolders?: (Vault.ISharedFolder[]|null); - /** SharedFolderUser expiration */ - expiration?: (number|null); + /** SyncDownResponse userFolderSharedFolders */ + userFolderSharedFolders?: (Vault.IUserFolderSharedFolder[]|null); - /** SharedFolderUser expirationNotificationType */ - expirationNotificationType?: (Records.TimerNotificationType|null); + /** SyncDownResponse sharedFolderFolders */ + sharedFolderFolders?: (Vault.ISharedFolderFolder[]|null); - /** SharedFolderUser rotateOnExpiration */ - rotateOnExpiration?: (boolean|null); - } + /** SyncDownResponse records */ + records?: (Vault.IRecord[]|null); + + /** SyncDownResponse recordMetaData */ + recordMetaData?: (Vault.IRecordMetaData[]|null); + + /** SyncDownResponse nonSharedData */ + nonSharedData?: (Vault.INonSharedData[]|null); + + /** SyncDownResponse recordLinks */ + recordLinks?: (Vault.IRecordLink[]|null); + + /** SyncDownResponse userFolderRecords */ + userFolderRecords?: (Vault.IUserFolderRecord[]|null); + + /** SyncDownResponse sharedFolderRecords */ + sharedFolderRecords?: (Vault.ISharedFolderRecord[]|null); + + /** SyncDownResponse sharedFolderFolderRecords */ + sharedFolderFolderRecords?: (Vault.ISharedFolderFolderRecord[]|null); + + /** SyncDownResponse sharedFolderUsers */ + sharedFolderUsers?: (Vault.ISharedFolderUser[]|null); + + /** SyncDownResponse sharedFolderTeams */ + sharedFolderTeams?: (Vault.ISharedFolderTeam[]|null); + + /** SyncDownResponse recordAddAuditData */ + recordAddAuditData?: (Uint8Array[]|null); + + /** SyncDownResponse teams */ + teams?: (Vault.ITeam[]|null); + + /** SyncDownResponse sharingChanges */ + sharingChanges?: (Vault.ISharingChange[]|null); + + /** SyncDownResponse profile */ + profile?: (Vault.IProfile|null); + + /** SyncDownResponse profilePic */ + profilePic?: (Vault.IProfilePic|null); - /** Represents a SharedFolderUser. */ - class SharedFolderUser implements ISharedFolderUser { + /** SyncDownResponse pendingTeamMembers */ + pendingTeamMembers?: (Vault.IPendingTeamMember[]|null); - /** - * Constructs a new SharedFolderUser. - * @param [properties] Properties to set - */ - constructor(properties?: Vault.ISharedFolderUser); + /** SyncDownResponse breachWatchRecords */ + breachWatchRecords?: (Vault.IBreachWatchRecord[]|null); - /** SharedFolderUser sharedFolderUid. */ - public sharedFolderUid: Uint8Array; + /** SyncDownResponse userAuths */ + userAuths?: (Vault.IUserAuth[]|null); - /** SharedFolderUser username. */ - public username: string; + /** SyncDownResponse breachWatchSecurityData */ + breachWatchSecurityData?: (Vault.IBreachWatchSecurityData[]|null); - /** SharedFolderUser manageRecords. */ - public manageRecords: boolean; + /** SyncDownResponse reusedPasswords */ + reusedPasswords?: (Vault.IReusedPasswords|null); - /** SharedFolderUser manageUsers. */ - public manageUsers: boolean; + /** SyncDownResponse removedUserFolders */ + removedUserFolders?: (Uint8Array[]|null); - /** SharedFolderUser accountUid. */ - public accountUid: Uint8Array; + /** SyncDownResponse removedSharedFolders */ + removedSharedFolders?: (Uint8Array[]|null); - /** SharedFolderUser expiration. */ - public expiration: number; + /** SyncDownResponse removedUserFolderSharedFolders */ + removedUserFolderSharedFolders?: (Vault.IUserFolderSharedFolder[]|null); - /** SharedFolderUser expirationNotificationType. */ - public expirationNotificationType: Records.TimerNotificationType; + /** SyncDownResponse removedSharedFolderFolders */ + removedSharedFolderFolders?: (Vault.ISharedFolderFolder[]|null); - /** SharedFolderUser rotateOnExpiration. */ - public rotateOnExpiration: boolean; + /** SyncDownResponse removedRecords */ + removedRecords?: (Uint8Array[]|null); - /** - * Creates a new SharedFolderUser instance using the specified properties. - * @param [properties] Properties to set - * @returns SharedFolderUser instance - */ - public static create(properties?: Vault.ISharedFolderUser): Vault.SharedFolderUser; + /** SyncDownResponse removedRecordLinks */ + removedRecordLinks?: (Vault.IRecordLink[]|null); - /** - * Encodes the specified SharedFolderUser message. Does not implicitly {@link Vault.SharedFolderUser.verify|verify} messages. - * @param message SharedFolderUser message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Vault.ISharedFolderUser, writer?: $protobuf.Writer): $protobuf.Writer; + /** SyncDownResponse removedUserFolderRecords */ + removedUserFolderRecords?: (Vault.IUserFolderRecord[]|null); - /** - * Decodes a SharedFolderUser message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SharedFolderUser - * @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): Vault.SharedFolderUser; + /** SyncDownResponse removedSharedFolderRecords */ + removedSharedFolderRecords?: (Vault.ISharedFolderRecord[]|null); - /** - * Creates a SharedFolderUser message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SharedFolderUser - */ - public static fromObject(object: { [k: string]: any }): Vault.SharedFolderUser; + /** SyncDownResponse removedSharedFolderFolderRecords */ + removedSharedFolderFolderRecords?: (Vault.ISharedFolderFolderRecord[]|null); - /** - * Creates a plain object from a SharedFolderUser message. Also converts values to other types if specified. - * @param message SharedFolderUser - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Vault.SharedFolderUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** SyncDownResponse removedSharedFolderUsers */ + removedSharedFolderUsers?: (Vault.ISharedFolderUser[]|null); - /** - * Converts this SharedFolderUser to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** SyncDownResponse removedSharedFolderTeams */ + removedSharedFolderTeams?: (Vault.ISharedFolderTeam[]|null); - /** - * Gets the default type url for SharedFolderUser - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** SyncDownResponse removedTeams */ + removedTeams?: (Uint8Array[]|null); - /** Properties of a SharedFolderTeam. */ - interface ISharedFolderTeam { + /** SyncDownResponse ksmAppShares */ + ksmAppShares?: (Vault.IKsmChange[]|null); - /** SharedFolderTeam sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + /** SyncDownResponse ksmAppClients */ + ksmAppClients?: (Vault.IKsmChange[]|null); - /** SharedFolderTeam teamUid */ - teamUid?: (Uint8Array|null); + /** SyncDownResponse shareInvitations */ + shareInvitations?: (Vault.IShareInvitation[]|null); - /** SharedFolderTeam name */ - name?: (string|null); + /** SyncDownResponse diagnostics */ + diagnostics?: (Vault.ISyncDiagnostics|null); - /** SharedFolderTeam manageRecords */ - manageRecords?: (boolean|null); + /** SyncDownResponse recordRotations */ + recordRotations?: (Vault.IRecordRotation[]|null); - /** SharedFolderTeam manageUsers */ - manageUsers?: (boolean|null); + /** SyncDownResponse users */ + users?: (Vault.IUser[]|null); - /** SharedFolderTeam expiration */ - expiration?: (number|null); + /** SyncDownResponse removedUsers */ + removedUsers?: (Uint8Array[]|null); - /** SharedFolderTeam expirationNotificationType */ - expirationNotificationType?: (Records.TimerNotificationType|null); + /** SyncDownResponse securityScoreData */ + securityScoreData?: (Vault.ISecurityScoreData[]|null); - /** SharedFolderTeam rotateOnExpiration */ - rotateOnExpiration?: (boolean|null); + /** SyncDownResponse notificationSync */ + notificationSync?: (NotificationCenter.INotificationWrapper[]|null); + + /** SyncDownResponse keeperDriveData */ + keeperDriveData?: (Vault.IKeeperDriveData|null); } - /** Represents a SharedFolderTeam. */ - class SharedFolderTeam implements ISharedFolderTeam { + /** Represents a SyncDownResponse. */ + class SyncDownResponse implements ISyncDownResponse { /** - * Constructs a new SharedFolderTeam. + * Constructs a new SyncDownResponse. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISharedFolderTeam); + constructor(properties?: Vault.ISyncDownResponse); - /** SharedFolderTeam sharedFolderUid. */ - public sharedFolderUid: Uint8Array; + /** SyncDownResponse continuationToken. */ + public continuationToken: Uint8Array; - /** SharedFolderTeam teamUid. */ - public teamUid: Uint8Array; + /** SyncDownResponse hasMore. */ + public hasMore: boolean; - /** SharedFolderTeam name. */ - public name: string; + /** SyncDownResponse cacheStatus. */ + public cacheStatus: Vault.CacheStatus; - /** SharedFolderTeam manageRecords. */ - public manageRecords: boolean; + /** SyncDownResponse userFolders. */ + public userFolders: Vault.IUserFolder[]; - /** SharedFolderTeam manageUsers. */ - public manageUsers: boolean; + /** SyncDownResponse sharedFolders. */ + public sharedFolders: Vault.ISharedFolder[]; - /** SharedFolderTeam expiration. */ - public expiration: number; + /** SyncDownResponse userFolderSharedFolders. */ + public userFolderSharedFolders: Vault.IUserFolderSharedFolder[]; - /** SharedFolderTeam expirationNotificationType. */ - public expirationNotificationType: Records.TimerNotificationType; + /** SyncDownResponse sharedFolderFolders. */ + public sharedFolderFolders: Vault.ISharedFolderFolder[]; - /** SharedFolderTeam rotateOnExpiration. */ - public rotateOnExpiration: boolean; + /** SyncDownResponse records. */ + public records: Vault.IRecord[]; - /** - * Creates a new SharedFolderTeam instance using the specified properties. - * @param [properties] Properties to set - * @returns SharedFolderTeam instance - */ - public static create(properties?: Vault.ISharedFolderTeam): Vault.SharedFolderTeam; + /** SyncDownResponse recordMetaData. */ + public recordMetaData: Vault.IRecordMetaData[]; - /** - * Encodes the specified SharedFolderTeam message. Does not implicitly {@link Vault.SharedFolderTeam.verify|verify} messages. - * @param message SharedFolderTeam message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Vault.ISharedFolderTeam, writer?: $protobuf.Writer): $protobuf.Writer; + /** SyncDownResponse nonSharedData. */ + public nonSharedData: Vault.INonSharedData[]; - /** - * Decodes a SharedFolderTeam message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SharedFolderTeam - * @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): Vault.SharedFolderTeam; + /** SyncDownResponse recordLinks. */ + public recordLinks: Vault.IRecordLink[]; - /** - * Creates a SharedFolderTeam message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SharedFolderTeam - */ - public static fromObject(object: { [k: string]: any }): Vault.SharedFolderTeam; + /** SyncDownResponse userFolderRecords. */ + public userFolderRecords: Vault.IUserFolderRecord[]; - /** - * Creates a plain object from a SharedFolderTeam message. Also converts values to other types if specified. - * @param message SharedFolderTeam - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Vault.SharedFolderTeam, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** SyncDownResponse sharedFolderRecords. */ + public sharedFolderRecords: Vault.ISharedFolderRecord[]; - /** - * Converts this SharedFolderTeam to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** SyncDownResponse sharedFolderFolderRecords. */ + public sharedFolderFolderRecords: Vault.ISharedFolderFolderRecord[]; + + /** SyncDownResponse sharedFolderUsers. */ + public sharedFolderUsers: Vault.ISharedFolderUser[]; + + /** SyncDownResponse sharedFolderTeams. */ + public sharedFolderTeams: Vault.ISharedFolderTeam[]; + + /** SyncDownResponse recordAddAuditData. */ + public recordAddAuditData: Uint8Array[]; + + /** SyncDownResponse teams. */ + public teams: Vault.ITeam[]; + + /** SyncDownResponse sharingChanges. */ + public sharingChanges: Vault.ISharingChange[]; + + /** SyncDownResponse profile. */ + public profile?: (Vault.IProfile|null); + + /** SyncDownResponse profilePic. */ + public profilePic?: (Vault.IProfilePic|null); - /** - * Gets the default type url for SharedFolderTeam - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** SyncDownResponse pendingTeamMembers. */ + public pendingTeamMembers: Vault.IPendingTeamMember[]; - /** Properties of a KsmChange. */ - interface IKsmChange { + /** SyncDownResponse breachWatchRecords. */ + public breachWatchRecords: Vault.IBreachWatchRecord[]; - /** KsmChange appRecordUid */ - appRecordUid?: (Uint8Array|null); + /** SyncDownResponse userAuths. */ + public userAuths: Vault.IUserAuth[]; - /** KsmChange detailId */ - detailId?: (Uint8Array|null); + /** SyncDownResponse breachWatchSecurityData. */ + public breachWatchSecurityData: Vault.IBreachWatchSecurityData[]; - /** KsmChange removed */ - removed?: (boolean|null); + /** SyncDownResponse reusedPasswords. */ + public reusedPasswords?: (Vault.IReusedPasswords|null); - /** KsmChange appClientType */ - appClientType?: (Enterprise.AppClientType|null); + /** SyncDownResponse removedUserFolders. */ + public removedUserFolders: Uint8Array[]; - /** KsmChange expiration */ - expiration?: (number|null); - } + /** SyncDownResponse removedSharedFolders. */ + public removedSharedFolders: Uint8Array[]; - /** Represents a KsmChange. */ - class KsmChange implements IKsmChange { + /** SyncDownResponse removedUserFolderSharedFolders. */ + public removedUserFolderSharedFolders: Vault.IUserFolderSharedFolder[]; - /** - * Constructs a new KsmChange. - * @param [properties] Properties to set - */ - constructor(properties?: Vault.IKsmChange); + /** SyncDownResponse removedSharedFolderFolders. */ + public removedSharedFolderFolders: Vault.ISharedFolderFolder[]; - /** KsmChange appRecordUid. */ - public appRecordUid: Uint8Array; + /** SyncDownResponse removedRecords. */ + public removedRecords: Uint8Array[]; - /** KsmChange detailId. */ - public detailId: Uint8Array; + /** SyncDownResponse removedRecordLinks. */ + public removedRecordLinks: Vault.IRecordLink[]; - /** KsmChange removed. */ - public removed: boolean; + /** SyncDownResponse removedUserFolderRecords. */ + public removedUserFolderRecords: Vault.IUserFolderRecord[]; - /** KsmChange appClientType. */ - public appClientType: Enterprise.AppClientType; + /** SyncDownResponse removedSharedFolderRecords. */ + public removedSharedFolderRecords: Vault.ISharedFolderRecord[]; - /** KsmChange expiration. */ - public expiration: number; + /** SyncDownResponse removedSharedFolderFolderRecords. */ + public removedSharedFolderFolderRecords: Vault.ISharedFolderFolderRecord[]; - /** - * Creates a new KsmChange instance using the specified properties. - * @param [properties] Properties to set - * @returns KsmChange instance - */ - public static create(properties?: Vault.IKsmChange): Vault.KsmChange; + /** SyncDownResponse removedSharedFolderUsers. */ + public removedSharedFolderUsers: Vault.ISharedFolderUser[]; - /** - * Encodes the specified KsmChange message. Does not implicitly {@link Vault.KsmChange.verify|verify} messages. - * @param message KsmChange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Vault.IKsmChange, writer?: $protobuf.Writer): $protobuf.Writer; + /** SyncDownResponse removedSharedFolderTeams. */ + public removedSharedFolderTeams: Vault.ISharedFolderTeam[]; - /** - * Decodes a KsmChange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KsmChange - * @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): Vault.KsmChange; + /** SyncDownResponse removedTeams. */ + public removedTeams: Uint8Array[]; - /** - * Creates a KsmChange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KsmChange - */ - public static fromObject(object: { [k: string]: any }): Vault.KsmChange; + /** SyncDownResponse ksmAppShares. */ + public ksmAppShares: Vault.IKsmChange[]; - /** - * Creates a plain object from a KsmChange message. Also converts values to other types if specified. - * @param message KsmChange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Vault.KsmChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** SyncDownResponse ksmAppClients. */ + public ksmAppClients: Vault.IKsmChange[]; - /** - * Converts this KsmChange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** SyncDownResponse shareInvitations. */ + public shareInvitations: Vault.IShareInvitation[]; - /** - * Gets the default type url for KsmChange - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** SyncDownResponse diagnostics. */ + public diagnostics?: (Vault.ISyncDiagnostics|null); - /** Properties of a ShareInvitation. */ - interface IShareInvitation { + /** SyncDownResponse recordRotations. */ + public recordRotations: Vault.IRecordRotation[]; - /** ShareInvitation username */ - username?: (string|null); - } + /** SyncDownResponse users. */ + public users: Vault.IUser[]; - /** Represents a ShareInvitation. */ - class ShareInvitation implements IShareInvitation { + /** SyncDownResponse removedUsers. */ + public removedUsers: Uint8Array[]; - /** - * Constructs a new ShareInvitation. - * @param [properties] Properties to set - */ - constructor(properties?: Vault.IShareInvitation); + /** SyncDownResponse securityScoreData. */ + public securityScoreData: Vault.ISecurityScoreData[]; - /** ShareInvitation username. */ - public username: string; + /** SyncDownResponse notificationSync. */ + public notificationSync: NotificationCenter.INotificationWrapper[]; + + /** SyncDownResponse keeperDriveData. */ + public keeperDriveData?: (Vault.IKeeperDriveData|null); /** - * Creates a new ShareInvitation instance using the specified properties. + * Creates a new SyncDownResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ShareInvitation instance + * @returns SyncDownResponse instance */ - public static create(properties?: Vault.IShareInvitation): Vault.ShareInvitation; + public static create(properties?: Vault.ISyncDownResponse): Vault.SyncDownResponse; /** - * Encodes the specified ShareInvitation message. Does not implicitly {@link Vault.ShareInvitation.verify|verify} messages. - * @param message ShareInvitation message or plain object to encode + * Encodes the specified SyncDownResponse message. Does not implicitly {@link Vault.SyncDownResponse.verify|verify} messages. + * @param message SyncDownResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.IShareInvitation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISyncDownResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ShareInvitation message from the specified reader or buffer. + * Decodes a SyncDownResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ShareInvitation + * @returns SyncDownResponse * @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): Vault.ShareInvitation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SyncDownResponse; /** - * Creates a ShareInvitation message from a plain object. Also converts values to their respective internal types. + * Creates a SyncDownResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ShareInvitation + * @returns SyncDownResponse */ - public static fromObject(object: { [k: string]: any }): Vault.ShareInvitation; + public static fromObject(object: { [k: string]: any }): Vault.SyncDownResponse; /** - * Creates a plain object from a ShareInvitation message. Also converts values to other types if specified. - * @param message ShareInvitation + * Creates a plain object from a SyncDownResponse message. Also converts values to other types if specified. + * @param message SyncDownResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.ShareInvitation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SyncDownResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ShareInvitation to JSON. + * Converts this SyncDownResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ShareInvitation + * Gets the default type url for SyncDownResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a User. */ - interface IUser { + /** Properties of a DriveRecord. */ + interface IDriveRecord { - /** User accountUid */ - accountUid?: (Uint8Array|null); + /** DriveRecord recordUid */ + recordUid?: (Uint8Array|null); - /** User username */ - username?: (string|null); + /** DriveRecord revision */ + revision?: (number|null); + + /** DriveRecord version */ + version?: (number|null); + + /** DriveRecord shared */ + shared?: (boolean|null); + + /** DriveRecord clientModifiedTime */ + clientModifiedTime?: (number|null); + + /** DriveRecord fileSize */ + fileSize?: (number|null); + + /** DriveRecord thumbnailSize */ + thumbnailSize?: (number|null); } - /** Represents a User. */ - class User implements IUser { + /** Represents a DriveRecord. */ + class DriveRecord implements IDriveRecord { /** - * Constructs a new User. + * Constructs a new DriveRecord. * @param [properties] Properties to set */ - constructor(properties?: Vault.IUser); + constructor(properties?: Vault.IDriveRecord); - /** User accountUid. */ - public accountUid: Uint8Array; + /** DriveRecord recordUid. */ + public recordUid: Uint8Array; - /** User username. */ - public username: string; + /** DriveRecord revision. */ + public revision: number; + + /** DriveRecord version. */ + public version: number; + + /** DriveRecord shared. */ + public shared: boolean; + + /** DriveRecord clientModifiedTime. */ + public clientModifiedTime: number; + + /** DriveRecord fileSize. */ + public fileSize: number; + + /** DriveRecord thumbnailSize. */ + public thumbnailSize: number; /** - * Creates a new User instance using the specified properties. + * Creates a new DriveRecord instance using the specified properties. * @param [properties] Properties to set - * @returns User instance + * @returns DriveRecord instance */ - public static create(properties?: Vault.IUser): Vault.User; + public static create(properties?: Vault.IDriveRecord): Vault.DriveRecord; /** - * Encodes the specified User message. Does not implicitly {@link Vault.User.verify|verify} messages. - * @param message User message or plain object to encode + * Encodes the specified DriveRecord message. Does not implicitly {@link Vault.DriveRecord.verify|verify} messages. + * @param message DriveRecord message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.IUser, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IDriveRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a User message from the specified reader or buffer. + * Decodes a DriveRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns User + * @returns DriveRecord * @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): Vault.User; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.DriveRecord; /** - * Creates a User message from a plain object. Also converts values to their respective internal types. + * Creates a DriveRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns User + * @returns DriveRecord */ - public static fromObject(object: { [k: string]: any }): Vault.User; + public static fromObject(object: { [k: string]: any }): Vault.DriveRecord; /** - * Creates a plain object from a User message. Also converts values to other types if specified. - * @param message User + * Creates a plain object from a DriveRecord message. Also converts values to other types if specified. + * @param message DriveRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.User, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.DriveRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this User to JSON. + * Converts this DriveRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for User + * Gets the default type url for DriveRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SyncDiagnostics. */ - interface ISyncDiagnostics { - - /** SyncDiagnostics continuationToken */ - continuationToken?: (Uint8Array|null); - - /** SyncDiagnostics userId */ - userId?: (number|null); + /** Properties of a FolderSharingState. */ + interface IFolderSharingState { - /** SyncDiagnostics enterpriseUserId */ - enterpriseUserId?: (number|null); + /** FolderSharingState folderUid */ + folderUid?: (Uint8Array|null); - /** SyncDiagnostics syncedTo */ - syncedTo?: (number|null); + /** FolderSharingState shared */ + shared?: (boolean|null); - /** SyncDiagnostics syncingTo */ - syncingTo?: (number|null); + /** FolderSharingState count */ + count?: (number|null); } - /** Represents a SyncDiagnostics. */ - class SyncDiagnostics implements ISyncDiagnostics { + /** Represents a FolderSharingState. */ + class FolderSharingState implements IFolderSharingState { /** - * Constructs a new SyncDiagnostics. + * Constructs a new FolderSharingState. * @param [properties] Properties to set */ - constructor(properties?: Vault.ISyncDiagnostics); - - /** SyncDiagnostics continuationToken. */ - public continuationToken: Uint8Array; - - /** SyncDiagnostics userId. */ - public userId: number; + constructor(properties?: Vault.IFolderSharingState); - /** SyncDiagnostics enterpriseUserId. */ - public enterpriseUserId: number; + /** FolderSharingState folderUid. */ + public folderUid: Uint8Array; - /** SyncDiagnostics syncedTo. */ - public syncedTo: number; + /** FolderSharingState shared. */ + public shared: boolean; - /** SyncDiagnostics syncingTo. */ - public syncingTo: number; + /** FolderSharingState count. */ + public count: number; /** - * Creates a new SyncDiagnostics instance using the specified properties. + * Creates a new FolderSharingState instance using the specified properties. * @param [properties] Properties to set - * @returns SyncDiagnostics instance + * @returns FolderSharingState instance */ - public static create(properties?: Vault.ISyncDiagnostics): Vault.SyncDiagnostics; + public static create(properties?: Vault.IFolderSharingState): Vault.FolderSharingState; /** - * Encodes the specified SyncDiagnostics message. Does not implicitly {@link Vault.SyncDiagnostics.verify|verify} messages. - * @param message SyncDiagnostics message or plain object to encode + * Encodes the specified FolderSharingState message. Does not implicitly {@link Vault.FolderSharingState.verify|verify} messages. + * @param message FolderSharingState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.ISyncDiagnostics, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IFolderSharingState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SyncDiagnostics message from the specified reader or buffer. + * Decodes a FolderSharingState message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SyncDiagnostics + * @returns FolderSharingState * @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): Vault.SyncDiagnostics; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.FolderSharingState; /** - * Creates a SyncDiagnostics message from a plain object. Also converts values to their respective internal types. + * Creates a FolderSharingState message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SyncDiagnostics + * @returns FolderSharingState */ - public static fromObject(object: { [k: string]: any }): Vault.SyncDiagnostics; + public static fromObject(object: { [k: string]: any }): Vault.FolderSharingState; /** - * Creates a plain object from a SyncDiagnostics message. Also converts values to other types if specified. - * @param message SyncDiagnostics + * Creates a plain object from a FolderSharingState message. Also converts values to other types if specified. + * @param message FolderSharingState * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SyncDiagnostics, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.FolderSharingState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SyncDiagnostics to JSON. + * Converts this FolderSharingState to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SyncDiagnostics + * Gets the default type url for FolderSharingState * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** RecordRotationStatus enum. */ - enum RecordRotationStatus { - RRST_NOT_ROTATED = 0, - RRST_IN_PROGRESS = 1, - RRST_SUCCESS = 2, - RRST_FAILURE = 3 - } + /** Properties of a KeeperDriveData. */ + interface IKeeperDriveData { - /** Properties of a RecordRotation. */ - interface IRecordRotation { + /** KeeperDriveData folders */ + folders?: (Folder.IFolderData[]|null); - /** RecordRotation recordUid */ - recordUid?: (Uint8Array|null); + /** KeeperDriveData folderKeys */ + folderKeys?: (Folder.IFolderKey[]|null); - /** RecordRotation revision */ - revision?: (number|null); + /** KeeperDriveData folderAccesses */ + folderAccesses?: (Folder.IFolderAccessData[]|null); - /** RecordRotation configurationUid */ - configurationUid?: (Uint8Array|null); + /** KeeperDriveData revokedFolderAccesses */ + revokedFolderAccesses?: (Folder.IRevokedAccess[]|null); - /** RecordRotation schedule */ - schedule?: (string|null); + /** KeeperDriveData recordData */ + recordData?: (Folder.IRecordData[]|null); - /** RecordRotation pwdComplexity */ - pwdComplexity?: (Uint8Array|null); + /** KeeperDriveData nonSharedData */ + nonSharedData?: (Vault.INonSharedData[]|null); - /** RecordRotation disabled */ - disabled?: (boolean|null); + /** KeeperDriveData recordAccesses */ + recordAccesses?: (Folder.IRecordAccessData[]|null); - /** RecordRotation resourceUid */ - resourceUid?: (Uint8Array|null); + /** KeeperDriveData revokedRecordAccesses */ + revokedRecordAccesses?: (record.v3.sharing.IRevokedAccess[]|null); - /** RecordRotation lastRotation */ - lastRotation?: (number|null); + /** KeeperDriveData recordSharingStates */ + recordSharingStates?: (record.v3.sharing.IRecordSharingState[]|null); - /** RecordRotation lastRotationStatus */ - lastRotationStatus?: (Vault.RecordRotationStatus|null); - } + /** KeeperDriveData recordLinks */ + recordLinks?: (Vault.IRecordLink[]|null); - /** Represents a RecordRotation. */ - class RecordRotation implements IRecordRotation { + /** KeeperDriveData removedRecordLinks */ + removedRecordLinks?: (Vault.IRecordLink[]|null); - /** - * Constructs a new RecordRotation. - * @param [properties] Properties to set - */ - constructor(properties?: Vault.IRecordRotation); + /** KeeperDriveData breachWatchRecords */ + breachWatchRecords?: (Vault.IBreachWatchRecord[]|null); - /** RecordRotation recordUid. */ - public recordUid: Uint8Array; + /** KeeperDriveData securityScoreData */ + securityScoreData?: (Vault.ISecurityScoreData[]|null); - /** RecordRotation revision. */ - public revision: number; + /** KeeperDriveData breachWatchSecurityData */ + breachWatchSecurityData?: (Vault.IBreachWatchSecurityData[]|null); - /** RecordRotation configurationUid. */ - public configurationUid: Uint8Array; + /** KeeperDriveData removedFolders */ + removedFolders?: (Folder.IFolderRemoved[]|null); - /** RecordRotation schedule. */ - public schedule: string; + /** KeeperDriveData removedFolderRecords */ + removedFolderRecords?: (Records.IFolderRecordKey[]|null); - /** RecordRotation pwdComplexity. */ - public pwdComplexity: Uint8Array; + /** KeeperDriveData folderRecords */ + folderRecords?: (Folder.IFolderRecord[]|null); - /** RecordRotation disabled. */ - public disabled: boolean; + /** KeeperDriveData recordRotationData */ + recordRotationData?: (Vault.IRecordRotation[]|null); - /** RecordRotation resourceUid. */ - public resourceUid: Uint8Array; + /** KeeperDriveData records */ + records?: (Vault.IDriveRecord[]|null); - /** RecordRotation lastRotation. */ - public lastRotation: number; + /** KeeperDriveData folderSharingState */ + folderSharingState?: (Vault.IFolderSharingState[]|null); - /** RecordRotation lastRotationStatus. */ - public lastRotationStatus: Vault.RecordRotationStatus; + /** KeeperDriveData rawDagData */ + rawDagData?: (Dag.IDebugData[]|null); + } + + /** Represents a KeeperDriveData. */ + class KeeperDriveData implements IKeeperDriveData { /** - * Creates a new RecordRotation instance using the specified properties. + * Constructs a new KeeperDriveData. * @param [properties] Properties to set - * @returns RecordRotation instance */ - public static create(properties?: Vault.IRecordRotation): Vault.RecordRotation; + constructor(properties?: Vault.IKeeperDriveData); - /** - * Encodes the specified RecordRotation message. Does not implicitly {@link Vault.RecordRotation.verify|verify} messages. - * @param message RecordRotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Vault.IRecordRotation, writer?: $protobuf.Writer): $protobuf.Writer; + /** KeeperDriveData folders. */ + public folders: Folder.IFolderData[]; - /** - * Decodes a RecordRotation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RecordRotation - * @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): Vault.RecordRotation; + /** KeeperDriveData folderKeys. */ + public folderKeys: Folder.IFolderKey[]; - /** - * Creates a RecordRotation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RecordRotation - */ - public static fromObject(object: { [k: string]: any }): Vault.RecordRotation; + /** KeeperDriveData folderAccesses. */ + public folderAccesses: Folder.IFolderAccessData[]; + + /** KeeperDriveData revokedFolderAccesses. */ + public revokedFolderAccesses: Folder.IRevokedAccess[]; + + /** KeeperDriveData recordData. */ + public recordData: Folder.IRecordData[]; + + /** KeeperDriveData nonSharedData. */ + public nonSharedData: Vault.INonSharedData[]; + + /** KeeperDriveData recordAccesses. */ + public recordAccesses: Folder.IRecordAccessData[]; + + /** KeeperDriveData revokedRecordAccesses. */ + public revokedRecordAccesses: record.v3.sharing.IRevokedAccess[]; + + /** KeeperDriveData recordSharingStates. */ + public recordSharingStates: record.v3.sharing.IRecordSharingState[]; - /** - * Creates a plain object from a RecordRotation message. Also converts values to other types if specified. - * @param message RecordRotation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Vault.RecordRotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** KeeperDriveData recordLinks. */ + public recordLinks: Vault.IRecordLink[]; - /** - * Converts this RecordRotation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** KeeperDriveData removedRecordLinks. */ + public removedRecordLinks: Vault.IRecordLink[]; - /** - * Gets the default type url for RecordRotation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** KeeperDriveData breachWatchRecords. */ + public breachWatchRecords: Vault.IBreachWatchRecord[]; - /** Properties of a SecurityScoreData. */ - interface ISecurityScoreData { + /** KeeperDriveData securityScoreData. */ + public securityScoreData: Vault.ISecurityScoreData[]; - /** SecurityScoreData recordUid */ - recordUid?: (Uint8Array|null); + /** KeeperDriveData breachWatchSecurityData. */ + public breachWatchSecurityData: Vault.IBreachWatchSecurityData[]; - /** SecurityScoreData data */ - data?: (Uint8Array|null); + /** KeeperDriveData removedFolders. */ + public removedFolders: Folder.IFolderRemoved[]; - /** SecurityScoreData revision */ - revision?: (number|null); - } + /** KeeperDriveData removedFolderRecords. */ + public removedFolderRecords: Records.IFolderRecordKey[]; - /** Represents a SecurityScoreData. */ - class SecurityScoreData implements ISecurityScoreData { + /** KeeperDriveData folderRecords. */ + public folderRecords: Folder.IFolderRecord[]; - /** - * Constructs a new SecurityScoreData. - * @param [properties] Properties to set - */ - constructor(properties?: Vault.ISecurityScoreData); + /** KeeperDriveData recordRotationData. */ + public recordRotationData: Vault.IRecordRotation[]; - /** SecurityScoreData recordUid. */ - public recordUid: Uint8Array; + /** KeeperDriveData records. */ + public records: Vault.IDriveRecord[]; - /** SecurityScoreData data. */ - public data: Uint8Array; + /** KeeperDriveData folderSharingState. */ + public folderSharingState: Vault.IFolderSharingState[]; - /** SecurityScoreData revision. */ - public revision: number; + /** KeeperDriveData rawDagData. */ + public rawDagData: Dag.IDebugData[]; /** - * Creates a new SecurityScoreData instance using the specified properties. + * Creates a new KeeperDriveData instance using the specified properties. * @param [properties] Properties to set - * @returns SecurityScoreData instance + * @returns KeeperDriveData instance */ - public static create(properties?: Vault.ISecurityScoreData): Vault.SecurityScoreData; + public static create(properties?: Vault.IKeeperDriveData): Vault.KeeperDriveData; /** - * Encodes the specified SecurityScoreData message. Does not implicitly {@link Vault.SecurityScoreData.verify|verify} messages. - * @param message SecurityScoreData message or plain object to encode + * Encodes the specified KeeperDriveData message. Does not implicitly {@link Vault.KeeperDriveData.verify|verify} messages. + * @param message KeeperDriveData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.ISecurityScoreData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IKeeperDriveData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SecurityScoreData message from the specified reader or buffer. + * Decodes a KeeperDriveData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SecurityScoreData + * @returns KeeperDriveData * @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): Vault.SecurityScoreData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.KeeperDriveData; /** - * Creates a SecurityScoreData message from a plain object. Also converts values to their respective internal types. + * Creates a KeeperDriveData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SecurityScoreData + * @returns KeeperDriveData */ - public static fromObject(object: { [k: string]: any }): Vault.SecurityScoreData; + public static fromObject(object: { [k: string]: any }): Vault.KeeperDriveData; /** - * Creates a plain object from a SecurityScoreData message. Also converts values to other types if specified. - * @param message SecurityScoreData + * Creates a plain object from a KeeperDriveData message. Also converts values to other types if specified. + * @param message KeeperDriveData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SecurityScoreData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.KeeperDriveData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SecurityScoreData to JSON. + * Converts this KeeperDriveData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SecurityScoreData + * Gets the default type url for KeeperDriveData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BreachWatchGetSyncDataRequest. */ - interface IBreachWatchGetSyncDataRequest { + /** Properties of a UserFolder. */ + interface IUserFolder { - /** BreachWatchGetSyncDataRequest recordUids */ - recordUids?: (Uint8Array[]|null); + /** UserFolder folderUid */ + folderUid?: (Uint8Array|null); + + /** UserFolder parentUid */ + parentUid?: (Uint8Array|null); + + /** UserFolder userFolderKey */ + userFolderKey?: (Uint8Array|null); + + /** UserFolder keyType */ + keyType?: (Records.RecordKeyType|null); + + /** UserFolder revision */ + revision?: (number|null); + + /** UserFolder data */ + data?: (Uint8Array|null); } - /** Represents a BreachWatchGetSyncDataRequest. */ - class BreachWatchGetSyncDataRequest implements IBreachWatchGetSyncDataRequest { + /** Represents a UserFolder. */ + class UserFolder implements IUserFolder { /** - * Constructs a new BreachWatchGetSyncDataRequest. + * Constructs a new UserFolder. * @param [properties] Properties to set */ - constructor(properties?: Vault.IBreachWatchGetSyncDataRequest); + constructor(properties?: Vault.IUserFolder); - /** BreachWatchGetSyncDataRequest recordUids. */ - public recordUids: Uint8Array[]; + /** UserFolder folderUid. */ + public folderUid: Uint8Array; + + /** UserFolder parentUid. */ + public parentUid: Uint8Array; + + /** UserFolder userFolderKey. */ + public userFolderKey: Uint8Array; + + /** UserFolder keyType. */ + public keyType: Records.RecordKeyType; + + /** UserFolder revision. */ + public revision: number; + + /** UserFolder data. */ + public data: Uint8Array; /** - * Creates a new BreachWatchGetSyncDataRequest instance using the specified properties. + * Creates a new UserFolder instance using the specified properties. * @param [properties] Properties to set - * @returns BreachWatchGetSyncDataRequest instance + * @returns UserFolder instance */ - public static create(properties?: Vault.IBreachWatchGetSyncDataRequest): Vault.BreachWatchGetSyncDataRequest; + public static create(properties?: Vault.IUserFolder): Vault.UserFolder; /** - * Encodes the specified BreachWatchGetSyncDataRequest message. Does not implicitly {@link Vault.BreachWatchGetSyncDataRequest.verify|verify} messages. - * @param message BreachWatchGetSyncDataRequest message or plain object to encode + * Encodes the specified UserFolder message. Does not implicitly {@link Vault.UserFolder.verify|verify} messages. + * @param message UserFolder message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.IBreachWatchGetSyncDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IUserFolder, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BreachWatchGetSyncDataRequest message from the specified reader or buffer. + * Decodes a UserFolder message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BreachWatchGetSyncDataRequest + * @returns UserFolder * @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): Vault.BreachWatchGetSyncDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.UserFolder; /** - * Creates a BreachWatchGetSyncDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a UserFolder message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BreachWatchGetSyncDataRequest + * @returns UserFolder */ - public static fromObject(object: { [k: string]: any }): Vault.BreachWatchGetSyncDataRequest; + public static fromObject(object: { [k: string]: any }): Vault.UserFolder; /** - * Creates a plain object from a BreachWatchGetSyncDataRequest message. Also converts values to other types if specified. - * @param message BreachWatchGetSyncDataRequest + * Creates a plain object from a UserFolder message. Also converts values to other types if specified. + * @param message UserFolder * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.BreachWatchGetSyncDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.UserFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BreachWatchGetSyncDataRequest to JSON. + * Converts this UserFolder to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BreachWatchGetSyncDataRequest + * Gets the default type url for UserFolder * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BreachWatchGetSyncDataResponse. */ - interface IBreachWatchGetSyncDataResponse { - - /** BreachWatchGetSyncDataResponse breachWatchRecords */ - breachWatchRecords?: (Vault.IBreachWatchRecord[]|null); - - /** BreachWatchGetSyncDataResponse breachWatchSecurityData */ - breachWatchSecurityData?: (Vault.IBreachWatchSecurityData[]|null); - - /** BreachWatchGetSyncDataResponse users */ - users?: (Vault.IUser[]|null); - } - - /** Represents a BreachWatchGetSyncDataResponse. */ - class BreachWatchGetSyncDataResponse implements IBreachWatchGetSyncDataResponse { - - /** - * Constructs a new BreachWatchGetSyncDataResponse. - * @param [properties] Properties to set - */ - constructor(properties?: Vault.IBreachWatchGetSyncDataResponse); + /** Properties of a SharedFolder. */ + interface ISharedFolder { - /** BreachWatchGetSyncDataResponse breachWatchRecords. */ - public breachWatchRecords: Vault.IBreachWatchRecord[]; + /** SharedFolder sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); - /** BreachWatchGetSyncDataResponse breachWatchSecurityData. */ - public breachWatchSecurityData: Vault.IBreachWatchSecurityData[]; + /** SharedFolder revision */ + revision?: (number|null); - /** BreachWatchGetSyncDataResponse users. */ - public users: Vault.IUser[]; + /** SharedFolder sharedFolderKey */ + sharedFolderKey?: (Uint8Array|null); - /** - * Creates a new BreachWatchGetSyncDataResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns BreachWatchGetSyncDataResponse instance - */ - public static create(properties?: Vault.IBreachWatchGetSyncDataResponse): Vault.BreachWatchGetSyncDataResponse; + /** SharedFolder keyType */ + keyType?: (Records.RecordKeyType|null); - /** - * Encodes the specified BreachWatchGetSyncDataResponse message. Does not implicitly {@link Vault.BreachWatchGetSyncDataResponse.verify|verify} messages. - * @param message BreachWatchGetSyncDataResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Vault.IBreachWatchGetSyncDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** SharedFolder data */ + data?: (Uint8Array|null); - /** - * Decodes a BreachWatchGetSyncDataResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BreachWatchGetSyncDataResponse - * @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): Vault.BreachWatchGetSyncDataResponse; + /** SharedFolder defaultManageRecords */ + defaultManageRecords?: (boolean|null); - /** - * Creates a BreachWatchGetSyncDataResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BreachWatchGetSyncDataResponse - */ - public static fromObject(object: { [k: string]: any }): Vault.BreachWatchGetSyncDataResponse; + /** SharedFolder defaultManageUsers */ + defaultManageUsers?: (boolean|null); - /** - * Creates a plain object from a BreachWatchGetSyncDataResponse message. Also converts values to other types if specified. - * @param message BreachWatchGetSyncDataResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Vault.BreachWatchGetSyncDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** SharedFolder defaultCanEdit */ + defaultCanEdit?: (boolean|null); - /** - * Converts this BreachWatchGetSyncDataResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** SharedFolder defaultCanReshare */ + defaultCanReshare?: (boolean|null); - /** - * Gets the default type url for BreachWatchGetSyncDataResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** SharedFolder cacheStatus */ + cacheStatus?: (Vault.CacheStatus|null); - /** Properties of a GetAccountUidMapResponse. */ - interface IGetAccountUidMapResponse { + /** SharedFolder owner */ + owner?: (string|null); - /** GetAccountUidMapResponse users */ - users?: (Vault.IUser[]|null); + /** SharedFolder ownerAccountUid */ + ownerAccountUid?: (Uint8Array|null); + + /** SharedFolder name */ + name?: (Uint8Array|null); } - /** Represents a GetAccountUidMapResponse. */ - class GetAccountUidMapResponse implements IGetAccountUidMapResponse { + /** Represents a SharedFolder. */ + class SharedFolder implements ISharedFolder { /** - * Constructs a new GetAccountUidMapResponse. + * Constructs a new SharedFolder. * @param [properties] Properties to set */ - constructor(properties?: Vault.IGetAccountUidMapResponse); + constructor(properties?: Vault.ISharedFolder); - /** GetAccountUidMapResponse users. */ - public users: Vault.IUser[]; + /** SharedFolder sharedFolderUid. */ + public sharedFolderUid: Uint8Array; + + /** SharedFolder revision. */ + public revision: number; + + /** SharedFolder sharedFolderKey. */ + public sharedFolderKey: Uint8Array; + + /** SharedFolder keyType. */ + public keyType: Records.RecordKeyType; + + /** SharedFolder data. */ + public data: Uint8Array; + + /** SharedFolder defaultManageRecords. */ + public defaultManageRecords: boolean; + + /** SharedFolder defaultManageUsers. */ + public defaultManageUsers: boolean; + + /** SharedFolder defaultCanEdit. */ + public defaultCanEdit: boolean; + + /** SharedFolder defaultCanReshare. */ + public defaultCanReshare: boolean; + + /** SharedFolder cacheStatus. */ + public cacheStatus: Vault.CacheStatus; + + /** SharedFolder owner. */ + public owner: string; + + /** SharedFolder ownerAccountUid. */ + public ownerAccountUid: Uint8Array; + + /** SharedFolder name. */ + public name: Uint8Array; /** - * Creates a new GetAccountUidMapResponse instance using the specified properties. + * Creates a new SharedFolder instance using the specified properties. * @param [properties] Properties to set - * @returns GetAccountUidMapResponse instance + * @returns SharedFolder instance */ - public static create(properties?: Vault.IGetAccountUidMapResponse): Vault.GetAccountUidMapResponse; + public static create(properties?: Vault.ISharedFolder): Vault.SharedFolder; /** - * Encodes the specified GetAccountUidMapResponse message. Does not implicitly {@link Vault.GetAccountUidMapResponse.verify|verify} messages. - * @param message GetAccountUidMapResponse message or plain object to encode + * Encodes the specified SharedFolder message. Does not implicitly {@link Vault.SharedFolder.verify|verify} messages. + * @param message SharedFolder message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.IGetAccountUidMapResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISharedFolder, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetAccountUidMapResponse message from the specified reader or buffer. + * Decodes a SharedFolder message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetAccountUidMapResponse + * @returns SharedFolder * @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): Vault.GetAccountUidMapResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolder; /** - * Creates a GetAccountUidMapResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SharedFolder message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetAccountUidMapResponse + * @returns SharedFolder */ - public static fromObject(object: { [k: string]: any }): Vault.GetAccountUidMapResponse; + public static fromObject(object: { [k: string]: any }): Vault.SharedFolder; /** - * Creates a plain object from a GetAccountUidMapResponse message. Also converts values to other types if specified. - * @param message GetAccountUidMapResponse + * Creates a plain object from a SharedFolder message. Also converts values to other types if specified. + * @param message SharedFolder * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.GetAccountUidMapResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SharedFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetAccountUidMapResponse to JSON. + * Converts this SharedFolder to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetAccountUidMapResponse + * Gets the default type url for SharedFolder * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} - -/** Namespace NotificationCenter. */ -export namespace NotificationCenter { - - /** NotificationCategory enum. */ - enum NotificationCategory { - NC_UNSPECIFIED = 0, - NC_ACCOUNT = 1, - NC_SHARING = 2, - NC_ENTERPRISE = 3, - NC_SECURITY = 4, - NC_REQUEST = 5, - NC_SYSTEM = 6, - NC_PROMOTION = 7 - } - - /** NotificationType enum. */ - enum NotificationType { - NT_UNSPECIFIED = 0, - NT_ALERT = 1, - NT_DEVICE_APPROVAL = 2, - NT_MASTER_PASS_UPDATED = 3, - NT_SHARE_APPROVAL = 4, - NT_SHARE_APPROVAL_APPROVED = 5, - NT_SHARED = 6, - NT_TRANSFERRED = 7, - NT_LICENSE_LIMIT_REACHED = 8, - NT_APPROVAL_REQUEST = 9, - NT_APPROVED_RESPONSE = 10, - NT_DENIED_RESPONSE = 11, - NT_2FA_CONFIGURED = 12, - NT_SHARE_APPROVAL_DENIED = 13, - NT_DEVICE_APPROVAL_APPROVED = 14, - NT_DEVICE_APPROVAL_DENIED = 15, - NT_ACCOUNT_CREATED = 16, - NT_2FA_ENABLED = 17, - NT_2FA_DISABLED = 18, - NT_SECURITY_KEYS_ENABLED = 19, - NT_SECURITY_KEYS_DISABLED = 20, - NT_SSL_CERTIFICATE_EXPIRES_SOON = 21, - NT_SSL_CERTIFICATE_EXPIRED = 22 - } - - /** NotificationReadStatus enum. */ - enum NotificationReadStatus { - NRS_UNSPECIFIED = 0, - NRS_LAST = 1, - NRS_READ = 2, - NRS_UNREAD = 3 - } - /** NotificationApprovalStatus enum. */ - enum NotificationApprovalStatus { - NAS_UNSPECIFIED = 0, - NAS_APPROVED = 1, - NAS_DENIED = 2, - NAS_LOST_APPROVAL_RIGHTS = 3, - NAS_LOST_ACCESS = 4 - } + /** Properties of a UserFolderSharedFolder. */ + interface IUserFolderSharedFolder { - /** Properties of an EncryptedData. */ - interface IEncryptedData { + /** UserFolderSharedFolder folderUid */ + folderUid?: (Uint8Array|null); - /** EncryptedData version */ - version?: (number|null); + /** UserFolderSharedFolder sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); - /** EncryptedData data */ - data?: (Uint8Array|null); + /** UserFolderSharedFolder revision */ + revision?: (number|null); } - /** Represents an EncryptedData. */ - class EncryptedData implements IEncryptedData { + /** Represents a UserFolderSharedFolder. */ + class UserFolderSharedFolder implements IUserFolderSharedFolder { /** - * Constructs a new EncryptedData. + * Constructs a new UserFolderSharedFolder. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.IEncryptedData); + constructor(properties?: Vault.IUserFolderSharedFolder); - /** EncryptedData version. */ - public version: number; + /** UserFolderSharedFolder folderUid. */ + public folderUid: Uint8Array; - /** EncryptedData data. */ - public data: Uint8Array; + /** UserFolderSharedFolder sharedFolderUid. */ + public sharedFolderUid: Uint8Array; + + /** UserFolderSharedFolder revision. */ + public revision: number; /** - * Creates a new EncryptedData instance using the specified properties. + * Creates a new UserFolderSharedFolder instance using the specified properties. * @param [properties] Properties to set - * @returns EncryptedData instance + * @returns UserFolderSharedFolder instance */ - public static create(properties?: NotificationCenter.IEncryptedData): NotificationCenter.EncryptedData; + public static create(properties?: Vault.IUserFolderSharedFolder): Vault.UserFolderSharedFolder; /** - * Encodes the specified EncryptedData message. Does not implicitly {@link NotificationCenter.EncryptedData.verify|verify} messages. - * @param message EncryptedData message or plain object to encode + * Encodes the specified UserFolderSharedFolder message. Does not implicitly {@link Vault.UserFolderSharedFolder.verify|verify} messages. + * @param message UserFolderSharedFolder message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.IEncryptedData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IUserFolderSharedFolder, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EncryptedData message from the specified reader or buffer. + * Decodes a UserFolderSharedFolder message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EncryptedData + * @returns UserFolderSharedFolder * @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): NotificationCenter.EncryptedData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.UserFolderSharedFolder; /** - * Creates an EncryptedData message from a plain object. Also converts values to their respective internal types. + * Creates a UserFolderSharedFolder message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EncryptedData + * @returns UserFolderSharedFolder */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.EncryptedData; + public static fromObject(object: { [k: string]: any }): Vault.UserFolderSharedFolder; /** - * Creates a plain object from an EncryptedData message. Also converts values to other types if specified. - * @param message EncryptedData + * Creates a plain object from a UserFolderSharedFolder message. Also converts values to other types if specified. + * @param message UserFolderSharedFolder * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.EncryptedData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.UserFolderSharedFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EncryptedData to JSON. + * Converts this UserFolderSharedFolder to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EncryptedData + * Gets the default type url for UserFolderSharedFolder * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NotificationParameter. */ - interface INotificationParameter { + /** Properties of a SharedFolderFolder. */ + interface ISharedFolderFolder { + + /** SharedFolderFolder sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); + + /** SharedFolderFolder folderUid */ + folderUid?: (Uint8Array|null); + + /** SharedFolderFolder parentUid */ + parentUid?: (Uint8Array|null); + + /** SharedFolderFolder sharedFolderFolderKey */ + sharedFolderFolderKey?: (Uint8Array|null); - /** NotificationParameter key */ - key?: (string|null); + /** SharedFolderFolder keyType */ + keyType?: (Records.RecordKeyType|null); - /** NotificationParameter data */ + /** SharedFolderFolder revision */ + revision?: (number|null); + + /** SharedFolderFolder data */ data?: (Uint8Array|null); } - /** Represents a NotificationParameter. */ - class NotificationParameter implements INotificationParameter { + /** Represents a SharedFolderFolder. */ + class SharedFolderFolder implements ISharedFolderFolder { /** - * Constructs a new NotificationParameter. + * Constructs a new SharedFolderFolder. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotificationParameter); + constructor(properties?: Vault.ISharedFolderFolder); - /** NotificationParameter key. */ - public key: string; + /** SharedFolderFolder sharedFolderUid. */ + public sharedFolderUid: Uint8Array; - /** NotificationParameter data. */ + /** SharedFolderFolder folderUid. */ + public folderUid: Uint8Array; + + /** SharedFolderFolder parentUid. */ + public parentUid: Uint8Array; + + /** SharedFolderFolder sharedFolderFolderKey. */ + public sharedFolderFolderKey: Uint8Array; + + /** SharedFolderFolder keyType. */ + public keyType: Records.RecordKeyType; + + /** SharedFolderFolder revision. */ + public revision: number; + + /** SharedFolderFolder data. */ public data: Uint8Array; /** - * Creates a new NotificationParameter instance using the specified properties. + * Creates a new SharedFolderFolder instance using the specified properties. * @param [properties] Properties to set - * @returns NotificationParameter instance + * @returns SharedFolderFolder instance */ - public static create(properties?: NotificationCenter.INotificationParameter): NotificationCenter.NotificationParameter; + public static create(properties?: Vault.ISharedFolderFolder): Vault.SharedFolderFolder; /** - * Encodes the specified NotificationParameter message. Does not implicitly {@link NotificationCenter.NotificationParameter.verify|verify} messages. - * @param message NotificationParameter message or plain object to encode + * Encodes the specified SharedFolderFolder message. Does not implicitly {@link Vault.SharedFolderFolder.verify|verify} messages. + * @param message SharedFolderFolder message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.INotificationParameter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISharedFolderFolder, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NotificationParameter message from the specified reader or buffer. + * Decodes a SharedFolderFolder message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NotificationParameter + * @returns SharedFolderFolder * @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): NotificationCenter.NotificationParameter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderFolder; /** - * Creates a NotificationParameter message from a plain object. Also converts values to their respective internal types. + * Creates a SharedFolderFolder message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NotificationParameter + * @returns SharedFolderFolder */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationParameter; + public static fromObject(object: { [k: string]: any }): Vault.SharedFolderFolder; /** - * Creates a plain object from a NotificationParameter message. Also converts values to other types if specified. - * @param message NotificationParameter + * Creates a plain object from a SharedFolderFolder message. Also converts values to other types if specified. + * @param message SharedFolderFolder * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationParameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SharedFolderFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NotificationParameter to JSON. + * Converts this SharedFolderFolder to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NotificationParameter + * Gets the default type url for SharedFolderFolder * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Notification. */ - interface INotification { - - /** Notification type */ - type?: (NotificationCenter.NotificationType|null); - - /** Notification category */ - category?: (NotificationCenter.NotificationCategory|null); - - /** Notification sender */ - sender?: (GraphSync.IGraphSyncRef|null); - - /** Notification senderFullName */ - senderFullName?: (string|null); - - /** Notification encryptedData */ - encryptedData?: (NotificationCenter.IEncryptedData|null); + /** Properties of a SharedFolderKey. */ + interface ISharedFolderKey { - /** Notification refs */ - refs?: (GraphSync.IGraphSyncRef[]|null); + /** SharedFolderKey sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); - /** Notification categories */ - categories?: (NotificationCenter.NotificationCategory[]|null); + /** SharedFolderKey sharedFolderKey */ + sharedFolderKey?: (Uint8Array|null); - /** Notification parameters */ - parameters?: (NotificationCenter.INotificationParameter[]|null); + /** SharedFolderKey keyType */ + keyType?: (Records.RecordKeyType|null); } - /** Represents a Notification. */ - class Notification implements INotification { + /** Represents a SharedFolderKey. */ + class SharedFolderKey implements ISharedFolderKey { /** - * Constructs a new Notification. + * Constructs a new SharedFolderKey. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotification); - - /** Notification type. */ - public type: NotificationCenter.NotificationType; - - /** Notification category. */ - public category: NotificationCenter.NotificationCategory; - - /** Notification sender. */ - public sender?: (GraphSync.IGraphSyncRef|null); - - /** Notification senderFullName. */ - public senderFullName: string; - - /** Notification encryptedData. */ - public encryptedData?: (NotificationCenter.IEncryptedData|null); + constructor(properties?: Vault.ISharedFolderKey); - /** Notification refs. */ - public refs: GraphSync.IGraphSyncRef[]; + /** SharedFolderKey sharedFolderUid. */ + public sharedFolderUid: Uint8Array; - /** Notification categories. */ - public categories: NotificationCenter.NotificationCategory[]; + /** SharedFolderKey sharedFolderKey. */ + public sharedFolderKey: Uint8Array; - /** Notification parameters. */ - public parameters: NotificationCenter.INotificationParameter[]; + /** SharedFolderKey keyType. */ + public keyType: Records.RecordKeyType; /** - * Creates a new Notification instance using the specified properties. + * Creates a new SharedFolderKey instance using the specified properties. * @param [properties] Properties to set - * @returns Notification instance + * @returns SharedFolderKey instance */ - public static create(properties?: NotificationCenter.INotification): NotificationCenter.Notification; + public static create(properties?: Vault.ISharedFolderKey): Vault.SharedFolderKey; /** - * Encodes the specified Notification message. Does not implicitly {@link NotificationCenter.Notification.verify|verify} messages. - * @param message Notification message or plain object to encode + * Encodes the specified SharedFolderKey message. Does not implicitly {@link Vault.SharedFolderKey.verify|verify} messages. + * @param message SharedFolderKey message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.INotification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISharedFolderKey, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Notification message from the specified reader or buffer. + * Decodes a SharedFolderKey message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Notification + * @returns SharedFolderKey * @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): NotificationCenter.Notification; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderKey; /** - * Creates a Notification message from a plain object. Also converts values to their respective internal types. + * Creates a SharedFolderKey message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Notification + * @returns SharedFolderKey */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.Notification; + public static fromObject(object: { [k: string]: any }): Vault.SharedFolderKey; /** - * Creates a plain object from a Notification message. Also converts values to other types if specified. - * @param message Notification + * Creates a plain object from a SharedFolderKey message. Also converts values to other types if specified. + * @param message SharedFolderKey * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.Notification, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SharedFolderKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Notification to JSON. + * Converts this SharedFolderKey to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Notification + * Gets the default type url for SharedFolderKey * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NotificationReadMark. */ - interface INotificationReadMark { + /** Properties of a Team. */ + interface ITeam { - /** NotificationReadMark uid */ - uid?: (Uint8Array|null); + /** Team teamUid */ + teamUid?: (Uint8Array|null); - /** NotificationReadMark notificationEdgeId */ - notificationEdgeId?: (number|null); + /** Team name */ + name?: (string|null); - /** NotificationReadMark markEdgeId */ - markEdgeId?: (number|null); + /** Team teamKey */ + teamKey?: (Uint8Array|null); - /** NotificationReadMark readStatus */ - readStatus?: (NotificationCenter.NotificationReadStatus|null); + /** Team teamKeyType */ + teamKeyType?: (Records.RecordKeyType|null); + + /** Team teamPrivateKey */ + teamPrivateKey?: (Uint8Array|null); + + /** Team restrictEdit */ + restrictEdit?: (boolean|null); + + /** Team restrictShare */ + restrictShare?: (boolean|null); + + /** Team restrictView */ + restrictView?: (boolean|null); + + /** Team removedSharedFolders */ + removedSharedFolders?: (Uint8Array[]|null); + + /** Team sharedFolderKeys */ + sharedFolderKeys?: (Vault.ISharedFolderKey[]|null); + + /** Team teamEccPrivateKey */ + teamEccPrivateKey?: (Uint8Array|null); + + /** Team teamEccPublicKey */ + teamEccPublicKey?: (Uint8Array|null); } - /** Represents a NotificationReadMark. */ - class NotificationReadMark implements INotificationReadMark { + /** Represents a Team. */ + class Team implements ITeam { /** - * Constructs a new NotificationReadMark. + * Constructs a new Team. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotificationReadMark); + constructor(properties?: Vault.ITeam); - /** NotificationReadMark uid. */ - public uid: Uint8Array; + /** Team teamUid. */ + public teamUid: Uint8Array; + + /** Team name. */ + public name: string; + + /** Team teamKey. */ + public teamKey: Uint8Array; + + /** Team teamKeyType. */ + public teamKeyType: Records.RecordKeyType; + + /** Team teamPrivateKey. */ + public teamPrivateKey: Uint8Array; + + /** Team restrictEdit. */ + public restrictEdit: boolean; + + /** Team restrictShare. */ + public restrictShare: boolean; + + /** Team restrictView. */ + public restrictView: boolean; + + /** Team removedSharedFolders. */ + public removedSharedFolders: Uint8Array[]; - /** NotificationReadMark notificationEdgeId. */ - public notificationEdgeId: number; + /** Team sharedFolderKeys. */ + public sharedFolderKeys: Vault.ISharedFolderKey[]; - /** NotificationReadMark markEdgeId. */ - public markEdgeId: number; + /** Team teamEccPrivateKey. */ + public teamEccPrivateKey: Uint8Array; - /** NotificationReadMark readStatus. */ - public readStatus: NotificationCenter.NotificationReadStatus; + /** Team teamEccPublicKey. */ + public teamEccPublicKey: Uint8Array; /** - * Creates a new NotificationReadMark instance using the specified properties. + * Creates a new Team instance using the specified properties. * @param [properties] Properties to set - * @returns NotificationReadMark instance + * @returns Team instance */ - public static create(properties?: NotificationCenter.INotificationReadMark): NotificationCenter.NotificationReadMark; + public static create(properties?: Vault.ITeam): Vault.Team; /** - * Encodes the specified NotificationReadMark message. Does not implicitly {@link NotificationCenter.NotificationReadMark.verify|verify} messages. - * @param message NotificationReadMark message or plain object to encode + * Encodes the specified Team message. Does not implicitly {@link Vault.Team.verify|verify} messages. + * @param message Team message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.INotificationReadMark, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ITeam, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NotificationReadMark message from the specified reader or buffer. + * Decodes a Team message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NotificationReadMark + * @returns Team * @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): NotificationCenter.NotificationReadMark; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.Team; /** - * Creates a NotificationReadMark message from a plain object. Also converts values to their respective internal types. + * Creates a Team message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NotificationReadMark + * @returns Team */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationReadMark; + public static fromObject(object: { [k: string]: any }): Vault.Team; /** - * Creates a plain object from a NotificationReadMark message. Also converts values to other types if specified. - * @param message NotificationReadMark + * Creates a plain object from a Team message. Also converts values to other types if specified. + * @param message Team * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationReadMark, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.Team, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NotificationReadMark to JSON. + * Converts this Team to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NotificationReadMark + * Gets the default type url for Team * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NotificationContent. */ - interface INotificationContent { + /** Properties of a Record. */ + interface IRecord { - /** NotificationContent notification */ - notification?: (NotificationCenter.INotification|null); + /** Record recordUid */ + recordUid?: (Uint8Array|null); - /** NotificationContent readStatus */ - readStatus?: (NotificationCenter.NotificationReadStatus|null); + /** Record revision */ + revision?: (number|null); - /** NotificationContent approvalStatus */ - approvalStatus?: (NotificationCenter.NotificationApprovalStatus|null); + /** Record version */ + version?: (number|null); - /** NotificationContent trimmingPoint */ - trimmingPoint?: (boolean|null); + /** Record shared */ + shared?: (boolean|null); - /** NotificationContent clientTypeIDs */ - clientTypeIDs?: (number[]|null); + /** Record clientModifiedTime */ + clientModifiedTime?: (number|null); - /** NotificationContent deviceIDs */ - deviceIDs?: (number[]|null); + /** Record data */ + data?: (Uint8Array|null); + + /** Record extra */ + extra?: (Uint8Array|null); + + /** Record udata */ + udata?: (string|null); + + /** Record fileSize */ + fileSize?: (number|null); + + /** Record thumbnailSize */ + thumbnailSize?: (number|null); } - /** Represents a NotificationContent. */ - class NotificationContent implements INotificationContent { + /** Represents a Record. */ + class Record implements IRecord { /** - * Constructs a new NotificationContent. + * Constructs a new Record. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotificationContent); + constructor(properties?: Vault.IRecord); - /** NotificationContent notification. */ - public notification?: (NotificationCenter.INotification|null); + /** Record recordUid. */ + public recordUid: Uint8Array; - /** NotificationContent readStatus. */ - public readStatus?: (NotificationCenter.NotificationReadStatus|null); + /** Record revision. */ + public revision: number; - /** NotificationContent approvalStatus. */ - public approvalStatus?: (NotificationCenter.NotificationApprovalStatus|null); + /** Record version. */ + public version: number; - /** NotificationContent trimmingPoint. */ - public trimmingPoint?: (boolean|null); + /** Record shared. */ + public shared: boolean; - /** NotificationContent clientTypeIDs. */ - public clientTypeIDs: number[]; + /** Record clientModifiedTime. */ + public clientModifiedTime: number; - /** NotificationContent deviceIDs. */ - public deviceIDs: number[]; + /** Record data. */ + public data: Uint8Array; - /** NotificationContent type. */ - public type?: ("notification"|"readStatus"|"approvalStatus"|"trimmingPoint"); + /** Record extra. */ + public extra: Uint8Array; + + /** Record udata. */ + public udata: string; + + /** Record fileSize. */ + public fileSize: number; + + /** Record thumbnailSize. */ + public thumbnailSize: number; /** - * Creates a new NotificationContent instance using the specified properties. + * Creates a new Record instance using the specified properties. * @param [properties] Properties to set - * @returns NotificationContent instance + * @returns Record instance */ - public static create(properties?: NotificationCenter.INotificationContent): NotificationCenter.NotificationContent; + public static create(properties?: Vault.IRecord): Vault.Record; /** - * Encodes the specified NotificationContent message. Does not implicitly {@link NotificationCenter.NotificationContent.verify|verify} messages. - * @param message NotificationContent message or plain object to encode + * Encodes the specified Record message. Does not implicitly {@link Vault.Record.verify|verify} messages. + * @param message Record message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.INotificationContent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NotificationContent message from the specified reader or buffer. + * Decodes a Record message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NotificationContent + * @returns Record * @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): NotificationCenter.NotificationContent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.Record; /** - * Creates a NotificationContent message from a plain object. Also converts values to their respective internal types. + * Creates a Record message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NotificationContent + * @returns Record */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationContent; + public static fromObject(object: { [k: string]: any }): Vault.Record; /** - * Creates a plain object from a NotificationContent message. Also converts values to other types if specified. - * @param message NotificationContent + * Creates a plain object from a Record message. Also converts values to other types if specified. + * @param message Record * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationContent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.Record, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NotificationContent to JSON. + * Converts this Record to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NotificationContent + * Gets the default type url for Record * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NotificationWrapper. */ - interface INotificationWrapper { + /** Properties of a RecordLink. */ + interface IRecordLink { - /** NotificationWrapper uid */ - uid?: (Uint8Array|null); + /** RecordLink parentRecordUid */ + parentRecordUid?: (Uint8Array|null); - /** NotificationWrapper content */ - content?: (NotificationCenter.INotificationContent|null); + /** RecordLink childRecordUid */ + childRecordUid?: (Uint8Array|null); - /** NotificationWrapper timestamp */ - timestamp?: (number|null); + /** RecordLink recordKey */ + recordKey?: (Uint8Array|null); + + /** RecordLink revision */ + revision?: (number|null); } - /** Represents a NotificationWrapper. */ - class NotificationWrapper implements INotificationWrapper { + /** Represents a RecordLink. */ + class RecordLink implements IRecordLink { /** - * Constructs a new NotificationWrapper. + * Constructs a new RecordLink. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotificationWrapper); + constructor(properties?: Vault.IRecordLink); - /** NotificationWrapper uid. */ - public uid: Uint8Array; + /** RecordLink parentRecordUid. */ + public parentRecordUid: Uint8Array; - /** NotificationWrapper content. */ - public content?: (NotificationCenter.INotificationContent|null); + /** RecordLink childRecordUid. */ + public childRecordUid: Uint8Array; - /** NotificationWrapper timestamp. */ - public timestamp: number; + /** RecordLink recordKey. */ + public recordKey: Uint8Array; + + /** RecordLink revision. */ + public revision: number; /** - * Creates a new NotificationWrapper instance using the specified properties. + * Creates a new RecordLink instance using the specified properties. * @param [properties] Properties to set - * @returns NotificationWrapper instance + * @returns RecordLink instance */ - public static create(properties?: NotificationCenter.INotificationWrapper): NotificationCenter.NotificationWrapper; + public static create(properties?: Vault.IRecordLink): Vault.RecordLink; /** - * Encodes the specified NotificationWrapper message. Does not implicitly {@link NotificationCenter.NotificationWrapper.verify|verify} messages. - * @param message NotificationWrapper message or plain object to encode + * Encodes the specified RecordLink message. Does not implicitly {@link Vault.RecordLink.verify|verify} messages. + * @param message RecordLink message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.INotificationWrapper, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IRecordLink, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NotificationWrapper message from the specified reader or buffer. + * Decodes a RecordLink message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NotificationWrapper + * @returns RecordLink * @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): NotificationCenter.NotificationWrapper; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.RecordLink; /** - * Creates a NotificationWrapper message from a plain object. Also converts values to their respective internal types. + * Creates a RecordLink message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NotificationWrapper + * @returns RecordLink */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationWrapper; + public static fromObject(object: { [k: string]: any }): Vault.RecordLink; /** - * Creates a plain object from a NotificationWrapper message. Also converts values to other types if specified. - * @param message NotificationWrapper + * Creates a plain object from a RecordLink message. Also converts values to other types if specified. + * @param message RecordLink * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationWrapper, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.RecordLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NotificationWrapper to JSON. + * Converts this RecordLink to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NotificationWrapper + * Gets the default type url for RecordLink * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NotificationSync. */ - interface INotificationSync { + /** Properties of a UserFolderRecord. */ + interface IUserFolderRecord { - /** NotificationSync data */ - data?: (NotificationCenter.INotificationWrapper[]|null); + /** UserFolderRecord folderUid */ + folderUid?: (Uint8Array|null); - /** NotificationSync syncPoint */ - syncPoint?: (number|null); + /** UserFolderRecord recordUid */ + recordUid?: (Uint8Array|null); - /** NotificationSync hasMore */ - hasMore?: (boolean|null); + /** UserFolderRecord revision */ + revision?: (number|null); } - /** Represents a NotificationSync. */ - class NotificationSync implements INotificationSync { + /** Represents a UserFolderRecord. */ + class UserFolderRecord implements IUserFolderRecord { /** - * Constructs a new NotificationSync. + * Constructs a new UserFolderRecord. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotificationSync); + constructor(properties?: Vault.IUserFolderRecord); - /** NotificationSync data. */ - public data: NotificationCenter.INotificationWrapper[]; + /** UserFolderRecord folderUid. */ + public folderUid: Uint8Array; - /** NotificationSync syncPoint. */ - public syncPoint: number; + /** UserFolderRecord recordUid. */ + public recordUid: Uint8Array; - /** NotificationSync hasMore. */ - public hasMore: boolean; + /** UserFolderRecord revision. */ + public revision: number; /** - * Creates a new NotificationSync instance using the specified properties. + * Creates a new UserFolderRecord instance using the specified properties. * @param [properties] Properties to set - * @returns NotificationSync instance + * @returns UserFolderRecord instance */ - public static create(properties?: NotificationCenter.INotificationSync): NotificationCenter.NotificationSync; + public static create(properties?: Vault.IUserFolderRecord): Vault.UserFolderRecord; /** - * Encodes the specified NotificationSync message. Does not implicitly {@link NotificationCenter.NotificationSync.verify|verify} messages. - * @param message NotificationSync message or plain object to encode + * Encodes the specified UserFolderRecord message. Does not implicitly {@link Vault.UserFolderRecord.verify|verify} messages. + * @param message UserFolderRecord message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.INotificationSync, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IUserFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NotificationSync message from the specified reader or buffer. + * Decodes a UserFolderRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NotificationSync + * @returns UserFolderRecord * @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): NotificationCenter.NotificationSync; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.UserFolderRecord; /** - * Creates a NotificationSync message from a plain object. Also converts values to their respective internal types. + * Creates a UserFolderRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NotificationSync + * @returns UserFolderRecord */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationSync; + public static fromObject(object: { [k: string]: any }): Vault.UserFolderRecord; /** - * Creates a plain object from a NotificationSync message. Also converts values to other types if specified. - * @param message NotificationSync + * Creates a plain object from a UserFolderRecord message. Also converts values to other types if specified. + * @param message UserFolderRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationSync, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.UserFolderRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NotificationSync to JSON. + * Converts this UserFolderRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NotificationSync + * Gets the default type url for UserFolderRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadStatusUpdate. */ - interface IReadStatusUpdate { + /** Properties of a SharedFolderFolderRecord. */ + interface ISharedFolderFolderRecord { - /** ReadStatusUpdate notificationUid */ - notificationUid?: (Uint8Array|null); + /** SharedFolderFolderRecord sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); - /** ReadStatusUpdate status */ - status?: (NotificationCenter.NotificationReadStatus|null); + /** SharedFolderFolderRecord folderUid */ + folderUid?: (Uint8Array|null); + + /** SharedFolderFolderRecord recordUid */ + recordUid?: (Uint8Array|null); + + /** SharedFolderFolderRecord revision */ + revision?: (number|null); } - /** Represents a ReadStatusUpdate. */ - class ReadStatusUpdate implements IReadStatusUpdate { + /** Represents a SharedFolderFolderRecord. */ + class SharedFolderFolderRecord implements ISharedFolderFolderRecord { /** - * Constructs a new ReadStatusUpdate. + * Constructs a new SharedFolderFolderRecord. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.IReadStatusUpdate); + constructor(properties?: Vault.ISharedFolderFolderRecord); - /** ReadStatusUpdate notificationUid. */ - public notificationUid: Uint8Array; + /** SharedFolderFolderRecord sharedFolderUid. */ + public sharedFolderUid: Uint8Array; - /** ReadStatusUpdate status. */ - public status: NotificationCenter.NotificationReadStatus; + /** SharedFolderFolderRecord folderUid. */ + public folderUid: Uint8Array; + + /** SharedFolderFolderRecord recordUid. */ + public recordUid: Uint8Array; + + /** SharedFolderFolderRecord revision. */ + public revision: number; /** - * Creates a new ReadStatusUpdate instance using the specified properties. + * Creates a new SharedFolderFolderRecord instance using the specified properties. * @param [properties] Properties to set - * @returns ReadStatusUpdate instance + * @returns SharedFolderFolderRecord instance */ - public static create(properties?: NotificationCenter.IReadStatusUpdate): NotificationCenter.ReadStatusUpdate; + public static create(properties?: Vault.ISharedFolderFolderRecord): Vault.SharedFolderFolderRecord; /** - * Encodes the specified ReadStatusUpdate message. Does not implicitly {@link NotificationCenter.ReadStatusUpdate.verify|verify} messages. - * @param message ReadStatusUpdate message or plain object to encode + * Encodes the specified SharedFolderFolderRecord message. Does not implicitly {@link Vault.SharedFolderFolderRecord.verify|verify} messages. + * @param message SharedFolderFolderRecord message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.IReadStatusUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISharedFolderFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadStatusUpdate message from the specified reader or buffer. + * Decodes a SharedFolderFolderRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadStatusUpdate + * @returns SharedFolderFolderRecord * @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): NotificationCenter.ReadStatusUpdate; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderFolderRecord; /** - * Creates a ReadStatusUpdate message from a plain object. Also converts values to their respective internal types. + * Creates a SharedFolderFolderRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadStatusUpdate + * @returns SharedFolderFolderRecord */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.ReadStatusUpdate; + public static fromObject(object: { [k: string]: any }): Vault.SharedFolderFolderRecord; /** - * Creates a plain object from a ReadStatusUpdate message. Also converts values to other types if specified. - * @param message ReadStatusUpdate + * Creates a plain object from a SharedFolderFolderRecord message. Also converts values to other types if specified. + * @param message SharedFolderFolderRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.ReadStatusUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SharedFolderFolderRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadStatusUpdate to JSON. + * Converts this SharedFolderFolderRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadStatusUpdate + * Gets the default type url for SharedFolderFolderRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ApprovalStatusUpdate. */ - interface IApprovalStatusUpdate { + /** Properties of a NonSharedData. */ + interface INonSharedData { - /** ApprovalStatusUpdate notificationUid */ - notificationUid?: (Uint8Array|null); + /** NonSharedData recordUid */ + recordUid?: (Uint8Array|null); - /** ApprovalStatusUpdate status */ - status?: (NotificationCenter.NotificationApprovalStatus|null); + /** NonSharedData data */ + data?: (Uint8Array|null); } - /** Represents an ApprovalStatusUpdate. */ - class ApprovalStatusUpdate implements IApprovalStatusUpdate { + /** Represents a NonSharedData. */ + class NonSharedData implements INonSharedData { /** - * Constructs a new ApprovalStatusUpdate. + * Constructs a new NonSharedData. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.IApprovalStatusUpdate); + constructor(properties?: Vault.INonSharedData); - /** ApprovalStatusUpdate notificationUid. */ - public notificationUid: Uint8Array; + /** NonSharedData recordUid. */ + public recordUid: Uint8Array; - /** ApprovalStatusUpdate status. */ - public status: NotificationCenter.NotificationApprovalStatus; + /** NonSharedData data. */ + public data: Uint8Array; /** - * Creates a new ApprovalStatusUpdate instance using the specified properties. + * Creates a new NonSharedData instance using the specified properties. * @param [properties] Properties to set - * @returns ApprovalStatusUpdate instance + * @returns NonSharedData instance */ - public static create(properties?: NotificationCenter.IApprovalStatusUpdate): NotificationCenter.ApprovalStatusUpdate; + public static create(properties?: Vault.INonSharedData): Vault.NonSharedData; /** - * Encodes the specified ApprovalStatusUpdate message. Does not implicitly {@link NotificationCenter.ApprovalStatusUpdate.verify|verify} messages. - * @param message ApprovalStatusUpdate message or plain object to encode + * Encodes the specified NonSharedData message. Does not implicitly {@link Vault.NonSharedData.verify|verify} messages. + * @param message NonSharedData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.IApprovalStatusUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.INonSharedData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApprovalStatusUpdate message from the specified reader or buffer. + * Decodes a NonSharedData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ApprovalStatusUpdate + * @returns NonSharedData * @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): NotificationCenter.ApprovalStatusUpdate; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.NonSharedData; /** - * Creates an ApprovalStatusUpdate message from a plain object. Also converts values to their respective internal types. + * Creates a NonSharedData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApprovalStatusUpdate + * @returns NonSharedData */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.ApprovalStatusUpdate; + public static fromObject(object: { [k: string]: any }): Vault.NonSharedData; /** - * Creates a plain object from an ApprovalStatusUpdate message. Also converts values to other types if specified. - * @param message ApprovalStatusUpdate + * Creates a plain object from a NonSharedData message. Also converts values to other types if specified. + * @param message NonSharedData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.ApprovalStatusUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.NonSharedData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApprovalStatusUpdate to JSON. + * Converts this NonSharedData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApprovalStatusUpdate + * Gets the default type url for NonSharedData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ProcessMarkReadEventsRequest. */ - interface IProcessMarkReadEventsRequest { + /** Properties of a RecordMetaData. */ + interface IRecordMetaData { - /** ProcessMarkReadEventsRequest readStatusUpdate */ - readStatusUpdate?: (NotificationCenter.IReadStatusUpdate[]|null); + /** RecordMetaData recordUid */ + recordUid?: (Uint8Array|null); + + /** RecordMetaData owner */ + owner?: (boolean|null); + + /** RecordMetaData recordKey */ + recordKey?: (Uint8Array|null); + + /** RecordMetaData recordKeyType */ + recordKeyType?: (Records.RecordKeyType|null); + + /** RecordMetaData canShare */ + canShare?: (boolean|null); + + /** RecordMetaData canEdit */ + canEdit?: (boolean|null); + + /** RecordMetaData ownerAccountUid */ + ownerAccountUid?: (Uint8Array|null); + + /** RecordMetaData expiration */ + expiration?: (number|null); + + /** RecordMetaData expirationNotificationType */ + expirationNotificationType?: (Records.TimerNotificationType|null); + + /** RecordMetaData ownerUsername */ + ownerUsername?: (string|null); } - /** Represents a ProcessMarkReadEventsRequest. */ - class ProcessMarkReadEventsRequest implements IProcessMarkReadEventsRequest { + /** Represents a RecordMetaData. */ + class RecordMetaData implements IRecordMetaData { + + /** + * Constructs a new RecordMetaData. + * @param [properties] Properties to set + */ + constructor(properties?: Vault.IRecordMetaData); + + /** RecordMetaData recordUid. */ + public recordUid: Uint8Array; + + /** RecordMetaData owner. */ + public owner: boolean; + + /** RecordMetaData recordKey. */ + public recordKey: Uint8Array; + + /** RecordMetaData recordKeyType. */ + public recordKeyType: Records.RecordKeyType; + + /** RecordMetaData canShare. */ + public canShare: boolean; + + /** RecordMetaData canEdit. */ + public canEdit: boolean; + + /** RecordMetaData ownerAccountUid. */ + public ownerAccountUid: Uint8Array; + + /** RecordMetaData expiration. */ + public expiration: number; - /** - * Constructs a new ProcessMarkReadEventsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: NotificationCenter.IProcessMarkReadEventsRequest); + /** RecordMetaData expirationNotificationType. */ + public expirationNotificationType: Records.TimerNotificationType; - /** ProcessMarkReadEventsRequest readStatusUpdate. */ - public readStatusUpdate: NotificationCenter.IReadStatusUpdate[]; + /** RecordMetaData ownerUsername. */ + public ownerUsername: string; /** - * Creates a new ProcessMarkReadEventsRequest instance using the specified properties. + * Creates a new RecordMetaData instance using the specified properties. * @param [properties] Properties to set - * @returns ProcessMarkReadEventsRequest instance + * @returns RecordMetaData instance */ - public static create(properties?: NotificationCenter.IProcessMarkReadEventsRequest): NotificationCenter.ProcessMarkReadEventsRequest; + public static create(properties?: Vault.IRecordMetaData): Vault.RecordMetaData; /** - * Encodes the specified ProcessMarkReadEventsRequest message. Does not implicitly {@link NotificationCenter.ProcessMarkReadEventsRequest.verify|verify} messages. - * @param message ProcessMarkReadEventsRequest message or plain object to encode + * Encodes the specified RecordMetaData message. Does not implicitly {@link Vault.RecordMetaData.verify|verify} messages. + * @param message RecordMetaData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.IProcessMarkReadEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IRecordMetaData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ProcessMarkReadEventsRequest message from the specified reader or buffer. + * Decodes a RecordMetaData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ProcessMarkReadEventsRequest + * @returns RecordMetaData * @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): NotificationCenter.ProcessMarkReadEventsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.RecordMetaData; /** - * Creates a ProcessMarkReadEventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecordMetaData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ProcessMarkReadEventsRequest + * @returns RecordMetaData */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.ProcessMarkReadEventsRequest; + public static fromObject(object: { [k: string]: any }): Vault.RecordMetaData; /** - * Creates a plain object from a ProcessMarkReadEventsRequest message. Also converts values to other types if specified. - * @param message ProcessMarkReadEventsRequest + * Creates a plain object from a RecordMetaData message. Also converts values to other types if specified. + * @param message RecordMetaData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.ProcessMarkReadEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.RecordMetaData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ProcessMarkReadEventsRequest to JSON. + * Converts this RecordMetaData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ProcessMarkReadEventsRequest + * Gets the default type url for RecordMetaData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NotificationSendRequest. */ - interface INotificationSendRequest { - - /** NotificationSendRequest recipients */ - recipients?: (GraphSync.IGraphSyncRef[]|null); - - /** NotificationSendRequest notification */ - notification?: (NotificationCenter.INotification|null); - - /** NotificationSendRequest clientTypeIDs */ - clientTypeIDs?: (number[]|null); + /** Properties of a SharingChange. */ + interface ISharingChange { - /** NotificationSendRequest deviceIDs */ - deviceIDs?: (number[]|null); + /** SharingChange recordUid */ + recordUid?: (Uint8Array|null); - /** NotificationSendRequest predefinedUid */ - predefinedUid?: (Uint8Array|null); + /** SharingChange shared */ + shared?: (boolean|null); } - /** Represents a NotificationSendRequest. */ - class NotificationSendRequest implements INotificationSendRequest { + /** Represents a SharingChange. */ + class SharingChange implements ISharingChange { /** - * Constructs a new NotificationSendRequest. + * Constructs a new SharingChange. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotificationSendRequest); - - /** NotificationSendRequest recipients. */ - public recipients: GraphSync.IGraphSyncRef[]; - - /** NotificationSendRequest notification. */ - public notification?: (NotificationCenter.INotification|null); - - /** NotificationSendRequest clientTypeIDs. */ - public clientTypeIDs: number[]; + constructor(properties?: Vault.ISharingChange); - /** NotificationSendRequest deviceIDs. */ - public deviceIDs: number[]; + /** SharingChange recordUid. */ + public recordUid: Uint8Array; - /** NotificationSendRequest predefinedUid. */ - public predefinedUid?: (Uint8Array|null); + /** SharingChange shared. */ + public shared: boolean; /** - * Creates a new NotificationSendRequest instance using the specified properties. + * Creates a new SharingChange instance using the specified properties. * @param [properties] Properties to set - * @returns NotificationSendRequest instance + * @returns SharingChange instance */ - public static create(properties?: NotificationCenter.INotificationSendRequest): NotificationCenter.NotificationSendRequest; + public static create(properties?: Vault.ISharingChange): Vault.SharingChange; /** - * Encodes the specified NotificationSendRequest message. Does not implicitly {@link NotificationCenter.NotificationSendRequest.verify|verify} messages. - * @param message NotificationSendRequest message or plain object to encode + * Encodes the specified SharingChange message. Does not implicitly {@link Vault.SharingChange.verify|verify} messages. + * @param message SharingChange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.INotificationSendRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISharingChange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NotificationSendRequest message from the specified reader or buffer. + * Decodes a SharingChange message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NotificationSendRequest + * @returns SharingChange * @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): NotificationCenter.NotificationSendRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharingChange; /** - * Creates a NotificationSendRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SharingChange message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NotificationSendRequest + * @returns SharingChange */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationSendRequest; + public static fromObject(object: { [k: string]: any }): Vault.SharingChange; /** - * Creates a plain object from a NotificationSendRequest message. Also converts values to other types if specified. - * @param message NotificationSendRequest + * Creates a plain object from a SharingChange message. Also converts values to other types if specified. + * @param message SharingChange * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationSendRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SharingChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NotificationSendRequest to JSON. + * Converts this SharingChange to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NotificationSendRequest + * Gets the default type url for SharingChange * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NotificationsSendRequest. */ - interface INotificationsSendRequest { + /** Properties of a Profile. */ + interface IProfile { - /** NotificationsSendRequest notifications */ - notifications?: (NotificationCenter.INotificationSendRequest[]|null); + /** Profile data */ + data?: (Uint8Array|null); + + /** Profile profileName */ + profileName?: (string|null); + + /** Profile revision */ + revision?: (number|null); } - /** Represents a NotificationsSendRequest. */ - class NotificationsSendRequest implements INotificationsSendRequest { + /** Represents a Profile. */ + class Profile implements IProfile { /** - * Constructs a new NotificationsSendRequest. + * Constructs a new Profile. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotificationsSendRequest); + constructor(properties?: Vault.IProfile); - /** NotificationsSendRequest notifications. */ - public notifications: NotificationCenter.INotificationSendRequest[]; + /** Profile data. */ + public data: Uint8Array; + + /** Profile profileName. */ + public profileName: string; + + /** Profile revision. */ + public revision: number; /** - * Creates a new NotificationsSendRequest instance using the specified properties. + * Creates a new Profile instance using the specified properties. * @param [properties] Properties to set - * @returns NotificationsSendRequest instance + * @returns Profile instance */ - public static create(properties?: NotificationCenter.INotificationsSendRequest): NotificationCenter.NotificationsSendRequest; + public static create(properties?: Vault.IProfile): Vault.Profile; /** - * Encodes the specified NotificationsSendRequest message. Does not implicitly {@link NotificationCenter.NotificationsSendRequest.verify|verify} messages. - * @param message NotificationsSendRequest message or plain object to encode + * Encodes the specified Profile message. Does not implicitly {@link Vault.Profile.verify|verify} messages. + * @param message Profile message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.INotificationsSendRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IProfile, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NotificationsSendRequest message from the specified reader or buffer. + * Decodes a Profile message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NotificationsSendRequest + * @returns Profile * @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): NotificationCenter.NotificationsSendRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.Profile; /** - * Creates a NotificationsSendRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Profile message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NotificationsSendRequest + * @returns Profile */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationsSendRequest; + public static fromObject(object: { [k: string]: any }): Vault.Profile; /** - * Creates a plain object from a NotificationsSendRequest message. Also converts values to other types if specified. - * @param message NotificationsSendRequest + * Creates a plain object from a Profile message. Also converts values to other types if specified. + * @param message Profile * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationsSendRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.Profile, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NotificationsSendRequest to JSON. + * Converts this Profile to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NotificationsSendRequest + * Gets the default type url for Profile * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NotificationSyncRequest. */ - interface INotificationSyncRequest { + /** Properties of a ProfilePic. */ + interface IProfilePic { - /** NotificationSyncRequest syncPoint */ - syncPoint?: (number|null); + /** ProfilePic url */ + url?: (string|null); + + /** ProfilePic revision */ + revision?: (number|null); } - /** Represents a NotificationSyncRequest. */ - class NotificationSyncRequest implements INotificationSyncRequest { + /** Represents a ProfilePic. */ + class ProfilePic implements IProfilePic { /** - * Constructs a new NotificationSyncRequest. + * Constructs a new ProfilePic. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotificationSyncRequest); + constructor(properties?: Vault.IProfilePic); - /** NotificationSyncRequest syncPoint. */ - public syncPoint: number; + /** ProfilePic url. */ + public url: string; + + /** ProfilePic revision. */ + public revision: number; /** - * Creates a new NotificationSyncRequest instance using the specified properties. + * Creates a new ProfilePic instance using the specified properties. * @param [properties] Properties to set - * @returns NotificationSyncRequest instance + * @returns ProfilePic instance */ - public static create(properties?: NotificationCenter.INotificationSyncRequest): NotificationCenter.NotificationSyncRequest; + public static create(properties?: Vault.IProfilePic): Vault.ProfilePic; /** - * Encodes the specified NotificationSyncRequest message. Does not implicitly {@link NotificationCenter.NotificationSyncRequest.verify|verify} messages. - * @param message NotificationSyncRequest message or plain object to encode + * Encodes the specified ProfilePic message. Does not implicitly {@link Vault.ProfilePic.verify|verify} messages. + * @param message ProfilePic message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.INotificationSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IProfilePic, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NotificationSyncRequest message from the specified reader or buffer. + * Decodes a ProfilePic message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NotificationSyncRequest + * @returns ProfilePic * @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): NotificationCenter.NotificationSyncRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.ProfilePic; /** - * Creates a NotificationSyncRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ProfilePic message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NotificationSyncRequest + * @returns ProfilePic */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationSyncRequest; + public static fromObject(object: { [k: string]: any }): Vault.ProfilePic; /** - * Creates a plain object from a NotificationSyncRequest message. Also converts values to other types if specified. - * @param message NotificationSyncRequest + * Creates a plain object from a ProfilePic message. Also converts values to other types if specified. + * @param message ProfilePic * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationSyncRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.ProfilePic, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NotificationSyncRequest to JSON. + * Converts this ProfilePic to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NotificationSyncRequest + * Gets the default type url for ProfilePic * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SentNotification. */ - interface ISentNotification { + /** Properties of a PendingTeamMember. */ + interface IPendingTeamMember { + + /** PendingTeamMember enterpriseUserId */ + enterpriseUserId?: (number|null); - /** SentNotification user */ - user?: (number|null); + /** PendingTeamMember userPublicKey */ + userPublicKey?: (Uint8Array|null); - /** SentNotification notificationUid */ - notificationUid?: (Uint8Array|null); + /** PendingTeamMember teamUids */ + teamUids?: (Uint8Array[]|null); + + /** PendingTeamMember userEccPublicKey */ + userEccPublicKey?: (Uint8Array|null); } - /** Represents a SentNotification. */ - class SentNotification implements ISentNotification { + /** Represents a PendingTeamMember. */ + class PendingTeamMember implements IPendingTeamMember { /** - * Constructs a new SentNotification. + * Constructs a new PendingTeamMember. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.ISentNotification); + constructor(properties?: Vault.IPendingTeamMember); - /** SentNotification user. */ - public user: number; + /** PendingTeamMember enterpriseUserId. */ + public enterpriseUserId: number; - /** SentNotification notificationUid. */ - public notificationUid: Uint8Array; + /** PendingTeamMember userPublicKey. */ + public userPublicKey: Uint8Array; + + /** PendingTeamMember teamUids. */ + public teamUids: Uint8Array[]; + + /** PendingTeamMember userEccPublicKey. */ + public userEccPublicKey: Uint8Array; /** - * Creates a new SentNotification instance using the specified properties. + * Creates a new PendingTeamMember instance using the specified properties. * @param [properties] Properties to set - * @returns SentNotification instance + * @returns PendingTeamMember instance */ - public static create(properties?: NotificationCenter.ISentNotification): NotificationCenter.SentNotification; + public static create(properties?: Vault.IPendingTeamMember): Vault.PendingTeamMember; /** - * Encodes the specified SentNotification message. Does not implicitly {@link NotificationCenter.SentNotification.verify|verify} messages. - * @param message SentNotification message or plain object to encode + * Encodes the specified PendingTeamMember message. Does not implicitly {@link Vault.PendingTeamMember.verify|verify} messages. + * @param message PendingTeamMember message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.ISentNotification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IPendingTeamMember, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SentNotification message from the specified reader or buffer. + * Decodes a PendingTeamMember message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SentNotification + * @returns PendingTeamMember * @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): NotificationCenter.SentNotification; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.PendingTeamMember; /** - * Creates a SentNotification message from a plain object. Also converts values to their respective internal types. + * Creates a PendingTeamMember message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SentNotification + * @returns PendingTeamMember */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.SentNotification; + public static fromObject(object: { [k: string]: any }): Vault.PendingTeamMember; /** - * Creates a plain object from a SentNotification message. Also converts values to other types if specified. - * @param message SentNotification + * Creates a plain object from a PendingTeamMember message. Also converts values to other types if specified. + * @param message PendingTeamMember * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.SentNotification, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.PendingTeamMember, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SentNotification to JSON. + * Converts this PendingTeamMember to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SentNotification + * Gets the default type url for PendingTeamMember * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NotificationsApprovalStatusUpdateRequest. */ - interface INotificationsApprovalStatusUpdateRequest { + /** Properties of a BreachWatchRecord. */ + interface IBreachWatchRecord { - /** NotificationsApprovalStatusUpdateRequest status */ - status?: (NotificationCenter.NotificationApprovalStatus|null); + /** BreachWatchRecord recordUid */ + recordUid?: (Uint8Array|null); - /** NotificationsApprovalStatusUpdateRequest notifications */ - notifications?: (NotificationCenter.ISentNotification[]|null); + /** BreachWatchRecord data */ + data?: (Uint8Array|null); + + /** BreachWatchRecord type */ + type?: (BreachWatch.BreachWatchInfoType|null); + + /** BreachWatchRecord scannedBy */ + scannedBy?: (string|null); + + /** BreachWatchRecord revision */ + revision?: (number|null); + + /** BreachWatchRecord scannedByAccountUid */ + scannedByAccountUid?: (Uint8Array|null); } - /** Represents a NotificationsApprovalStatusUpdateRequest. */ - class NotificationsApprovalStatusUpdateRequest implements INotificationsApprovalStatusUpdateRequest { + /** Represents a BreachWatchRecord. */ + class BreachWatchRecord implements IBreachWatchRecord { /** - * Constructs a new NotificationsApprovalStatusUpdateRequest. + * Constructs a new BreachWatchRecord. * @param [properties] Properties to set */ - constructor(properties?: NotificationCenter.INotificationsApprovalStatusUpdateRequest); + constructor(properties?: Vault.IBreachWatchRecord); - /** NotificationsApprovalStatusUpdateRequest status. */ - public status: NotificationCenter.NotificationApprovalStatus; + /** BreachWatchRecord recordUid. */ + public recordUid: Uint8Array; - /** NotificationsApprovalStatusUpdateRequest notifications. */ - public notifications: NotificationCenter.ISentNotification[]; + /** BreachWatchRecord data. */ + public data: Uint8Array; + + /** BreachWatchRecord type. */ + public type: BreachWatch.BreachWatchInfoType; + + /** BreachWatchRecord scannedBy. */ + public scannedBy: string; + + /** BreachWatchRecord revision. */ + public revision: number; + + /** BreachWatchRecord scannedByAccountUid. */ + public scannedByAccountUid: Uint8Array; /** - * Creates a new NotificationsApprovalStatusUpdateRequest instance using the specified properties. + * Creates a new BreachWatchRecord instance using the specified properties. * @param [properties] Properties to set - * @returns NotificationsApprovalStatusUpdateRequest instance + * @returns BreachWatchRecord instance */ - public static create(properties?: NotificationCenter.INotificationsApprovalStatusUpdateRequest): NotificationCenter.NotificationsApprovalStatusUpdateRequest; + public static create(properties?: Vault.IBreachWatchRecord): Vault.BreachWatchRecord; /** - * Encodes the specified NotificationsApprovalStatusUpdateRequest message. Does not implicitly {@link NotificationCenter.NotificationsApprovalStatusUpdateRequest.verify|verify} messages. - * @param message NotificationsApprovalStatusUpdateRequest message or plain object to encode + * Encodes the specified BreachWatchRecord message. Does not implicitly {@link Vault.BreachWatchRecord.verify|verify} messages. + * @param message BreachWatchRecord message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.INotificationsApprovalStatusUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IBreachWatchRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NotificationsApprovalStatusUpdateRequest message from the specified reader or buffer. + * Decodes a BreachWatchRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NotificationsApprovalStatusUpdateRequest + * @returns BreachWatchRecord * @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): NotificationCenter.NotificationsApprovalStatusUpdateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.BreachWatchRecord; /** - * Creates a NotificationsApprovalStatusUpdateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BreachWatchRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NotificationsApprovalStatusUpdateRequest + * @returns BreachWatchRecord */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationsApprovalStatusUpdateRequest; + public static fromObject(object: { [k: string]: any }): Vault.BreachWatchRecord; /** - * Creates a plain object from a NotificationsApprovalStatusUpdateRequest message. Also converts values to other types if specified. - * @param message NotificationsApprovalStatusUpdateRequest + * Creates a plain object from a BreachWatchRecord message. Also converts values to other types if specified. + * @param message BreachWatchRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationsApprovalStatusUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.BreachWatchRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NotificationsApprovalStatusUpdateRequest to JSON. + * Converts this BreachWatchRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NotificationsApprovalStatusUpdateRequest + * Gets the default type url for BreachWatchRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} -/** Namespace GraphSync. */ -export namespace GraphSync { + /** Properties of a UserAuth. */ + interface IUserAuth { - /** RefType enum. */ - enum RefType { - RFT_GENERAL = 0, - RFT_USER = 1, - RFT_DEVICE = 2, - RFT_REC = 3, - RFT_FOLDER = 4, - RFT_TEAM = 5, - RFT_ENTERPRISE = 6, - RFT_PAM_DIRECTORY = 7, - RFT_PAM_MACHINE = 8, - RFT_PAM_DATABASE = 9, - RFT_PAM_USER = 10, - RFT_PAM_NETWORK = 11, - RFT_PAM_BROWSER = 12, - RFT_CONNECTION = 13, - RFT_WORKFLOW = 14, - RFT_NOTIFICATION = 15, - RFT_USER_INFO = 16, - RFT_TEAM_INFO = 17, - RFT_ROLE = 18 - } + /** UserAuth uid */ + uid?: (Uint8Array|null); - /** Properties of a GraphSyncRef. */ - interface IGraphSyncRef { + /** UserAuth loginType */ + loginType?: (Authentication.LoginType|null); - /** GraphSyncRef type */ - type?: (GraphSync.RefType|null); + /** UserAuth deleted */ + deleted?: (boolean|null); - /** GraphSyncRef value */ - value?: (Uint8Array|null); + /** UserAuth iterations */ + iterations?: (number|null); - /** GraphSyncRef name */ + /** UserAuth salt */ + salt?: (Uint8Array|null); + + /** UserAuth encryptedClientKey */ + encryptedClientKey?: (Uint8Array|null); + + /** UserAuth revision */ + revision?: (number|null); + + /** UserAuth name */ name?: (string|null); } - /** Represents a GraphSyncRef. */ - class GraphSyncRef implements IGraphSyncRef { + /** Represents a UserAuth. */ + class UserAuth implements IUserAuth { /** - * Constructs a new GraphSyncRef. + * Constructs a new UserAuth. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncRef); + constructor(properties?: Vault.IUserAuth); - /** GraphSyncRef type. */ - public type: GraphSync.RefType; + /** UserAuth uid. */ + public uid: Uint8Array; - /** GraphSyncRef value. */ - public value: Uint8Array; + /** UserAuth loginType. */ + public loginType: Authentication.LoginType; - /** GraphSyncRef name. */ + /** UserAuth deleted. */ + public deleted: boolean; + + /** UserAuth iterations. */ + public iterations: number; + + /** UserAuth salt. */ + public salt: Uint8Array; + + /** UserAuth encryptedClientKey. */ + public encryptedClientKey: Uint8Array; + + /** UserAuth revision. */ + public revision: number; + + /** UserAuth name. */ public name: string; /** - * Creates a new GraphSyncRef instance using the specified properties. + * Creates a new UserAuth instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncRef instance + * @returns UserAuth instance */ - public static create(properties?: GraphSync.IGraphSyncRef): GraphSync.GraphSyncRef; + public static create(properties?: Vault.IUserAuth): Vault.UserAuth; /** - * Encodes the specified GraphSyncRef message. Does not implicitly {@link GraphSync.GraphSyncRef.verify|verify} messages. - * @param message GraphSyncRef message or plain object to encode + * Encodes the specified UserAuth message. Does not implicitly {@link Vault.UserAuth.verify|verify} messages. + * @param message UserAuth message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: GraphSync.IGraphSyncRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IUserAuth, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncRef message from the specified reader or buffer. + * Decodes a UserAuth message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncRef + * @returns UserAuth * @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): GraphSync.GraphSyncRef; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.UserAuth; /** - * Creates a GraphSyncRef message from a plain object. Also converts values to their respective internal types. + * Creates a UserAuth message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncRef + * @returns UserAuth */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncRef; + public static fromObject(object: { [k: string]: any }): Vault.UserAuth; /** - * Creates a plain object from a GraphSyncRef message. Also converts values to other types if specified. - * @param message GraphSyncRef + * Creates a plain object from a UserAuth message. Also converts values to other types if specified. + * @param message UserAuth * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.UserAuth, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncRef to JSON. + * Converts this UserAuth to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncRef + * Gets the default type url for UserAuth * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** GraphSyncDataType enum. */ - enum GraphSyncDataType { - GSE_DATA = 0, - GSE_KEY = 1, - GSE_LINK = 2, - GSE_ACL = 3, - GSE_DELETION = 4 - } - - /** GraphSyncActorType enum. */ - enum GraphSyncActorType { - GSA_USER = 0, - GSA_SERVICE = 1, - GSA_PAM_GATEWAY = 2 - } - - /** Properties of a GraphSyncActor. */ - interface IGraphSyncActor { - - /** GraphSyncActor type */ - type?: (GraphSync.GraphSyncActorType|null); + /** Properties of a BreachWatchSecurityData. */ + interface IBreachWatchSecurityData { - /** GraphSyncActor id */ - id?: (Uint8Array|null); + /** BreachWatchSecurityData recordUid */ + recordUid?: (Uint8Array|null); - /** GraphSyncActor name */ - name?: (string|null); + /** BreachWatchSecurityData revision */ + revision?: (number|null); - /** GraphSyncActor effectiveUserId */ - effectiveUserId?: (Uint8Array|null); + /** BreachWatchSecurityData removed */ + removed?: (boolean|null); } - /** Represents a GraphSyncActor. */ - class GraphSyncActor implements IGraphSyncActor { + /** Represents a BreachWatchSecurityData. */ + class BreachWatchSecurityData implements IBreachWatchSecurityData { /** - * Constructs a new GraphSyncActor. + * Constructs a new BreachWatchSecurityData. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncActor); - - /** GraphSyncActor type. */ - public type: GraphSync.GraphSyncActorType; + constructor(properties?: Vault.IBreachWatchSecurityData); - /** GraphSyncActor id. */ - public id: Uint8Array; + /** BreachWatchSecurityData recordUid. */ + public recordUid: Uint8Array; - /** GraphSyncActor name. */ - public name: string; + /** BreachWatchSecurityData revision. */ + public revision: number; - /** GraphSyncActor effectiveUserId. */ - public effectiveUserId: Uint8Array; + /** BreachWatchSecurityData removed. */ + public removed: boolean; /** - * Creates a new GraphSyncActor instance using the specified properties. + * Creates a new BreachWatchSecurityData instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncActor instance + * @returns BreachWatchSecurityData instance */ - public static create(properties?: GraphSync.IGraphSyncActor): GraphSync.GraphSyncActor; + public static create(properties?: Vault.IBreachWatchSecurityData): Vault.BreachWatchSecurityData; /** - * Encodes the specified GraphSyncActor message. Does not implicitly {@link GraphSync.GraphSyncActor.verify|verify} messages. - * @param message GraphSyncActor message or plain object to encode + * Encodes the specified BreachWatchSecurityData message. Does not implicitly {@link Vault.BreachWatchSecurityData.verify|verify} messages. + * @param message BreachWatchSecurityData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: GraphSync.IGraphSyncActor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IBreachWatchSecurityData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncActor message from the specified reader or buffer. + * Decodes a BreachWatchSecurityData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncActor + * @returns BreachWatchSecurityData * @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): GraphSync.GraphSyncActor; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.BreachWatchSecurityData; /** - * Creates a GraphSyncActor message from a plain object. Also converts values to their respective internal types. + * Creates a BreachWatchSecurityData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncActor + * @returns BreachWatchSecurityData */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncActor; + public static fromObject(object: { [k: string]: any }): Vault.BreachWatchSecurityData; /** - * Creates a plain object from a GraphSyncActor message. Also converts values to other types if specified. - * @param message GraphSyncActor + * Creates a plain object from a BreachWatchSecurityData message. Also converts values to other types if specified. + * @param message BreachWatchSecurityData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncActor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.BreachWatchSecurityData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncActor to JSON. + * Converts this BreachWatchSecurityData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncActor + * Gets the default type url for BreachWatchSecurityData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GraphSyncData. */ - interface IGraphSyncData { - - /** GraphSyncData type */ - type?: (GraphSync.GraphSyncDataType|null); - - /** GraphSyncData ref */ - ref?: (GraphSync.IGraphSyncRef|null); - - /** GraphSyncData parentRef */ - parentRef?: (GraphSync.IGraphSyncRef|null); + /** Properties of a ReusedPasswords. */ + interface IReusedPasswords { - /** GraphSyncData content */ - content?: (Uint8Array|null); + /** ReusedPasswords count */ + count?: (number|null); - /** GraphSyncData path */ - path?: (string|null); + /** ReusedPasswords revision */ + revision?: (number|null); } - /** Represents a GraphSyncData. */ - class GraphSyncData implements IGraphSyncData { + /** Represents a ReusedPasswords. */ + class ReusedPasswords implements IReusedPasswords { /** - * Constructs a new GraphSyncData. + * Constructs a new ReusedPasswords. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncData); - - /** GraphSyncData type. */ - public type: GraphSync.GraphSyncDataType; - - /** GraphSyncData ref. */ - public ref?: (GraphSync.IGraphSyncRef|null); - - /** GraphSyncData parentRef. */ - public parentRef?: (GraphSync.IGraphSyncRef|null); + constructor(properties?: Vault.IReusedPasswords); - /** GraphSyncData content. */ - public content: Uint8Array; + /** ReusedPasswords count. */ + public count: number; - /** GraphSyncData path. */ - public path: string; + /** ReusedPasswords revision. */ + public revision: number; /** - * Creates a new GraphSyncData instance using the specified properties. + * Creates a new ReusedPasswords instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncData instance + * @returns ReusedPasswords instance */ - public static create(properties?: GraphSync.IGraphSyncData): GraphSync.GraphSyncData; + public static create(properties?: Vault.IReusedPasswords): Vault.ReusedPasswords; /** - * Encodes the specified GraphSyncData message. Does not implicitly {@link GraphSync.GraphSyncData.verify|verify} messages. - * @param message GraphSyncData message or plain object to encode + * Encodes the specified ReusedPasswords message. Does not implicitly {@link Vault.ReusedPasswords.verify|verify} messages. + * @param message ReusedPasswords message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: GraphSync.IGraphSyncData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IReusedPasswords, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncData message from the specified reader or buffer. + * Decodes a ReusedPasswords message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncData + * @returns ReusedPasswords * @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): GraphSync.GraphSyncData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.ReusedPasswords; /** - * Creates a GraphSyncData message from a plain object. Also converts values to their respective internal types. + * Creates a ReusedPasswords message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncData + * @returns ReusedPasswords */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncData; + public static fromObject(object: { [k: string]: any }): Vault.ReusedPasswords; /** - * Creates a plain object from a GraphSyncData message. Also converts values to other types if specified. - * @param message GraphSyncData + * Creates a plain object from a ReusedPasswords message. Also converts values to other types if specified. + * @param message ReusedPasswords * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.ReusedPasswords, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncData to JSON. + * Converts this ReusedPasswords to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncData + * Gets the default type url for ReusedPasswords * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GraphSyncDataPlus. */ - interface IGraphSyncDataPlus { + /** Properties of a SharedFolderRecord. */ + interface ISharedFolderRecord { - /** GraphSyncDataPlus data */ - data?: (GraphSync.IGraphSyncData|null); + /** SharedFolderRecord sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); - /** GraphSyncDataPlus timestamp */ - timestamp?: (number|null); + /** SharedFolderRecord recordUid */ + recordUid?: (Uint8Array|null); + + /** SharedFolderRecord recordKey */ + recordKey?: (Uint8Array|null); + + /** SharedFolderRecord canShare */ + canShare?: (boolean|null); + + /** SharedFolderRecord canEdit */ + canEdit?: (boolean|null); + + /** SharedFolderRecord ownerAccountUid */ + ownerAccountUid?: (Uint8Array|null); + + /** SharedFolderRecord expiration */ + expiration?: (number|null); + + /** SharedFolderRecord owner */ + owner?: (boolean|null); + + /** SharedFolderRecord expirationNotificationType */ + expirationNotificationType?: (Records.TimerNotificationType|null); + + /** SharedFolderRecord ownerUsername */ + ownerUsername?: (string|null); + + /** SharedFolderRecord rotateOnExpiration */ + rotateOnExpiration?: (boolean|null); + } + + /** Represents a SharedFolderRecord. */ + class SharedFolderRecord implements ISharedFolderRecord { + + /** + * Constructs a new SharedFolderRecord. + * @param [properties] Properties to set + */ + constructor(properties?: Vault.ISharedFolderRecord); + + /** SharedFolderRecord sharedFolderUid. */ + public sharedFolderUid: Uint8Array; + + /** SharedFolderRecord recordUid. */ + public recordUid: Uint8Array; + + /** SharedFolderRecord recordKey. */ + public recordKey: Uint8Array; + + /** SharedFolderRecord canShare. */ + public canShare: boolean; + + /** SharedFolderRecord canEdit. */ + public canEdit: boolean; - /** GraphSyncDataPlus actor */ - actor?: (GraphSync.IGraphSyncActor|null); - } + /** SharedFolderRecord ownerAccountUid. */ + public ownerAccountUid: Uint8Array; - /** Represents a GraphSyncDataPlus. */ - class GraphSyncDataPlus implements IGraphSyncDataPlus { + /** SharedFolderRecord expiration. */ + public expiration: number; - /** - * Constructs a new GraphSyncDataPlus. - * @param [properties] Properties to set - */ - constructor(properties?: GraphSync.IGraphSyncDataPlus); + /** SharedFolderRecord owner. */ + public owner: boolean; - /** GraphSyncDataPlus data. */ - public data?: (GraphSync.IGraphSyncData|null); + /** SharedFolderRecord expirationNotificationType. */ + public expirationNotificationType: Records.TimerNotificationType; - /** GraphSyncDataPlus timestamp. */ - public timestamp: number; + /** SharedFolderRecord ownerUsername. */ + public ownerUsername: string; - /** GraphSyncDataPlus actor. */ - public actor?: (GraphSync.IGraphSyncActor|null); + /** SharedFolderRecord rotateOnExpiration. */ + public rotateOnExpiration: boolean; /** - * Creates a new GraphSyncDataPlus instance using the specified properties. + * Creates a new SharedFolderRecord instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncDataPlus instance + * @returns SharedFolderRecord instance */ - public static create(properties?: GraphSync.IGraphSyncDataPlus): GraphSync.GraphSyncDataPlus; + public static create(properties?: Vault.ISharedFolderRecord): Vault.SharedFolderRecord; /** - * Encodes the specified GraphSyncDataPlus message. Does not implicitly {@link GraphSync.GraphSyncDataPlus.verify|verify} messages. - * @param message GraphSyncDataPlus message or plain object to encode + * Encodes the specified SharedFolderRecord message. Does not implicitly {@link Vault.SharedFolderRecord.verify|verify} messages. + * @param message SharedFolderRecord message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: GraphSync.IGraphSyncDataPlus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISharedFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncDataPlus message from the specified reader or buffer. + * Decodes a SharedFolderRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncDataPlus + * @returns SharedFolderRecord * @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): GraphSync.GraphSyncDataPlus; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderRecord; /** - * Creates a GraphSyncDataPlus message from a plain object. Also converts values to their respective internal types. + * Creates a SharedFolderRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncDataPlus + * @returns SharedFolderRecord */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncDataPlus; + public static fromObject(object: { [k: string]: any }): Vault.SharedFolderRecord; /** - * Creates a plain object from a GraphSyncDataPlus message. Also converts values to other types if specified. - * @param message GraphSyncDataPlus + * Creates a plain object from a SharedFolderRecord message. Also converts values to other types if specified. + * @param message SharedFolderRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncDataPlus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SharedFolderRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncDataPlus to JSON. + * Converts this SharedFolderRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncDataPlus + * Gets the default type url for SharedFolderRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GraphSyncQuery. */ - interface IGraphSyncQuery { + /** Properties of a SharedFolderUser. */ + interface ISharedFolderUser { - /** GraphSyncQuery streamId */ - streamId?: (Uint8Array|null); + /** SharedFolderUser sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); - /** GraphSyncQuery origin */ - origin?: (Uint8Array|null); + /** SharedFolderUser username */ + username?: (string|null); - /** GraphSyncQuery syncPoint */ - syncPoint?: (number|null); + /** SharedFolderUser manageRecords */ + manageRecords?: (boolean|null); - /** GraphSyncQuery maxCount */ - maxCount?: (number|null); + /** SharedFolderUser manageUsers */ + manageUsers?: (boolean|null); + + /** SharedFolderUser accountUid */ + accountUid?: (Uint8Array|null); + + /** SharedFolderUser expiration */ + expiration?: (number|null); + + /** SharedFolderUser expirationNotificationType */ + expirationNotificationType?: (Records.TimerNotificationType|null); + + /** SharedFolderUser rotateOnExpiration */ + rotateOnExpiration?: (boolean|null); } - /** Represents a GraphSyncQuery. */ - class GraphSyncQuery implements IGraphSyncQuery { + /** Represents a SharedFolderUser. */ + class SharedFolderUser implements ISharedFolderUser { /** - * Constructs a new GraphSyncQuery. + * Constructs a new SharedFolderUser. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncQuery); + constructor(properties?: Vault.ISharedFolderUser); - /** GraphSyncQuery streamId. */ - public streamId: Uint8Array; + /** SharedFolderUser sharedFolderUid. */ + public sharedFolderUid: Uint8Array; - /** GraphSyncQuery origin. */ - public origin: Uint8Array; + /** SharedFolderUser username. */ + public username: string; - /** GraphSyncQuery syncPoint. */ - public syncPoint: number; + /** SharedFolderUser manageRecords. */ + public manageRecords: boolean; - /** GraphSyncQuery maxCount. */ - public maxCount: number; + /** SharedFolderUser manageUsers. */ + public manageUsers: boolean; + + /** SharedFolderUser accountUid. */ + public accountUid: Uint8Array; + + /** SharedFolderUser expiration. */ + public expiration: number; + + /** SharedFolderUser expirationNotificationType. */ + public expirationNotificationType: Records.TimerNotificationType; + + /** SharedFolderUser rotateOnExpiration. */ + public rotateOnExpiration: boolean; /** - * Creates a new GraphSyncQuery instance using the specified properties. + * Creates a new SharedFolderUser instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncQuery instance + * @returns SharedFolderUser instance */ - public static create(properties?: GraphSync.IGraphSyncQuery): GraphSync.GraphSyncQuery; + public static create(properties?: Vault.ISharedFolderUser): Vault.SharedFolderUser; /** - * Encodes the specified GraphSyncQuery message. Does not implicitly {@link GraphSync.GraphSyncQuery.verify|verify} messages. - * @param message GraphSyncQuery message or plain object to encode + * Encodes the specified SharedFolderUser message. Does not implicitly {@link Vault.SharedFolderUser.verify|verify} messages. + * @param message SharedFolderUser message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: GraphSync.IGraphSyncQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISharedFolderUser, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncQuery message from the specified reader or buffer. + * Decodes a SharedFolderUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncQuery + * @returns SharedFolderUser * @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): GraphSync.GraphSyncQuery; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderUser; /** - * Creates a GraphSyncQuery message from a plain object. Also converts values to their respective internal types. + * Creates a SharedFolderUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncQuery + * @returns SharedFolderUser */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncQuery; + public static fromObject(object: { [k: string]: any }): Vault.SharedFolderUser; /** - * Creates a plain object from a GraphSyncQuery message. Also converts values to other types if specified. - * @param message GraphSyncQuery + * Creates a plain object from a SharedFolderUser message. Also converts values to other types if specified. + * @param message SharedFolderUser * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SharedFolderUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncQuery to JSON. + * Converts this SharedFolderUser to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncQuery + * Gets the default type url for SharedFolderUser * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GraphSyncResult. */ - interface IGraphSyncResult { + /** Properties of a SharedFolderTeam. */ + interface ISharedFolderTeam { - /** GraphSyncResult streamId */ - streamId?: (Uint8Array|null); + /** SharedFolderTeam sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); - /** GraphSyncResult syncPoint */ - syncPoint?: (number|null); + /** SharedFolderTeam teamUid */ + teamUid?: (Uint8Array|null); - /** GraphSyncResult data */ - data?: (GraphSync.IGraphSyncDataPlus[]|null); + /** SharedFolderTeam name */ + name?: (string|null); - /** GraphSyncResult hasMore */ - hasMore?: (boolean|null); + /** SharedFolderTeam manageRecords */ + manageRecords?: (boolean|null); + + /** SharedFolderTeam manageUsers */ + manageUsers?: (boolean|null); + + /** SharedFolderTeam expiration */ + expiration?: (number|null); + + /** SharedFolderTeam expirationNotificationType */ + expirationNotificationType?: (Records.TimerNotificationType|null); + + /** SharedFolderTeam rotateOnExpiration */ + rotateOnExpiration?: (boolean|null); } - /** Represents a GraphSyncResult. */ - class GraphSyncResult implements IGraphSyncResult { + /** Represents a SharedFolderTeam. */ + class SharedFolderTeam implements ISharedFolderTeam { /** - * Constructs a new GraphSyncResult. + * Constructs a new SharedFolderTeam. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncResult); + constructor(properties?: Vault.ISharedFolderTeam); - /** GraphSyncResult streamId. */ - public streamId: Uint8Array; + /** SharedFolderTeam sharedFolderUid. */ + public sharedFolderUid: Uint8Array; - /** GraphSyncResult syncPoint. */ - public syncPoint: number; + /** SharedFolderTeam teamUid. */ + public teamUid: Uint8Array; - /** GraphSyncResult data. */ - public data: GraphSync.IGraphSyncDataPlus[]; + /** SharedFolderTeam name. */ + public name: string; - /** GraphSyncResult hasMore. */ - public hasMore: boolean; + /** SharedFolderTeam manageRecords. */ + public manageRecords: boolean; + + /** SharedFolderTeam manageUsers. */ + public manageUsers: boolean; + + /** SharedFolderTeam expiration. */ + public expiration: number; + + /** SharedFolderTeam expirationNotificationType. */ + public expirationNotificationType: Records.TimerNotificationType; + + /** SharedFolderTeam rotateOnExpiration. */ + public rotateOnExpiration: boolean; /** - * Creates a new GraphSyncResult instance using the specified properties. + * Creates a new SharedFolderTeam instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncResult instance + * @returns SharedFolderTeam instance */ - public static create(properties?: GraphSync.IGraphSyncResult): GraphSync.GraphSyncResult; + public static create(properties?: Vault.ISharedFolderTeam): Vault.SharedFolderTeam; /** - * Encodes the specified GraphSyncResult message. Does not implicitly {@link GraphSync.GraphSyncResult.verify|verify} messages. - * @param message GraphSyncResult message or plain object to encode + * Encodes the specified SharedFolderTeam message. Does not implicitly {@link Vault.SharedFolderTeam.verify|verify} messages. + * @param message SharedFolderTeam message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: GraphSync.IGraphSyncResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISharedFolderTeam, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncResult message from the specified reader or buffer. + * Decodes a SharedFolderTeam message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncResult + * @returns SharedFolderTeam * @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): GraphSync.GraphSyncResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SharedFolderTeam; /** - * Creates a GraphSyncResult message from a plain object. Also converts values to their respective internal types. + * Creates a SharedFolderTeam message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncResult + * @returns SharedFolderTeam */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncResult; + public static fromObject(object: { [k: string]: any }): Vault.SharedFolderTeam; /** - * Creates a plain object from a GraphSyncResult message. Also converts values to other types if specified. - * @param message GraphSyncResult + * Creates a plain object from a SharedFolderTeam message. Also converts values to other types if specified. + * @param message SharedFolderTeam * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SharedFolderTeam, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncResult to JSON. + * Converts this SharedFolderTeam to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncResult + * Gets the default type url for SharedFolderTeam * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GraphSyncMultiQuery. */ - interface IGraphSyncMultiQuery { + /** Properties of a KsmChange. */ + interface IKsmChange { - /** GraphSyncMultiQuery queries */ - queries?: (GraphSync.IGraphSyncQuery[]|null); + /** KsmChange appRecordUid */ + appRecordUid?: (Uint8Array|null); + + /** KsmChange detailId */ + detailId?: (Uint8Array|null); + + /** KsmChange removed */ + removed?: (boolean|null); + + /** KsmChange appClientType */ + appClientType?: (Enterprise.AppClientType|null); + + /** KsmChange expiration */ + expiration?: (number|null); } - /** Represents a GraphSyncMultiQuery. */ - class GraphSyncMultiQuery implements IGraphSyncMultiQuery { + /** Represents a KsmChange. */ + class KsmChange implements IKsmChange { /** - * Constructs a new GraphSyncMultiQuery. + * Constructs a new KsmChange. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncMultiQuery); + constructor(properties?: Vault.IKsmChange); - /** GraphSyncMultiQuery queries. */ - public queries: GraphSync.IGraphSyncQuery[]; + /** KsmChange appRecordUid. */ + public appRecordUid: Uint8Array; + + /** KsmChange detailId. */ + public detailId: Uint8Array; + + /** KsmChange removed. */ + public removed: boolean; + + /** KsmChange appClientType. */ + public appClientType: Enterprise.AppClientType; + + /** KsmChange expiration. */ + public expiration: number; /** - * Creates a new GraphSyncMultiQuery instance using the specified properties. + * Creates a new KsmChange instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncMultiQuery instance + * @returns KsmChange instance */ - public static create(properties?: GraphSync.IGraphSyncMultiQuery): GraphSync.GraphSyncMultiQuery; + public static create(properties?: Vault.IKsmChange): Vault.KsmChange; /** - * Encodes the specified GraphSyncMultiQuery message. Does not implicitly {@link GraphSync.GraphSyncMultiQuery.verify|verify} messages. - * @param message GraphSyncMultiQuery message or plain object to encode + * Encodes the specified KsmChange message. Does not implicitly {@link Vault.KsmChange.verify|verify} messages. + * @param message KsmChange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: GraphSync.IGraphSyncMultiQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IKsmChange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncMultiQuery message from the specified reader or buffer. + * Decodes a KsmChange message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncMultiQuery + * @returns KsmChange * @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): GraphSync.GraphSyncMultiQuery; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.KsmChange; /** - * Creates a GraphSyncMultiQuery message from a plain object. Also converts values to their respective internal types. + * Creates a KsmChange message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncMultiQuery + * @returns KsmChange */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncMultiQuery; + public static fromObject(object: { [k: string]: any }): Vault.KsmChange; /** - * Creates a plain object from a GraphSyncMultiQuery message. Also converts values to other types if specified. - * @param message GraphSyncMultiQuery + * Creates a plain object from a KsmChange message. Also converts values to other types if specified. + * @param message KsmChange * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncMultiQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.KsmChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncMultiQuery to JSON. + * Converts this KsmChange to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncMultiQuery + * Gets the default type url for KsmChange * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GraphSyncMultiResult. */ - interface IGraphSyncMultiResult { + /** Properties of a ShareInvitation. */ + interface IShareInvitation { - /** GraphSyncMultiResult results */ - results?: (GraphSync.IGraphSyncResult[]|null); + /** ShareInvitation username */ + username?: (string|null); } - /** Represents a GraphSyncMultiResult. */ - class GraphSyncMultiResult implements IGraphSyncMultiResult { + /** Represents a ShareInvitation. */ + class ShareInvitation implements IShareInvitation { /** - * Constructs a new GraphSyncMultiResult. + * Constructs a new ShareInvitation. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncMultiResult); + constructor(properties?: Vault.IShareInvitation); - /** GraphSyncMultiResult results. */ - public results: GraphSync.IGraphSyncResult[]; + /** ShareInvitation username. */ + public username: string; /** - * Creates a new GraphSyncMultiResult instance using the specified properties. + * Creates a new ShareInvitation instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncMultiResult instance + * @returns ShareInvitation instance */ - public static create(properties?: GraphSync.IGraphSyncMultiResult): GraphSync.GraphSyncMultiResult; + public static create(properties?: Vault.IShareInvitation): Vault.ShareInvitation; /** - * Encodes the specified GraphSyncMultiResult message. Does not implicitly {@link GraphSync.GraphSyncMultiResult.verify|verify} messages. - * @param message GraphSyncMultiResult message or plain object to encode + * Encodes the specified ShareInvitation message. Does not implicitly {@link Vault.ShareInvitation.verify|verify} messages. + * @param message ShareInvitation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: GraphSync.IGraphSyncMultiResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IShareInvitation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncMultiResult message from the specified reader or buffer. + * Decodes a ShareInvitation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncMultiResult + * @returns ShareInvitation * @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): GraphSync.GraphSyncMultiResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.ShareInvitation; /** - * Creates a GraphSyncMultiResult message from a plain object. Also converts values to their respective internal types. + * Creates a ShareInvitation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncMultiResult + * @returns ShareInvitation */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncMultiResult; + public static fromObject(object: { [k: string]: any }): Vault.ShareInvitation; /** - * Creates a plain object from a GraphSyncMultiResult message. Also converts values to other types if specified. - * @param message GraphSyncMultiResult + * Creates a plain object from a ShareInvitation message. Also converts values to other types if specified. + * @param message ShareInvitation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncMultiResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.ShareInvitation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncMultiResult to JSON. + * Converts this ShareInvitation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncMultiResult + * Gets the default type url for ShareInvitation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GraphSyncAddDataRequest. */ - interface IGraphSyncAddDataRequest { + /** Properties of a User. */ + interface IUser { - /** GraphSyncAddDataRequest origin */ - origin?: (GraphSync.IGraphSyncRef|null); + /** User accountUid */ + accountUid?: (Uint8Array|null); - /** GraphSyncAddDataRequest data */ - data?: (GraphSync.IGraphSyncData[]|null); + /** User username */ + username?: (string|null); } - /** Represents a GraphSyncAddDataRequest. */ - class GraphSyncAddDataRequest implements IGraphSyncAddDataRequest { + /** Represents a User. */ + class User implements IUser { /** - * Constructs a new GraphSyncAddDataRequest. + * Constructs a new User. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncAddDataRequest); + constructor(properties?: Vault.IUser); - /** GraphSyncAddDataRequest origin. */ - public origin?: (GraphSync.IGraphSyncRef|null); + /** User accountUid. */ + public accountUid: Uint8Array; - /** GraphSyncAddDataRequest data. */ - public data: GraphSync.IGraphSyncData[]; + /** User username. */ + public username: string; /** - * Creates a new GraphSyncAddDataRequest instance using the specified properties. + * Creates a new User instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncAddDataRequest instance + * @returns User instance */ - public static create(properties?: GraphSync.IGraphSyncAddDataRequest): GraphSync.GraphSyncAddDataRequest; + public static create(properties?: Vault.IUser): Vault.User; /** - * Encodes the specified GraphSyncAddDataRequest message. Does not implicitly {@link GraphSync.GraphSyncAddDataRequest.verify|verify} messages. - * @param message GraphSyncAddDataRequest message or plain object to encode + * Encodes the specified User message. Does not implicitly {@link Vault.User.verify|verify} messages. + * @param message User message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: GraphSync.IGraphSyncAddDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IUser, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncAddDataRequest message from the specified reader or buffer. + * Decodes a User message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncAddDataRequest + * @returns User * @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): GraphSync.GraphSyncAddDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.User; /** - * Creates a GraphSyncAddDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a User message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncAddDataRequest + * @returns User */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncAddDataRequest; + public static fromObject(object: { [k: string]: any }): Vault.User; /** - * Creates a plain object from a GraphSyncAddDataRequest message. Also converts values to other types if specified. - * @param message GraphSyncAddDataRequest + * Creates a plain object from a User message. Also converts values to other types if specified. + * @param message User * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncAddDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.User, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncAddDataRequest to JSON. + * Converts this User to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncAddDataRequest + * Gets the default type url for User * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GraphSyncLeafsQuery. */ - interface IGraphSyncLeafsQuery { + /** Properties of a SyncDiagnostics. */ + interface ISyncDiagnostics { - /** GraphSyncLeafsQuery vertices */ - vertices?: (Uint8Array[]|null); + /** SyncDiagnostics continuationToken */ + continuationToken?: (Uint8Array|null); + + /** SyncDiagnostics userId */ + userId?: (number|null); + + /** SyncDiagnostics enterpriseUserId */ + enterpriseUserId?: (number|null); + + /** SyncDiagnostics syncedTo */ + syncedTo?: (number|null); + + /** SyncDiagnostics syncingTo */ + syncingTo?: (number|null); } - /** Represents a GraphSyncLeafsQuery. */ - class GraphSyncLeafsQuery implements IGraphSyncLeafsQuery { + /** Represents a SyncDiagnostics. */ + class SyncDiagnostics implements ISyncDiagnostics { /** - * Constructs a new GraphSyncLeafsQuery. + * Constructs a new SyncDiagnostics. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncLeafsQuery); + constructor(properties?: Vault.ISyncDiagnostics); - /** GraphSyncLeafsQuery vertices. */ - public vertices: Uint8Array[]; + /** SyncDiagnostics continuationToken. */ + public continuationToken: Uint8Array; + + /** SyncDiagnostics userId. */ + public userId: number; + + /** SyncDiagnostics enterpriseUserId. */ + public enterpriseUserId: number; + + /** SyncDiagnostics syncedTo. */ + public syncedTo: number; + + /** SyncDiagnostics syncingTo. */ + public syncingTo: number; /** - * Creates a new GraphSyncLeafsQuery instance using the specified properties. + * Creates a new SyncDiagnostics instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncLeafsQuery instance + * @returns SyncDiagnostics instance */ - public static create(properties?: GraphSync.IGraphSyncLeafsQuery): GraphSync.GraphSyncLeafsQuery; + public static create(properties?: Vault.ISyncDiagnostics): Vault.SyncDiagnostics; /** - * Encodes the specified GraphSyncLeafsQuery message. Does not implicitly {@link GraphSync.GraphSyncLeafsQuery.verify|verify} messages. - * @param message GraphSyncLeafsQuery message or plain object to encode + * Encodes the specified SyncDiagnostics message. Does not implicitly {@link Vault.SyncDiagnostics.verify|verify} messages. + * @param message SyncDiagnostics message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: GraphSync.IGraphSyncLeafsQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISyncDiagnostics, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncLeafsQuery message from the specified reader or buffer. + * Decodes a SyncDiagnostics message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncLeafsQuery + * @returns SyncDiagnostics * @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): GraphSync.GraphSyncLeafsQuery; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SyncDiagnostics; /** - * Creates a GraphSyncLeafsQuery message from a plain object. Also converts values to their respective internal types. + * Creates a SyncDiagnostics message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncLeafsQuery + * @returns SyncDiagnostics */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncLeafsQuery; + public static fromObject(object: { [k: string]: any }): Vault.SyncDiagnostics; /** - * Creates a plain object from a GraphSyncLeafsQuery message. Also converts values to other types if specified. - * @param message GraphSyncLeafsQuery + * Creates a plain object from a SyncDiagnostics message. Also converts values to other types if specified. + * @param message SyncDiagnostics * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncLeafsQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SyncDiagnostics, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncLeafsQuery to JSON. + * Converts this SyncDiagnostics to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncLeafsQuery + * Gets the default type url for SyncDiagnostics * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GraphSyncRefsResult. */ - interface IGraphSyncRefsResult { + /** RecordRotationStatus enum. */ + enum RecordRotationStatus { + RRST_NOT_ROTATED = 0, + RRST_IN_PROGRESS = 1, + RRST_SUCCESS = 2, + RRST_FAILURE = 3 + } - /** GraphSyncRefsResult refs */ - refs?: (GraphSync.IGraphSyncRef[]|null); + /** Properties of a RecordRotation. */ + interface IRecordRotation { + + /** RecordRotation recordUid */ + recordUid?: (Uint8Array|null); + + /** RecordRotation revision */ + revision?: (number|null); + + /** RecordRotation configurationUid */ + configurationUid?: (Uint8Array|null); + + /** RecordRotation schedule */ + schedule?: (string|null); + + /** RecordRotation pwdComplexity */ + pwdComplexity?: (Uint8Array|null); + + /** RecordRotation disabled */ + disabled?: (boolean|null); + + /** RecordRotation resourceUid */ + resourceUid?: (Uint8Array|null); + + /** RecordRotation lastRotation */ + lastRotation?: (number|null); + + /** RecordRotation lastRotationStatus */ + lastRotationStatus?: (Vault.RecordRotationStatus|null); } - /** Represents a GraphSyncRefsResult. */ - class GraphSyncRefsResult implements IGraphSyncRefsResult { + /** Represents a RecordRotation. */ + class RecordRotation implements IRecordRotation { /** - * Constructs a new GraphSyncRefsResult. + * Constructs a new RecordRotation. * @param [properties] Properties to set */ - constructor(properties?: GraphSync.IGraphSyncRefsResult); + constructor(properties?: Vault.IRecordRotation); - /** GraphSyncRefsResult refs. */ - public refs: GraphSync.IGraphSyncRef[]; + /** RecordRotation recordUid. */ + public recordUid: Uint8Array; + + /** RecordRotation revision. */ + public revision: number; + + /** RecordRotation configurationUid. */ + public configurationUid: Uint8Array; + + /** RecordRotation schedule. */ + public schedule: string; + + /** RecordRotation pwdComplexity. */ + public pwdComplexity: Uint8Array; + + /** RecordRotation disabled. */ + public disabled: boolean; + + /** RecordRotation resourceUid. */ + public resourceUid: Uint8Array; + + /** RecordRotation lastRotation. */ + public lastRotation: number; + + /** RecordRotation lastRotationStatus. */ + public lastRotationStatus: Vault.RecordRotationStatus; /** - * Creates a new GraphSyncRefsResult instance using the specified properties. + * Creates a new RecordRotation instance using the specified properties. * @param [properties] Properties to set - * @returns GraphSyncRefsResult instance + * @returns RecordRotation instance */ - public static create(properties?: GraphSync.IGraphSyncRefsResult): GraphSync.GraphSyncRefsResult; + public static create(properties?: Vault.IRecordRotation): Vault.RecordRotation; /** - * Encodes the specified GraphSyncRefsResult message. Does not implicitly {@link GraphSync.GraphSyncRefsResult.verify|verify} messages. - * @param message GraphSyncRefsResult message or plain object to encode + * Encodes the specified RecordRotation message. Does not implicitly {@link Vault.RecordRotation.verify|verify} messages. + * @param message RecordRotation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: GraphSync.IGraphSyncRefsResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IRecordRotation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GraphSyncRefsResult message from the specified reader or buffer. + * Decodes a RecordRotation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GraphSyncRefsResult + * @returns RecordRotation * @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): GraphSync.GraphSyncRefsResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.RecordRotation; /** - * Creates a GraphSyncRefsResult message from a plain object. Also converts values to their respective internal types. + * Creates a RecordRotation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GraphSyncRefsResult + * @returns RecordRotation */ - public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncRefsResult; + public static fromObject(object: { [k: string]: any }): Vault.RecordRotation; /** - * Creates a plain object from a GraphSyncRefsResult message. Also converts values to other types if specified. - * @param message GraphSyncRefsResult + * Creates a plain object from a RecordRotation message. Also converts values to other types if specified. + * @param message RecordRotation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncRefsResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.RecordRotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GraphSyncRefsResult to JSON. + * Converts this RecordRotation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GraphSyncRefsResult + * Gets the default type url for RecordRotation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} - -/** Namespace Dag. */ -export namespace Dag { - - /** RefType enum. */ - enum RefType { - GENERAL = 0, - USER = 1, - DEVICE = 2, - REC = 3, - FOLDER = 4, - TEAM = 5, - ENTERPRISE = 6, - PAM_DIRECTORY = 7, - PAM_MACHINE = 8, - PAM_USER = 9 - } - - /** DataType enum. */ - enum DataType { - DATA = 0, - KEY = 1, - LINK = 2, - ACL = 3, - DELETION = 4, - DENIAL = 5, - UNDENIAL = 6 - } - /** Properties of a Ref. */ - interface IRef { + /** Properties of a SecurityScoreData. */ + interface ISecurityScoreData { - /** Ref type */ - type?: (Dag.RefType|null); + /** SecurityScoreData recordUid */ + recordUid?: (Uint8Array|null); - /** Ref value */ - value?: (Uint8Array|null); + /** SecurityScoreData data */ + data?: (Uint8Array|null); - /** Ref name */ - name?: (string|null); + /** SecurityScoreData revision */ + revision?: (number|null); } - /** Represents a Ref. */ - class Ref implements IRef { + /** Represents a SecurityScoreData. */ + class SecurityScoreData implements ISecurityScoreData { /** - * Constructs a new Ref. + * Constructs a new SecurityScoreData. * @param [properties] Properties to set */ - constructor(properties?: Dag.IRef); + constructor(properties?: Vault.ISecurityScoreData); - /** Ref type. */ - public type: Dag.RefType; + /** SecurityScoreData recordUid. */ + public recordUid: Uint8Array; - /** Ref value. */ - public value: Uint8Array; + /** SecurityScoreData data. */ + public data: Uint8Array; - /** Ref name. */ - public name: string; + /** SecurityScoreData revision. */ + public revision: number; /** - * Creates a new Ref instance using the specified properties. + * Creates a new SecurityScoreData instance using the specified properties. * @param [properties] Properties to set - * @returns Ref instance + * @returns SecurityScoreData instance */ - public static create(properties?: Dag.IRef): Dag.Ref; + public static create(properties?: Vault.ISecurityScoreData): Vault.SecurityScoreData; /** - * Encodes the specified Ref message. Does not implicitly {@link Dag.Ref.verify|verify} messages. - * @param message Ref message or plain object to encode + * Encodes the specified SecurityScoreData message. Does not implicitly {@link Vault.SecurityScoreData.verify|verify} messages. + * @param message SecurityScoreData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Dag.IRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.ISecurityScoreData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Ref message from the specified reader or buffer. + * Decodes a SecurityScoreData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Ref + * @returns SecurityScoreData * @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): Dag.Ref; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.SecurityScoreData; /** - * Creates a Ref message from a plain object. Also converts values to their respective internal types. + * Creates a SecurityScoreData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Ref + * @returns SecurityScoreData */ - public static fromObject(object: { [k: string]: any }): Dag.Ref; + public static fromObject(object: { [k: string]: any }): Vault.SecurityScoreData; /** - * Creates a plain object from a Ref message. Also converts values to other types if specified. - * @param message Ref + * Creates a plain object from a SecurityScoreData message. Also converts values to other types if specified. + * @param message SecurityScoreData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Dag.Ref, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.SecurityScoreData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Ref to JSON. + * Converts this SecurityScoreData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Ref + * Gets the default type url for SecurityScoreData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Data. */ - interface IData { - - /** Data dataType */ - dataType?: (Dag.DataType|null); - - /** Data ref */ - ref?: (Dag.IRef|null); - - /** Data parentRef */ - parentRef?: (Dag.IRef|null); - - /** Data content */ - content?: (Uint8Array|null); + /** Properties of a BreachWatchGetSyncDataRequest. */ + interface IBreachWatchGetSyncDataRequest { - /** Data path */ - path?: (string|null); + /** BreachWatchGetSyncDataRequest recordUids */ + recordUids?: (Uint8Array[]|null); } - /** Represents a Data. */ - class Data implements IData { + /** Represents a BreachWatchGetSyncDataRequest. */ + class BreachWatchGetSyncDataRequest implements IBreachWatchGetSyncDataRequest { /** - * Constructs a new Data. + * Constructs a new BreachWatchGetSyncDataRequest. * @param [properties] Properties to set */ - constructor(properties?: Dag.IData); - - /** Data dataType. */ - public dataType: Dag.DataType; - - /** Data ref. */ - public ref?: (Dag.IRef|null); - - /** Data parentRef. */ - public parentRef?: (Dag.IRef|null); - - /** Data content. */ - public content: Uint8Array; + constructor(properties?: Vault.IBreachWatchGetSyncDataRequest); - /** Data path. */ - public path: string; + /** BreachWatchGetSyncDataRequest recordUids. */ + public recordUids: Uint8Array[]; /** - * Creates a new Data instance using the specified properties. + * Creates a new BreachWatchGetSyncDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Data instance + * @returns BreachWatchGetSyncDataRequest instance */ - public static create(properties?: Dag.IData): Dag.Data; + public static create(properties?: Vault.IBreachWatchGetSyncDataRequest): Vault.BreachWatchGetSyncDataRequest; /** - * Encodes the specified Data message. Does not implicitly {@link Dag.Data.verify|verify} messages. - * @param message Data message or plain object to encode + * Encodes the specified BreachWatchGetSyncDataRequest message. Does not implicitly {@link Vault.BreachWatchGetSyncDataRequest.verify|verify} messages. + * @param message BreachWatchGetSyncDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Dag.IData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IBreachWatchGetSyncDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Data message from the specified reader or buffer. + * Decodes a BreachWatchGetSyncDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Data + * @returns BreachWatchGetSyncDataRequest * @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): Dag.Data; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.BreachWatchGetSyncDataRequest; /** - * Creates a Data message from a plain object. Also converts values to their respective internal types. + * Creates a BreachWatchGetSyncDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Data + * @returns BreachWatchGetSyncDataRequest */ - public static fromObject(object: { [k: string]: any }): Dag.Data; + public static fromObject(object: { [k: string]: any }): Vault.BreachWatchGetSyncDataRequest; /** - * Creates a plain object from a Data message. Also converts values to other types if specified. - * @param message Data + * Creates a plain object from a BreachWatchGetSyncDataRequest message. Also converts values to other types if specified. + * @param message BreachWatchGetSyncDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Dag.Data, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.BreachWatchGetSyncDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Data to JSON. + * Converts this BreachWatchGetSyncDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Data + * Gets the default type url for BreachWatchGetSyncDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SyncData. */ - interface ISyncData { + /** Properties of a BreachWatchGetSyncDataResponse. */ + interface IBreachWatchGetSyncDataResponse { - /** SyncData data */ - data?: (Dag.IData[]|null); + /** BreachWatchGetSyncDataResponse breachWatchRecords */ + breachWatchRecords?: (Vault.IBreachWatchRecord[]|null); - /** SyncData syncPoint */ - syncPoint?: (number|null); + /** BreachWatchGetSyncDataResponse breachWatchSecurityData */ + breachWatchSecurityData?: (Vault.IBreachWatchSecurityData[]|null); - /** SyncData hasMore */ - hasMore?: (boolean|null); + /** BreachWatchGetSyncDataResponse users */ + users?: (Vault.IUser[]|null); } - /** Represents a SyncData. */ - class SyncData implements ISyncData { + /** Represents a BreachWatchGetSyncDataResponse. */ + class BreachWatchGetSyncDataResponse implements IBreachWatchGetSyncDataResponse { /** - * Constructs a new SyncData. + * Constructs a new BreachWatchGetSyncDataResponse. * @param [properties] Properties to set */ - constructor(properties?: Dag.ISyncData); + constructor(properties?: Vault.IBreachWatchGetSyncDataResponse); - /** SyncData data. */ - public data: Dag.IData[]; + /** BreachWatchGetSyncDataResponse breachWatchRecords. */ + public breachWatchRecords: Vault.IBreachWatchRecord[]; - /** SyncData syncPoint. */ - public syncPoint: number; + /** BreachWatchGetSyncDataResponse breachWatchSecurityData. */ + public breachWatchSecurityData: Vault.IBreachWatchSecurityData[]; - /** SyncData hasMore. */ - public hasMore: boolean; + /** BreachWatchGetSyncDataResponse users. */ + public users: Vault.IUser[]; /** - * Creates a new SyncData instance using the specified properties. + * Creates a new BreachWatchGetSyncDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SyncData instance + * @returns BreachWatchGetSyncDataResponse instance */ - public static create(properties?: Dag.ISyncData): Dag.SyncData; + public static create(properties?: Vault.IBreachWatchGetSyncDataResponse): Vault.BreachWatchGetSyncDataResponse; /** - * Encodes the specified SyncData message. Does not implicitly {@link Dag.SyncData.verify|verify} messages. - * @param message SyncData message or plain object to encode + * Encodes the specified BreachWatchGetSyncDataResponse message. Does not implicitly {@link Vault.BreachWatchGetSyncDataResponse.verify|verify} messages. + * @param message BreachWatchGetSyncDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Dag.ISyncData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IBreachWatchGetSyncDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SyncData message from the specified reader or buffer. + * Decodes a BreachWatchGetSyncDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SyncData + * @returns BreachWatchGetSyncDataResponse * @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): Dag.SyncData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.BreachWatchGetSyncDataResponse; /** - * Creates a SyncData message from a plain object. Also converts values to their respective internal types. + * Creates a BreachWatchGetSyncDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SyncData + * @returns BreachWatchGetSyncDataResponse */ - public static fromObject(object: { [k: string]: any }): Dag.SyncData; + public static fromObject(object: { [k: string]: any }): Vault.BreachWatchGetSyncDataResponse; /** - * Creates a plain object from a SyncData message. Also converts values to other types if specified. - * @param message SyncData + * Creates a plain object from a BreachWatchGetSyncDataResponse message. Also converts values to other types if specified. + * @param message BreachWatchGetSyncDataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Dag.SyncData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.BreachWatchGetSyncDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SyncData to JSON. + * Converts this BreachWatchGetSyncDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SyncData + * Gets the default type url for BreachWatchGetSyncDataResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DebugData. */ - interface IDebugData { - - /** DebugData dataType */ - dataType?: (string|null); - - /** DebugData path */ - path?: (string|null); - - /** DebugData ref */ - ref?: (Dag.IDebugRefInfo|null); + /** Properties of a GetAccountUidMapResponse. */ + interface IGetAccountUidMapResponse { - /** DebugData parentRef */ - parentRef?: (Dag.IDebugRefInfo|null); + /** GetAccountUidMapResponse users */ + users?: (Vault.IUser[]|null); } - /** Represents a DebugData. */ - class DebugData implements IDebugData { + /** Represents a GetAccountUidMapResponse. */ + class GetAccountUidMapResponse implements IGetAccountUidMapResponse { /** - * Constructs a new DebugData. + * Constructs a new GetAccountUidMapResponse. * @param [properties] Properties to set */ - constructor(properties?: Dag.IDebugData); - - /** DebugData dataType. */ - public dataType: string; - - /** DebugData path. */ - public path: string; - - /** DebugData ref. */ - public ref?: (Dag.IDebugRefInfo|null); + constructor(properties?: Vault.IGetAccountUidMapResponse); - /** DebugData parentRef. */ - public parentRef?: (Dag.IDebugRefInfo|null); + /** GetAccountUidMapResponse users. */ + public users: Vault.IUser[]; /** - * Creates a new DebugData instance using the specified properties. + * Creates a new GetAccountUidMapResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DebugData instance + * @returns GetAccountUidMapResponse instance */ - public static create(properties?: Dag.IDebugData): Dag.DebugData; + public static create(properties?: Vault.IGetAccountUidMapResponse): Vault.GetAccountUidMapResponse; /** - * Encodes the specified DebugData message. Does not implicitly {@link Dag.DebugData.verify|verify} messages. - * @param message DebugData message or plain object to encode + * Encodes the specified GetAccountUidMapResponse message. Does not implicitly {@link Vault.GetAccountUidMapResponse.verify|verify} messages. + * @param message GetAccountUidMapResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Dag.IDebugData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Vault.IGetAccountUidMapResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DebugData message from the specified reader or buffer. + * Decodes a GetAccountUidMapResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DebugData + * @returns GetAccountUidMapResponse * @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): Dag.DebugData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Vault.GetAccountUidMapResponse; /** - * Creates a DebugData message from a plain object. Also converts values to their respective internal types. + * Creates a GetAccountUidMapResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DebugData + * @returns GetAccountUidMapResponse */ - public static fromObject(object: { [k: string]: any }): Dag.DebugData; + public static fromObject(object: { [k: string]: any }): Vault.GetAccountUidMapResponse; /** - * Creates a plain object from a DebugData message. Also converts values to other types if specified. - * @param message DebugData + * Creates a plain object from a GetAccountUidMapResponse message. Also converts values to other types if specified. + * @param message GetAccountUidMapResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Dag.DebugData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Vault.GetAccountUidMapResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DebugData to JSON. + * Converts this GetAccountUidMapResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for DebugData - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Gets the default type url for GetAccountUidMapResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } +} + +/** Namespace NotificationCenter. */ +export namespace NotificationCenter { + + /** NotificationCategory enum. */ + enum NotificationCategory { + NC_UNSPECIFIED = 0, + NC_ACCOUNT = 1, + NC_SHARING = 2, + NC_ENTERPRISE = 3, + NC_SECURITY = 4, + NC_REQUEST = 5, + NC_SYSTEM = 6, + NC_PROMOTION = 7 + } + + /** NotificationType enum. */ + enum NotificationType { + NT_UNSPECIFIED = 0, + NT_ALERT = 1, + NT_DEVICE_APPROVAL = 2, + NT_MASTER_PASS_UPDATED = 3, + NT_SHARE_APPROVAL = 4, + NT_SHARE_APPROVAL_APPROVED = 5, + NT_SHARED = 6, + NT_TRANSFERRED = 7, + NT_LICENSE_LIMIT_REACHED = 8, + NT_APPROVAL_REQUEST = 9, + NT_APPROVED_RESPONSE = 10, + NT_DENIED_RESPONSE = 11, + NT_2FA_CONFIGURED = 12, + NT_SHARE_APPROVAL_DENIED = 13, + NT_DEVICE_APPROVAL_APPROVED = 14, + NT_DEVICE_APPROVAL_DENIED = 15, + NT_ACCOUNT_CREATED = 16, + NT_2FA_ENABLED = 17, + NT_2FA_DISABLED = 18, + NT_SECURITY_KEYS_ENABLED = 19, + NT_SECURITY_KEYS_DISABLED = 20, + NT_SSL_CERTIFICATE_EXPIRES_SOON = 21, + NT_SSL_CERTIFICATE_EXPIRED = 22 + } + + /** NotificationReadStatus enum. */ + enum NotificationReadStatus { + NRS_UNSPECIFIED = 0, + NRS_LAST = 1, + NRS_READ = 2, + NRS_UNREAD = 3 + } + + /** NotificationApprovalStatus enum. */ + enum NotificationApprovalStatus { + NAS_UNSPECIFIED = 0, + NAS_APPROVED = 1, + NAS_DENIED = 2, + NAS_LOST_APPROVAL_RIGHTS = 3, + NAS_LOST_ACCESS = 4 } - /** Properties of a DebugRefInfo. */ - interface IDebugRefInfo { + /** Properties of an EncryptedData. */ + interface IEncryptedData { - /** DebugRefInfo refType */ - refType?: (string|null); + /** EncryptedData version */ + version?: (number|null); - /** DebugRefInfo value */ - value?: (Uint8Array|null); + /** EncryptedData data */ + data?: (Uint8Array|null); } - /** Represents a DebugRefInfo. */ - class DebugRefInfo implements IDebugRefInfo { + /** Represents an EncryptedData. */ + class EncryptedData implements IEncryptedData { /** - * Constructs a new DebugRefInfo. + * Constructs a new EncryptedData. * @param [properties] Properties to set */ - constructor(properties?: Dag.IDebugRefInfo); + constructor(properties?: NotificationCenter.IEncryptedData); - /** DebugRefInfo refType. */ - public refType: string; + /** EncryptedData version. */ + public version: number; - /** DebugRefInfo value. */ - public value: Uint8Array; + /** EncryptedData data. */ + public data: Uint8Array; /** - * Creates a new DebugRefInfo instance using the specified properties. + * Creates a new EncryptedData instance using the specified properties. * @param [properties] Properties to set - * @returns DebugRefInfo instance + * @returns EncryptedData instance */ - public static create(properties?: Dag.IDebugRefInfo): Dag.DebugRefInfo; + public static create(properties?: NotificationCenter.IEncryptedData): NotificationCenter.EncryptedData; /** - * Encodes the specified DebugRefInfo message. Does not implicitly {@link Dag.DebugRefInfo.verify|verify} messages. - * @param message DebugRefInfo message or plain object to encode + * Encodes the specified EncryptedData message. Does not implicitly {@link NotificationCenter.EncryptedData.verify|verify} messages. + * @param message EncryptedData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Dag.IDebugRefInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.IEncryptedData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DebugRefInfo message from the specified reader or buffer. + * Decodes an EncryptedData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DebugRefInfo + * @returns EncryptedData * @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): Dag.DebugRefInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.EncryptedData; /** - * Creates a DebugRefInfo message from a plain object. Also converts values to their respective internal types. + * Creates an EncryptedData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DebugRefInfo + * @returns EncryptedData */ - public static fromObject(object: { [k: string]: any }): Dag.DebugRefInfo; + public static fromObject(object: { [k: string]: any }): NotificationCenter.EncryptedData; /** - * Creates a plain object from a DebugRefInfo message. Also converts values to other types if specified. - * @param message DebugRefInfo + * Creates a plain object from an EncryptedData message. Also converts values to other types if specified. + * @param message EncryptedData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Dag.DebugRefInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.EncryptedData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DebugRefInfo to JSON. + * Converts this EncryptedData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DebugRefInfo + * Gets the default type url for EncryptedData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} - -/** Namespace record. */ -export namespace record { - - /** Namespace v3. */ - namespace v3 { - - /** Namespace sharing. */ - namespace sharing { - - /** Represents a RecordSharingService */ - class RecordSharingService extends $protobuf.rpc.Service { - - /** - * Constructs a new RecordSharingService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new RecordSharingService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RecordSharingService; - - /** - * Manage direct sharing of records: grant, update and revoke user access to - * records in the same request - * @param request Request message or plain object - * @param callback Node-style callback called with the error, if any, and Response - */ - public shareRecord(request: record.v3.sharing.IRequest, callback: record.v3.sharing.RecordSharingService.ShareRecordCallback): void; - - /** - * Manage direct sharing of records: grant, update and revoke user access to - * records in the same request - * @param request Request message or plain object - * @returns Promise - */ - public shareRecord(request: record.v3.sharing.IRequest): Promise; - } - - namespace RecordSharingService { - - /** - * Callback as used by {@link record.v3.sharing.RecordSharingService#shareRecord}. - * @param error Error, if any - * @param [response] Response - */ - type ShareRecordCallback = (error: (Error|null), response?: record.v3.sharing.Response) => void; - } - - /** Properties of a Request. */ - interface IRequest { - - /** - * add new permissions to a list of existing records - * corresponds to creating new records shares, directly with "someone", whether a team or a specific user - */ - createSharingPermissions?: (record.v3.sharing.IPermissions[]|null); - - /** update existing permissions of a list of existing records shared with a team or a user */ - updateSharingPermissions?: (record.v3.sharing.IPermissions[]|null); - - /** - * remove all sharing permissions from existing records - * specified records that were previously shared with "someone" (user or team) directly will be "unshared" - */ - revokeSharingPermissions?: (record.v3.sharing.IPermissions[]|null); - - /** A string that is sent back in the push notification to identify the user who initiated the push (device id) */ - echo?: (string|null); - } - - /** - * Represents a request encapsulating new, updated and deleted record sharing permissions. - * References: - * https://keeper.atlassian.net/wiki/spaces/FEAT/pages/1540653191/Shared+Subfolder+Permissions+aka+best+project+ever - * https://keeper.atlassian.net/wiki/spaces/KA/pages/2520711174/records_share_update+v3 - */ - class Request implements IRequest { - - /** - * Constructs a new Request. - * @param [properties] Properties to set - */ - constructor(properties?: record.v3.sharing.IRequest); - - /** - * add new permissions to a list of existing records - * corresponds to creating new records shares, directly with "someone", whether a team or a specific user - */ - public createSharingPermissions: record.v3.sharing.IPermissions[]; - - /** update existing permissions of a list of existing records shared with a team or a user */ - public updateSharingPermissions: record.v3.sharing.IPermissions[]; - - /** - * remove all sharing permissions from existing records - * specified records that were previously shared with "someone" (user or team) directly will be "unshared" - */ - public revokeSharingPermissions: record.v3.sharing.IPermissions[]; - - /** A string that is sent back in the push notification to identify the user who initiated the push (device id) */ - public echo: string; - - /** - * Creates a new Request instance using the specified properties. - * @param [properties] Properties to set - * @returns Request instance - */ - public static create(properties?: record.v3.sharing.IRequest): record.v3.sharing.Request; - - /** - * Encodes the specified Request message. Does not implicitly {@link record.v3.sharing.Request.verify|verify} messages. - * @param message Request message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: record.v3.sharing.IRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Request message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Request - * @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): record.v3.sharing.Request; - - /** - * Creates a Request message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Request - */ - public static fromObject(object: { [k: string]: any }): record.v3.sharing.Request; - - /** - * Creates a plain object from a Request message. Also converts values to other types if specified. - * @param message Request - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: record.v3.sharing.Request, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Request to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Request - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Permissions. */ - interface IPermissions { - - /** The uid of the recipient the record is shared with. Must be either a team uid or a user uid. */ - recipientUid?: (Uint8Array|null); - /** Identifier of the record being shared or whose sharing permissions are being updated/removed */ - recordUid?: (Uint8Array|null); + /** Properties of a NotificationParameter. */ + interface INotificationParameter { - /** The record key encrypted with the recipient's public key (see. @username) */ - recordKey?: (Uint8Array|null); + /** NotificationParameter key */ + key?: (string|null); - /** Use ECIES algorithm instead of RSA to share to the recipient's public ECC key (see. @username) */ - useEccKey?: (boolean|null); + /** NotificationParameter data */ + data?: (Uint8Array|null); + } - /** - * The set of record permissions granted to the recipient (@username). - * Permissions apply in the context of the specified folder. - */ - rules?: (Folder.IRecordAccessData|null); - } + /** Represents a NotificationParameter. */ + class NotificationParameter implements INotificationParameter { - /** Represents a Permissions. */ - class Permissions implements IPermissions { + /** + * Constructs a new NotificationParameter. + * @param [properties] Properties to set + */ + constructor(properties?: NotificationCenter.INotificationParameter); - /** - * Constructs a new Permissions. - * @param [properties] Properties to set - */ - constructor(properties?: record.v3.sharing.IPermissions); + /** NotificationParameter key. */ + public key: string; - /** The uid of the recipient the record is shared with. Must be either a team uid or a user uid. */ - public recipientUid: Uint8Array; + /** NotificationParameter data. */ + public data: Uint8Array; - /** Identifier of the record being shared or whose sharing permissions are being updated/removed */ - public recordUid: Uint8Array; + /** + * Creates a new NotificationParameter instance using the specified properties. + * @param [properties] Properties to set + * @returns NotificationParameter instance + */ + public static create(properties?: NotificationCenter.INotificationParameter): NotificationCenter.NotificationParameter; - /** The record key encrypted with the recipient's public key (see. @username) */ - public recordKey: Uint8Array; + /** + * Encodes the specified NotificationParameter message. Does not implicitly {@link NotificationCenter.NotificationParameter.verify|verify} messages. + * @param message NotificationParameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: NotificationCenter.INotificationParameter, writer?: $protobuf.Writer): $protobuf.Writer; - /** Use ECIES algorithm instead of RSA to share to the recipient's public ECC key (see. @username) */ - public useEccKey: boolean; + /** + * Decodes a NotificationParameter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NotificationParameter + * @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): NotificationCenter.NotificationParameter; - /** - * The set of record permissions granted to the recipient (@username). - * Permissions apply in the context of the specified folder. - */ - public rules?: (Folder.IRecordAccessData|null); + /** + * Creates a NotificationParameter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NotificationParameter + */ + public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationParameter; - /** - * Creates a new Permissions instance using the specified properties. - * @param [properties] Properties to set - * @returns Permissions instance - */ - public static create(properties?: record.v3.sharing.IPermissions): record.v3.sharing.Permissions; + /** + * Creates a plain object from a NotificationParameter message. Also converts values to other types if specified. + * @param message NotificationParameter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: NotificationCenter.NotificationParameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified Permissions message. Does not implicitly {@link record.v3.sharing.Permissions.verify|verify} messages. - * @param message Permissions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: record.v3.sharing.IPermissions, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this NotificationParameter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a Permissions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Permissions - * @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): record.v3.sharing.Permissions; + /** + * Gets the default type url for NotificationParameter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a Permissions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Permissions - */ - public static fromObject(object: { [k: string]: any }): record.v3.sharing.Permissions; + /** Properties of a Notification. */ + interface INotification { - /** - * Creates a plain object from a Permissions message. Also converts values to other types if specified. - * @param message Permissions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: record.v3.sharing.Permissions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Notification type */ + type?: (NotificationCenter.NotificationType|null); - /** - * Converts this Permissions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Notification category */ + category?: (NotificationCenter.NotificationCategory|null); - /** - * Gets the default type url for Permissions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Notification sender */ + sender?: (GraphSync.IGraphSyncRef|null); - /** Properties of a Response. */ - interface IResponse { + /** Notification senderFullName */ + senderFullName?: (string|null); - /** The list of the respective sharing status of the newly shared records */ - createdSharingStatus?: (record.v3.sharing.IStatus[]|null); + /** Notification encryptedData */ + encryptedData?: (NotificationCenter.IEncryptedData|null); - /** The list of the respective sharing status of the updated shared records */ - updatedSharingStatus?: (record.v3.sharing.IStatus[]|null); + /** Notification refs */ + refs?: (GraphSync.IGraphSyncRef[]|null); - /** The list of the respective sharing status of records that have been "unshared" */ - revokedSharingStatus?: (record.v3.sharing.IStatus[]|null); - } + /** Notification categories */ + categories?: (NotificationCenter.NotificationCategory[]|null); - /** Represents a Response. */ - class Response implements IResponse { + /** Notification parameters */ + parameters?: (NotificationCenter.INotificationParameter[]|null); + } - /** - * Constructs a new Response. - * @param [properties] Properties to set - */ - constructor(properties?: record.v3.sharing.IResponse); + /** Represents a Notification. */ + class Notification implements INotification { - /** The list of the respective sharing status of the newly shared records */ - public createdSharingStatus: record.v3.sharing.IStatus[]; + /** + * Constructs a new Notification. + * @param [properties] Properties to set + */ + constructor(properties?: NotificationCenter.INotification); - /** The list of the respective sharing status of the updated shared records */ - public updatedSharingStatus: record.v3.sharing.IStatus[]; + /** Notification type. */ + public type: NotificationCenter.NotificationType; - /** The list of the respective sharing status of records that have been "unshared" */ - public revokedSharingStatus: record.v3.sharing.IStatus[]; + /** Notification category. */ + public category: NotificationCenter.NotificationCategory; - /** - * Creates a new Response instance using the specified properties. - * @param [properties] Properties to set - * @returns Response instance - */ - public static create(properties?: record.v3.sharing.IResponse): record.v3.sharing.Response; + /** Notification sender. */ + public sender?: (GraphSync.IGraphSyncRef|null); - /** - * Encodes the specified Response message. Does not implicitly {@link record.v3.sharing.Response.verify|verify} messages. - * @param message Response message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: record.v3.sharing.IResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Notification senderFullName. */ + public senderFullName: string; - /** - * Decodes a Response message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Response - * @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): record.v3.sharing.Response; + /** Notification encryptedData. */ + public encryptedData?: (NotificationCenter.IEncryptedData|null); - /** - * Creates a Response message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Response - */ - public static fromObject(object: { [k: string]: any }): record.v3.sharing.Response; + /** Notification refs. */ + public refs: GraphSync.IGraphSyncRef[]; - /** - * Creates a plain object from a Response message. Also converts values to other types if specified. - * @param message Response - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: record.v3.sharing.Response, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Notification categories. */ + public categories: NotificationCenter.NotificationCategory[]; - /** - * Converts this Response to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Notification parameters. */ + public parameters: NotificationCenter.INotificationParameter[]; - /** - * Gets the default type url for Response - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a new Notification instance using the specified properties. + * @param [properties] Properties to set + * @returns Notification instance + */ + public static create(properties?: NotificationCenter.INotification): NotificationCenter.Notification; + + /** + * Encodes the specified Notification message. Does not implicitly {@link NotificationCenter.Notification.verify|verify} messages. + * @param message Notification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: NotificationCenter.INotification, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a Status. */ - interface IStatus { + /** + * Decodes a Notification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Notification + * @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): NotificationCenter.Notification; - /** Identifier of the record being shared or whose sharing permissions are being updated/removed */ - recordUid?: (Uint8Array|null); + /** + * Creates a Notification message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Notification + */ + public static fromObject(object: { [k: string]: any }): NotificationCenter.Notification; - /** Status of the request (success or error) */ - status?: (record.v3.sharing.SharingStatus|null); + /** + * Creates a plain object from a Notification message. Also converts values to other types if specified. + * @param message Notification + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: NotificationCenter.Notification, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Translatable, human-readable message */ - message?: (string|null); + /** + * Converts this Notification to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** XOR(userUid, teamUid); the recipient the record was shared with */ - recipientUid?: (Uint8Array|null); - } + /** + * Gets the default type url for Notification + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Represents a Status. */ - class Status implements IStatus { + /** Properties of a NotificationReadMark. */ + interface INotificationReadMark { - /** - * Constructs a new Status. - * @param [properties] Properties to set - */ - constructor(properties?: record.v3.sharing.IStatus); + /** NotificationReadMark uid */ + uid?: (Uint8Array|null); - /** Identifier of the record being shared or whose sharing permissions are being updated/removed */ - public recordUid: Uint8Array; + /** NotificationReadMark notificationEdgeId */ + notificationEdgeId?: (number|null); - /** Status of the request (success or error) */ - public status: record.v3.sharing.SharingStatus; + /** NotificationReadMark markEdgeId */ + markEdgeId?: (number|null); - /** Translatable, human-readable message */ - public message: string; + /** NotificationReadMark readStatus */ + readStatus?: (NotificationCenter.NotificationReadStatus|null); + } - /** XOR(userUid, teamUid); the recipient the record was shared with */ - public recipientUid: Uint8Array; + /** Represents a NotificationReadMark. */ + class NotificationReadMark implements INotificationReadMark { - /** - * Creates a new Status instance using the specified properties. - * @param [properties] Properties to set - * @returns Status instance - */ - public static create(properties?: record.v3.sharing.IStatus): record.v3.sharing.Status; + /** + * Constructs a new NotificationReadMark. + * @param [properties] Properties to set + */ + constructor(properties?: NotificationCenter.INotificationReadMark); - /** - * Encodes the specified Status message. Does not implicitly {@link record.v3.sharing.Status.verify|verify} messages. - * @param message Status message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: record.v3.sharing.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; + /** NotificationReadMark uid. */ + public uid: Uint8Array; - /** - * Decodes a Status message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Status - * @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): record.v3.sharing.Status; + /** NotificationReadMark notificationEdgeId. */ + public notificationEdgeId: number; - /** - * Creates a Status message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Status - */ - public static fromObject(object: { [k: string]: any }): record.v3.sharing.Status; + /** NotificationReadMark markEdgeId. */ + public markEdgeId: number; - /** - * Creates a plain object from a Status message. Also converts values to other types if specified. - * @param message Status - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: record.v3.sharing.Status, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** NotificationReadMark readStatus. */ + public readStatus: NotificationCenter.NotificationReadStatus; - /** - * Converts this Status to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new NotificationReadMark instance using the specified properties. + * @param [properties] Properties to set + * @returns NotificationReadMark instance + */ + public static create(properties?: NotificationCenter.INotificationReadMark): NotificationCenter.NotificationReadMark; - /** - * Gets the default type url for Status - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified NotificationReadMark message. Does not implicitly {@link NotificationCenter.NotificationReadMark.verify|verify} messages. + * @param message NotificationReadMark message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: NotificationCenter.INotificationReadMark, writer?: $protobuf.Writer): $protobuf.Writer; - /** SharingStatus enum. */ - enum SharingStatus { - SUCCESS = 0, - PENDING_ACCEPT = 1, - USER_NOT_FOUND = 2, - ALREADY_SHARED = 3, - NOT_ALLOWED_TO_SHARE = 4, - ACCESS_DENIED = 5, - NOT_ALLOWED_TO_SET_PERMISSIONS = 6 - } + /** + * Decodes a NotificationReadMark message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NotificationReadMark + * @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): NotificationCenter.NotificationReadMark; - /** Properties of a RevokedAccess. */ - interface IRevokedAccess { + /** + * Creates a NotificationReadMark message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NotificationReadMark + */ + public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationReadMark; - /** the uid of the record whose access have been revoked */ - recordUid?: (Uint8Array|null); + /** + * Creates a plain object from a NotificationReadMark message. Also converts values to other types if specified. + * @param message NotificationReadMark + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: NotificationCenter.NotificationReadMark, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** the uid of actor whose access has been revoked. represents a User (an account) */ - actorUid?: (Uint8Array|null); - } + /** + * Converts this NotificationReadMark to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a RevokedAccess. */ - class RevokedAccess implements IRevokedAccess { + /** + * Gets the default type url for NotificationReadMark + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new RevokedAccess. - * @param [properties] Properties to set - */ - constructor(properties?: record.v3.sharing.IRevokedAccess); + /** Properties of a NotificationContent. */ + interface INotificationContent { - /** the uid of the record whose access have been revoked */ - public recordUid: Uint8Array; + /** NotificationContent notification */ + notification?: (NotificationCenter.INotification|null); - /** the uid of actor whose access has been revoked. represents a User (an account) */ - public actorUid: Uint8Array; + /** NotificationContent readStatus */ + readStatus?: (NotificationCenter.NotificationReadStatus|null); - /** - * Creates a new RevokedAccess instance using the specified properties. - * @param [properties] Properties to set - * @returns RevokedAccess instance - */ - public static create(properties?: record.v3.sharing.IRevokedAccess): record.v3.sharing.RevokedAccess; + /** NotificationContent approvalStatus */ + approvalStatus?: (NotificationCenter.NotificationApprovalStatus|null); - /** - * Encodes the specified RevokedAccess message. Does not implicitly {@link record.v3.sharing.RevokedAccess.verify|verify} messages. - * @param message RevokedAccess message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: record.v3.sharing.IRevokedAccess, writer?: $protobuf.Writer): $protobuf.Writer; + /** NotificationContent trimmingPoint */ + trimmingPoint?: (boolean|null); - /** - * Decodes a RevokedAccess message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RevokedAccess - * @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): record.v3.sharing.RevokedAccess; + /** NotificationContent clientTypeIDs */ + clientTypeIDs?: (number[]|null); - /** - * Creates a RevokedAccess message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RevokedAccess - */ - public static fromObject(object: { [k: string]: any }): record.v3.sharing.RevokedAccess; + /** NotificationContent deviceIDs */ + deviceIDs?: (number[]|null); + } - /** - * Creates a plain object from a RevokedAccess message. Also converts values to other types if specified. - * @param message RevokedAccess - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: record.v3.sharing.RevokedAccess, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a NotificationContent. */ + class NotificationContent implements INotificationContent { - /** - * Converts this RevokedAccess to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new NotificationContent. + * @param [properties] Properties to set + */ + constructor(properties?: NotificationCenter.INotificationContent); - /** - * Gets the default type url for RevokedAccess - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** NotificationContent notification. */ + public notification?: (NotificationCenter.INotification|null); - /** Properties of a RecordSharingState. */ - interface IRecordSharingState { + /** NotificationContent readStatus. */ + public readStatus?: (NotificationCenter.NotificationReadStatus|null); - /** The UID of the record this sharing state relates to. */ - recordUid?: (Uint8Array|null); + /** NotificationContent approvalStatus. */ + public approvalStatus?: (NotificationCenter.NotificationApprovalStatus|null); - /** True if the record is directly shared with non-owner actors. */ - isDirectlyShared?: (boolean|null); + /** NotificationContent trimmingPoint. */ + public trimmingPoint?: (boolean|null); - /** True if the record is indirectly shared via folder access with non-owner actors. */ - isIndirectlyShared?: (boolean|null); + /** NotificationContent clientTypeIDs. */ + public clientTypeIDs: number[]; - /** Synthetic convenience property: {@code isDirectlyShared || isIndirectlyShared}. */ - isShared?: (boolean|null); - } + /** NotificationContent deviceIDs. */ + public deviceIDs: number[]; - /** - * Represents the sharing state of a single record. - * - *

This message captures whether a record is shared either directly (via explicit grants) - * or indirectly (via folder access). It includes a computed convenience field - * {@code isShared}, which is true if the record is shared through either mechanism. - * - *

This message is typically stored in a DAG edge and used by clients during sync - */ - class RecordSharingState implements IRecordSharingState { + /** NotificationContent type. */ + public type?: ("notification"|"readStatus"|"approvalStatus"|"trimmingPoint"); - /** - * Constructs a new RecordSharingState. - * @param [properties] Properties to set - */ - constructor(properties?: record.v3.sharing.IRecordSharingState); + /** + * Creates a new NotificationContent instance using the specified properties. + * @param [properties] Properties to set + * @returns NotificationContent instance + */ + public static create(properties?: NotificationCenter.INotificationContent): NotificationCenter.NotificationContent; - /** The UID of the record this sharing state relates to. */ - public recordUid: Uint8Array; + /** + * Encodes the specified NotificationContent message. Does not implicitly {@link NotificationCenter.NotificationContent.verify|verify} messages. + * @param message NotificationContent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: NotificationCenter.INotificationContent, writer?: $protobuf.Writer): $protobuf.Writer; - /** True if the record is directly shared with non-owner actors. */ - public isDirectlyShared: boolean; + /** + * Decodes a NotificationContent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NotificationContent + * @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): NotificationCenter.NotificationContent; - /** True if the record is indirectly shared via folder access with non-owner actors. */ - public isIndirectlyShared: boolean; + /** + * Creates a NotificationContent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NotificationContent + */ + public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationContent; - /** Synthetic convenience property: {@code isDirectlyShared || isIndirectlyShared}. */ - public isShared: boolean; + /** + * Creates a plain object from a NotificationContent message. Also converts values to other types if specified. + * @param message NotificationContent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: NotificationCenter.NotificationContent, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a new RecordSharingState instance using the specified properties. - * @param [properties] Properties to set - * @returns RecordSharingState instance - */ - public static create(properties?: record.v3.sharing.IRecordSharingState): record.v3.sharing.RecordSharingState; + /** + * Converts this NotificationContent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified RecordSharingState message. Does not implicitly {@link record.v3.sharing.RecordSharingState.verify|verify} messages. - * @param message RecordSharingState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: record.v3.sharing.IRecordSharingState, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for NotificationContent + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a RecordSharingState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RecordSharingState - * @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): record.v3.sharing.RecordSharingState; + /** Properties of a NotificationWrapper. */ + interface INotificationWrapper { - /** - * Creates a RecordSharingState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RecordSharingState - */ - public static fromObject(object: { [k: string]: any }): record.v3.sharing.RecordSharingState; + /** NotificationWrapper uid */ + uid?: (Uint8Array|null); - /** - * Creates a plain object from a RecordSharingState message. Also converts values to other types if specified. - * @param message RecordSharingState - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: record.v3.sharing.RecordSharingState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** NotificationWrapper content */ + content?: (NotificationCenter.INotificationContent|null); - /** - * Converts this RecordSharingState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** NotificationWrapper timestamp */ + timestamp?: (number|null); + } - /** - * Gets the default type url for RecordSharingState - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** Represents a NotificationWrapper. */ + class NotificationWrapper implements INotificationWrapper { - /** Properties of a RecordsAddRequest. */ - interface IRecordsAddRequest { + /** + * Constructs a new NotificationWrapper. + * @param [properties] Properties to set + */ + constructor(properties?: NotificationCenter.INotificationWrapper); - /** RecordsAddRequest records */ - records?: (record.v3.IRecordAdd[]|null); + /** NotificationWrapper uid. */ + public uid: Uint8Array; - /** RecordsAddRequest clientTime */ - clientTime?: (number|null); + /** NotificationWrapper content. */ + public content?: (NotificationCenter.INotificationContent|null); - /** RecordsAddRequest securityDataKeyType */ - securityDataKeyType?: (Records.RecordKeyType|null); - } + /** NotificationWrapper timestamp. */ + public timestamp: number; - /** Represents a RecordsAddRequest. */ - class RecordsAddRequest implements IRecordsAddRequest { + /** + * Creates a new NotificationWrapper instance using the specified properties. + * @param [properties] Properties to set + * @returns NotificationWrapper instance + */ + public static create(properties?: NotificationCenter.INotificationWrapper): NotificationCenter.NotificationWrapper; - /** - * Constructs a new RecordsAddRequest. - * @param [properties] Properties to set - */ - constructor(properties?: record.v3.IRecordsAddRequest); + /** + * Encodes the specified NotificationWrapper message. Does not implicitly {@link NotificationCenter.NotificationWrapper.verify|verify} messages. + * @param message NotificationWrapper message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: NotificationCenter.INotificationWrapper, writer?: $protobuf.Writer): $protobuf.Writer; - /** RecordsAddRequest records. */ - public records: record.v3.IRecordAdd[]; + /** + * Decodes a NotificationWrapper message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NotificationWrapper + * @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): NotificationCenter.NotificationWrapper; - /** RecordsAddRequest clientTime. */ - public clientTime: number; + /** + * Creates a NotificationWrapper message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NotificationWrapper + */ + public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationWrapper; - /** RecordsAddRequest securityDataKeyType. */ - public securityDataKeyType: Records.RecordKeyType; + /** + * Creates a plain object from a NotificationWrapper message. Also converts values to other types if specified. + * @param message NotificationWrapper + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: NotificationCenter.NotificationWrapper, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a new RecordsAddRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RecordsAddRequest instance - */ - public static create(properties?: record.v3.IRecordsAddRequest): record.v3.RecordsAddRequest; + /** + * Converts this NotificationWrapper to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified RecordsAddRequest message. Does not implicitly {@link record.v3.RecordsAddRequest.verify|verify} messages. - * @param message RecordsAddRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: record.v3.IRecordsAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for NotificationWrapper + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a RecordsAddRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RecordsAddRequest - * @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): record.v3.RecordsAddRequest; + /** Properties of a NotificationSync. */ + interface INotificationSync { - /** - * Creates a RecordsAddRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RecordsAddRequest - */ - public static fromObject(object: { [k: string]: any }): record.v3.RecordsAddRequest; + /** NotificationSync data */ + data?: (NotificationCenter.INotificationWrapper[]|null); - /** - * Creates a plain object from a RecordsAddRequest message. Also converts values to other types if specified. - * @param message RecordsAddRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: record.v3.RecordsAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** NotificationSync syncPoint */ + syncPoint?: (number|null); - /** - * Converts this RecordsAddRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** NotificationSync hasMore */ + hasMore?: (boolean|null); + } - /** - * Gets the default type url for RecordsAddRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Represents a NotificationSync. */ + class NotificationSync implements INotificationSync { - /** Properties of a RecordAdd. */ - interface IRecordAdd { + /** + * Constructs a new NotificationSync. + * @param [properties] Properties to set + */ + constructor(properties?: NotificationCenter.INotificationSync); - /** RecordAdd recordUid */ - recordUid?: (Uint8Array|null); + /** NotificationSync data. */ + public data: NotificationCenter.INotificationWrapper[]; - /** RecordAdd recordKey */ - recordKey?: (Uint8Array|null); + /** NotificationSync syncPoint. */ + public syncPoint: number; - /** RecordAdd recordKeyType */ - recordKeyType?: (Folder.EncryptedKeyType|null); + /** NotificationSync hasMore. */ + public hasMore: boolean; - /** - * Record creates in root folder is encrypted by user key. - * Record creates in non-root folder is encrypted by folder key. - */ - recordKeyEncryptedBy?: (Folder.FolderKeyEncryptionType|null); + /** + * Creates a new NotificationSync instance using the specified properties. + * @param [properties] Properties to set + * @returns NotificationSync instance + */ + public static create(properties?: NotificationCenter.INotificationSync): NotificationCenter.NotificationSync; - /** RecordAdd clientModifiedTime */ - clientModifiedTime?: (number|null); + /** + * Encodes the specified NotificationSync message. Does not implicitly {@link NotificationCenter.NotificationSync.verify|verify} messages. + * @param message NotificationSync message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: NotificationCenter.INotificationSync, writer?: $protobuf.Writer): $protobuf.Writer; - /** RecordAdd data */ - data?: (Uint8Array|null); + /** + * Decodes a NotificationSync message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NotificationSync + * @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): NotificationCenter.NotificationSync; - /** RecordAdd nonSharedData */ - nonSharedData?: (Uint8Array|null); + /** + * Creates a NotificationSync message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NotificationSync + */ + public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationSync; - /** RecordAdd folderUid */ - folderUid?: (Uint8Array|null); + /** + * Creates a plain object from a NotificationSync message. Also converts values to other types if specified. + * @param message NotificationSync + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: NotificationCenter.NotificationSync, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** RecordAdd recordLinks */ - recordLinks?: (Records.IRecordLink[]|null); + /** + * Converts this NotificationSync to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** RecordAdd audit */ - audit?: (Records.IRecordAudit|null); + /** + * Gets the default type url for NotificationSync + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** RecordAdd securityData */ - securityData?: (Records.ISecurityData|null); + /** Properties of a ReadStatusUpdate. */ + interface IReadStatusUpdate { - /** RecordAdd securityScoreData */ - securityScoreData?: (Records.ISecurityScoreData|null); - } + /** ReadStatusUpdate notificationUid */ + notificationUid?: (Uint8Array|null); - /** Represents a RecordAdd. */ - class RecordAdd implements IRecordAdd { + /** ReadStatusUpdate status */ + status?: (NotificationCenter.NotificationReadStatus|null); + } - /** - * Constructs a new RecordAdd. - * @param [properties] Properties to set - */ - constructor(properties?: record.v3.IRecordAdd); + /** Represents a ReadStatusUpdate. */ + class ReadStatusUpdate implements IReadStatusUpdate { - /** RecordAdd recordUid. */ - public recordUid: Uint8Array; + /** + * Constructs a new ReadStatusUpdate. + * @param [properties] Properties to set + */ + constructor(properties?: NotificationCenter.IReadStatusUpdate); - /** RecordAdd recordKey. */ - public recordKey: Uint8Array; + /** ReadStatusUpdate notificationUid. */ + public notificationUid: Uint8Array; - /** RecordAdd recordKeyType. */ - public recordKeyType: Folder.EncryptedKeyType; + /** ReadStatusUpdate status. */ + public status: NotificationCenter.NotificationReadStatus; - /** - * Record creates in root folder is encrypted by user key. - * Record creates in non-root folder is encrypted by folder key. - */ - public recordKeyEncryptedBy: Folder.FolderKeyEncryptionType; + /** + * Creates a new ReadStatusUpdate instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadStatusUpdate instance + */ + public static create(properties?: NotificationCenter.IReadStatusUpdate): NotificationCenter.ReadStatusUpdate; - /** RecordAdd clientModifiedTime. */ - public clientModifiedTime: number; + /** + * Encodes the specified ReadStatusUpdate message. Does not implicitly {@link NotificationCenter.ReadStatusUpdate.verify|verify} messages. + * @param message ReadStatusUpdate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: NotificationCenter.IReadStatusUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - /** RecordAdd data. */ - public data: Uint8Array; + /** + * Decodes a ReadStatusUpdate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadStatusUpdate + * @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): NotificationCenter.ReadStatusUpdate; - /** RecordAdd nonSharedData. */ - public nonSharedData: Uint8Array; + /** + * Creates a ReadStatusUpdate message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadStatusUpdate + */ + public static fromObject(object: { [k: string]: any }): NotificationCenter.ReadStatusUpdate; - /** RecordAdd folderUid. */ - public folderUid: Uint8Array; + /** + * Creates a plain object from a ReadStatusUpdate message. Also converts values to other types if specified. + * @param message ReadStatusUpdate + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: NotificationCenter.ReadStatusUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** RecordAdd recordLinks. */ - public recordLinks: Records.IRecordLink[]; + /** + * Converts this ReadStatusUpdate to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** RecordAdd audit. */ - public audit?: (Records.IRecordAudit|null); + /** + * Gets the default type url for ReadStatusUpdate + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** RecordAdd securityData. */ - public securityData?: (Records.ISecurityData|null); + /** Properties of an ApprovalStatusUpdate. */ + interface IApprovalStatusUpdate { - /** RecordAdd securityScoreData. */ - public securityScoreData?: (Records.ISecurityScoreData|null); + /** ApprovalStatusUpdate notificationUid */ + notificationUid?: (Uint8Array|null); + + /** ApprovalStatusUpdate status */ + status?: (NotificationCenter.NotificationApprovalStatus|null); + } - /** - * Creates a new RecordAdd instance using the specified properties. - * @param [properties] Properties to set - * @returns RecordAdd instance - */ - public static create(properties?: record.v3.IRecordAdd): record.v3.RecordAdd; + /** Represents an ApprovalStatusUpdate. */ + class ApprovalStatusUpdate implements IApprovalStatusUpdate { - /** - * Encodes the specified RecordAdd message. Does not implicitly {@link record.v3.RecordAdd.verify|verify} messages. - * @param message RecordAdd message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: record.v3.IRecordAdd, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new ApprovalStatusUpdate. + * @param [properties] Properties to set + */ + constructor(properties?: NotificationCenter.IApprovalStatusUpdate); - /** - * Decodes a RecordAdd message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RecordAdd - * @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): record.v3.RecordAdd; + /** ApprovalStatusUpdate notificationUid. */ + public notificationUid: Uint8Array; - /** - * Creates a RecordAdd message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RecordAdd - */ - public static fromObject(object: { [k: string]: any }): record.v3.RecordAdd; + /** ApprovalStatusUpdate status. */ + public status: NotificationCenter.NotificationApprovalStatus; - /** - * Creates a plain object from a RecordAdd message. Also converts values to other types if specified. - * @param message RecordAdd - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: record.v3.RecordAdd, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new ApprovalStatusUpdate instance using the specified properties. + * @param [properties] Properties to set + * @returns ApprovalStatusUpdate instance + */ + public static create(properties?: NotificationCenter.IApprovalStatusUpdate): NotificationCenter.ApprovalStatusUpdate; - /** - * Converts this RecordAdd to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified ApprovalStatusUpdate message. Does not implicitly {@link NotificationCenter.ApprovalStatusUpdate.verify|verify} messages. + * @param message ApprovalStatusUpdate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: NotificationCenter.IApprovalStatusUpdate, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for RecordAdd - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } -} + /** + * Decodes an ApprovalStatusUpdate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApprovalStatusUpdate + * @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): NotificationCenter.ApprovalStatusUpdate; -/** Namespace Upsell. */ -export namespace Upsell { + /** + * Creates an ApprovalStatusUpdate message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ApprovalStatusUpdate + */ + public static fromObject(object: { [k: string]: any }): NotificationCenter.ApprovalStatusUpdate; - /** Properties of an UpsellRequest. */ - interface IUpsellRequest { + /** + * Creates a plain object from an ApprovalStatusUpdate message. Also converts values to other types if specified. + * @param message ApprovalStatusUpdate + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: NotificationCenter.ApprovalStatusUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** UpsellRequest email */ - email?: (string|null); + /** + * Converts this ApprovalStatusUpdate to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** UpsellRequest locale */ - locale?: (string|null); + /** + * Gets the default type url for ApprovalStatusUpdate + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** UpsellRequest clientVersion */ - clientVersion?: (string|null); + /** Properties of a ProcessMarkReadEventsRequest. */ + interface IProcessMarkReadEventsRequest { - /** UpsellRequest sessionToken */ - sessionToken?: (string|null); + /** ProcessMarkReadEventsRequest readStatusUpdate */ + readStatusUpdate?: (NotificationCenter.IReadStatusUpdate[]|null); } - /** Represents an UpsellRequest. */ - class UpsellRequest implements IUpsellRequest { + /** Represents a ProcessMarkReadEventsRequest. */ + class ProcessMarkReadEventsRequest implements IProcessMarkReadEventsRequest { /** - * Constructs a new UpsellRequest. + * Constructs a new ProcessMarkReadEventsRequest. * @param [properties] Properties to set */ - constructor(properties?: Upsell.IUpsellRequest); - - /** UpsellRequest email. */ - public email: string; - - /** UpsellRequest locale. */ - public locale: string; - - /** UpsellRequest clientVersion. */ - public clientVersion: string; + constructor(properties?: NotificationCenter.IProcessMarkReadEventsRequest); - /** UpsellRequest sessionToken. */ - public sessionToken: string; + /** ProcessMarkReadEventsRequest readStatusUpdate. */ + public readStatusUpdate: NotificationCenter.IReadStatusUpdate[]; /** - * Creates a new UpsellRequest instance using the specified properties. + * Creates a new ProcessMarkReadEventsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpsellRequest instance + * @returns ProcessMarkReadEventsRequest instance */ - public static create(properties?: Upsell.IUpsellRequest): Upsell.UpsellRequest; + public static create(properties?: NotificationCenter.IProcessMarkReadEventsRequest): NotificationCenter.ProcessMarkReadEventsRequest; /** - * Encodes the specified UpsellRequest message. Does not implicitly {@link Upsell.UpsellRequest.verify|verify} messages. - * @param message UpsellRequest message or plain object to encode + * Encodes the specified ProcessMarkReadEventsRequest message. Does not implicitly {@link NotificationCenter.ProcessMarkReadEventsRequest.verify|verify} messages. + * @param message ProcessMarkReadEventsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Upsell.IUpsellRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.IProcessMarkReadEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpsellRequest message from the specified reader or buffer. + * Decodes a ProcessMarkReadEventsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpsellRequest + * @returns ProcessMarkReadEventsRequest * @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): Upsell.UpsellRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.ProcessMarkReadEventsRequest; /** - * Creates an UpsellRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ProcessMarkReadEventsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpsellRequest + * @returns ProcessMarkReadEventsRequest */ - public static fromObject(object: { [k: string]: any }): Upsell.UpsellRequest; + public static fromObject(object: { [k: string]: any }): NotificationCenter.ProcessMarkReadEventsRequest; /** - * Creates a plain object from an UpsellRequest message. Also converts values to other types if specified. - * @param message UpsellRequest + * Creates a plain object from a ProcessMarkReadEventsRequest message. Also converts values to other types if specified. + * @param message ProcessMarkReadEventsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Upsell.UpsellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.ProcessMarkReadEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpsellRequest to JSON. + * Converts this ProcessMarkReadEventsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpsellRequest + * Gets the default type url for ProcessMarkReadEventsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpsellResponse. */ - interface IUpsellResponse { + /** Properties of a NotificationSendRequest. */ + interface INotificationSendRequest { - /** UpsellResponse UpsellBanner */ - UpsellBanner?: (Upsell.IUpsellBanner[]|null); + /** NotificationSendRequest recipients */ + recipients?: (GraphSync.IGraphSyncRef[]|null); + + /** NotificationSendRequest notification */ + notification?: (NotificationCenter.INotification|null); + + /** NotificationSendRequest clientTypeIDs */ + clientTypeIDs?: (number[]|null); + + /** NotificationSendRequest deviceIDs */ + deviceIDs?: (number[]|null); + + /** NotificationSendRequest predefinedUid */ + predefinedUid?: (Uint8Array|null); } - /** Represents an UpsellResponse. */ - class UpsellResponse implements IUpsellResponse { + /** Represents a NotificationSendRequest. */ + class NotificationSendRequest implements INotificationSendRequest { /** - * Constructs a new UpsellResponse. + * Constructs a new NotificationSendRequest. * @param [properties] Properties to set */ - constructor(properties?: Upsell.IUpsellResponse); + constructor(properties?: NotificationCenter.INotificationSendRequest); - /** UpsellResponse UpsellBanner. */ - public UpsellBanner: Upsell.IUpsellBanner[]; + /** NotificationSendRequest recipients. */ + public recipients: GraphSync.IGraphSyncRef[]; + + /** NotificationSendRequest notification. */ + public notification?: (NotificationCenter.INotification|null); + + /** NotificationSendRequest clientTypeIDs. */ + public clientTypeIDs: number[]; + + /** NotificationSendRequest deviceIDs. */ + public deviceIDs: number[]; + + /** NotificationSendRequest predefinedUid. */ + public predefinedUid?: (Uint8Array|null); /** - * Creates a new UpsellResponse instance using the specified properties. + * Creates a new NotificationSendRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpsellResponse instance + * @returns NotificationSendRequest instance */ - public static create(properties?: Upsell.IUpsellResponse): Upsell.UpsellResponse; + public static create(properties?: NotificationCenter.INotificationSendRequest): NotificationCenter.NotificationSendRequest; /** - * Encodes the specified UpsellResponse message. Does not implicitly {@link Upsell.UpsellResponse.verify|verify} messages. - * @param message UpsellResponse message or plain object to encode + * Encodes the specified NotificationSendRequest message. Does not implicitly {@link NotificationCenter.NotificationSendRequest.verify|verify} messages. + * @param message NotificationSendRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Upsell.IUpsellResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.INotificationSendRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpsellResponse message from the specified reader or buffer. + * Decodes a NotificationSendRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpsellResponse + * @returns NotificationSendRequest * @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): Upsell.UpsellResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationSendRequest; /** - * Creates an UpsellResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NotificationSendRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpsellResponse + * @returns NotificationSendRequest */ - public static fromObject(object: { [k: string]: any }): Upsell.UpsellResponse; + public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationSendRequest; /** - * Creates a plain object from an UpsellResponse message. Also converts values to other types if specified. - * @param message UpsellResponse + * Creates a plain object from a NotificationSendRequest message. Also converts values to other types if specified. + * @param message NotificationSendRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Upsell.UpsellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.NotificationSendRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpsellResponse to JSON. + * Converts this NotificationSendRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpsellResponse + * Gets the default type url for NotificationSendRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpsellBanner. */ - interface IUpsellBanner { - - /** UpsellBanner bannerId */ - bannerId?: (number|null); - - /** UpsellBanner bannerOkAction */ - bannerOkAction?: (string|null); - - /** UpsellBanner bannerOkButton */ - bannerOkButton?: (string|null); - - /** UpsellBanner bannerCancelAction */ - bannerCancelAction?: (string|null); - - /** UpsellBanner bannerCancelButton */ - bannerCancelButton?: (string|null); - - /** UpsellBanner bannerMessage */ - bannerMessage?: (string|null); + /** Properties of a NotificationsSendRequest. */ + interface INotificationsSendRequest { - /** UpsellBanner locale */ - locale?: (string|null); + /** NotificationsSendRequest notifications */ + notifications?: (NotificationCenter.INotificationSendRequest[]|null); } - /** Represents an UpsellBanner. */ - class UpsellBanner implements IUpsellBanner { + /** Represents a NotificationsSendRequest. */ + class NotificationsSendRequest implements INotificationsSendRequest { /** - * Constructs a new UpsellBanner. + * Constructs a new NotificationsSendRequest. * @param [properties] Properties to set */ - constructor(properties?: Upsell.IUpsellBanner); - - /** UpsellBanner bannerId. */ - public bannerId: number; - - /** UpsellBanner bannerOkAction. */ - public bannerOkAction: string; - - /** UpsellBanner bannerOkButton. */ - public bannerOkButton: string; - - /** UpsellBanner bannerCancelAction. */ - public bannerCancelAction: string; - - /** UpsellBanner bannerCancelButton. */ - public bannerCancelButton: string; - - /** UpsellBanner bannerMessage. */ - public bannerMessage: string; + constructor(properties?: NotificationCenter.INotificationsSendRequest); - /** UpsellBanner locale. */ - public locale: string; + /** NotificationsSendRequest notifications. */ + public notifications: NotificationCenter.INotificationSendRequest[]; /** - * Creates a new UpsellBanner instance using the specified properties. + * Creates a new NotificationsSendRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpsellBanner instance + * @returns NotificationsSendRequest instance */ - public static create(properties?: Upsell.IUpsellBanner): Upsell.UpsellBanner; + public static create(properties?: NotificationCenter.INotificationsSendRequest): NotificationCenter.NotificationsSendRequest; /** - * Encodes the specified UpsellBanner message. Does not implicitly {@link Upsell.UpsellBanner.verify|verify} messages. - * @param message UpsellBanner message or plain object to encode + * Encodes the specified NotificationsSendRequest message. Does not implicitly {@link NotificationCenter.NotificationsSendRequest.verify|verify} messages. + * @param message NotificationsSendRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Upsell.IUpsellBanner, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.INotificationsSendRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpsellBanner message from the specified reader or buffer. + * Decodes a NotificationsSendRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpsellBanner + * @returns NotificationsSendRequest * @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): Upsell.UpsellBanner; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationsSendRequest; /** - * Creates an UpsellBanner message from a plain object. Also converts values to their respective internal types. + * Creates a NotificationsSendRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpsellBanner + * @returns NotificationsSendRequest */ - public static fromObject(object: { [k: string]: any }): Upsell.UpsellBanner; + public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationsSendRequest; /** - * Creates a plain object from an UpsellBanner message. Also converts values to other types if specified. - * @param message UpsellBanner + * Creates a plain object from a NotificationsSendRequest message. Also converts values to other types if specified. + * @param message NotificationsSendRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Upsell.UpsellBanner, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.NotificationsSendRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpsellBanner to JSON. + * Converts this NotificationsSendRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpsellBanner + * Gets the default type url for NotificationsSendRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** ClientType enum. */ - enum ClientType { - DEFAULT_CLIENT_TYPE = 0, - ALL = 1, - ANDROID = 2, - IOS = 3, - MICROSOFT = 4, - WEBAPP = 5 - } - - /** ClientVersion enum. */ - enum ClientVersion { - DEFAULT_VERSION = 0, - SUPPORTS_ALL = 1, - BASEVERSION = 14, - ABOVERANGE = 15 - } -} - -/** Namespace BI. */ -export namespace BI { - - /** Currency enum. */ - enum Currency { - UNKNOWN = 0, - USD = 1, - GBP = 2, - JPY = 3, - EUR = 4, - AUD = 5, - CAD = 6 - } - - /** Properties of a ValidateSessionTokenRequest. */ - interface IValidateSessionTokenRequest { - - /** ValidateSessionTokenRequest encryptedSessionToken */ - encryptedSessionToken?: (Uint8Array|null); - - /** ValidateSessionTokenRequest returnMcEnterpiseIds */ - returnMcEnterpiseIds?: (boolean|null); + /** Properties of a NotificationSyncRequest. */ + interface INotificationSyncRequest { - /** ValidateSessionTokenRequest ip */ - ip?: (string|null); + /** NotificationSyncRequest syncPoint */ + syncPoint?: (number|null); } - /** Represents a ValidateSessionTokenRequest. */ - class ValidateSessionTokenRequest implements IValidateSessionTokenRequest { + /** Represents a NotificationSyncRequest. */ + class NotificationSyncRequest implements INotificationSyncRequest { /** - * Constructs a new ValidateSessionTokenRequest. + * Constructs a new NotificationSyncRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IValidateSessionTokenRequest); - - /** ValidateSessionTokenRequest encryptedSessionToken. */ - public encryptedSessionToken: Uint8Array; - - /** ValidateSessionTokenRequest returnMcEnterpiseIds. */ - public returnMcEnterpiseIds: boolean; + constructor(properties?: NotificationCenter.INotificationSyncRequest); - /** ValidateSessionTokenRequest ip. */ - public ip: string; + /** NotificationSyncRequest syncPoint. */ + public syncPoint: number; /** - * Creates a new ValidateSessionTokenRequest instance using the specified properties. + * Creates a new NotificationSyncRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateSessionTokenRequest instance + * @returns NotificationSyncRequest instance */ - public static create(properties?: BI.IValidateSessionTokenRequest): BI.ValidateSessionTokenRequest; + public static create(properties?: NotificationCenter.INotificationSyncRequest): NotificationCenter.NotificationSyncRequest; /** - * Encodes the specified ValidateSessionTokenRequest message. Does not implicitly {@link BI.ValidateSessionTokenRequest.verify|verify} messages. - * @param message ValidateSessionTokenRequest message or plain object to encode + * Encodes the specified NotificationSyncRequest message. Does not implicitly {@link NotificationCenter.NotificationSyncRequest.verify|verify} messages. + * @param message NotificationSyncRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IValidateSessionTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.INotificationSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateSessionTokenRequest message from the specified reader or buffer. + * Decodes a NotificationSyncRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateSessionTokenRequest + * @returns NotificationSyncRequest * @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.ValidateSessionTokenRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationSyncRequest; /** - * Creates a ValidateSessionTokenRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NotificationSyncRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateSessionTokenRequest + * @returns NotificationSyncRequest */ - public static fromObject(object: { [k: string]: any }): BI.ValidateSessionTokenRequest; + public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationSyncRequest; /** - * Creates a plain object from a ValidateSessionTokenRequest message. Also converts values to other types if specified. - * @param message ValidateSessionTokenRequest + * Creates a plain object from a NotificationSyncRequest message. Also converts values to other types if specified. + * @param message NotificationSyncRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.ValidateSessionTokenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.NotificationSyncRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateSessionTokenRequest to JSON. + * Converts this NotificationSyncRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateSessionTokenRequest + * Gets the default type url for NotificationSyncRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ValidateSessionTokenResponse. */ - interface IValidateSessionTokenResponse { - - /** ValidateSessionTokenResponse username */ - username?: (string|null); - - /** ValidateSessionTokenResponse userId */ - userId?: (number|null); - - /** ValidateSessionTokenResponse enterpriseUserId */ - enterpriseUserId?: (number|null); - - /** ValidateSessionTokenResponse status */ - status?: (BI.ValidateSessionTokenResponse.Status|null); - - /** ValidateSessionTokenResponse statusMessage */ - statusMessage?: (string|null); - - /** ValidateSessionTokenResponse mcEnterpriseIds */ - mcEnterpriseIds?: (number[]|null); + /** Properties of a SentNotification. */ + interface ISentNotification { - /** ValidateSessionTokenResponse hasMSPPermission */ - hasMSPPermission?: (boolean|null); + /** SentNotification user */ + user?: (number|null); - /** ValidateSessionTokenResponse deletedMcEnterpriseIds */ - deletedMcEnterpriseIds?: (number[]|null); + /** SentNotification notificationUid */ + notificationUid?: (Uint8Array|null); } - /** Represents a ValidateSessionTokenResponse. */ - class ValidateSessionTokenResponse implements IValidateSessionTokenResponse { + /** Represents a SentNotification. */ + class SentNotification implements ISentNotification { /** - * Constructs a new ValidateSessionTokenResponse. + * Constructs a new SentNotification. * @param [properties] Properties to set */ - constructor(properties?: BI.IValidateSessionTokenResponse); - - /** ValidateSessionTokenResponse username. */ - public username: string; - - /** ValidateSessionTokenResponse userId. */ - public userId: number; - - /** ValidateSessionTokenResponse enterpriseUserId. */ - public enterpriseUserId: number; - - /** ValidateSessionTokenResponse status. */ - public status: BI.ValidateSessionTokenResponse.Status; - - /** ValidateSessionTokenResponse statusMessage. */ - public statusMessage: string; - - /** ValidateSessionTokenResponse mcEnterpriseIds. */ - public mcEnterpriseIds: number[]; + constructor(properties?: NotificationCenter.ISentNotification); - /** ValidateSessionTokenResponse hasMSPPermission. */ - public hasMSPPermission: boolean; + /** SentNotification user. */ + public user: number; - /** ValidateSessionTokenResponse deletedMcEnterpriseIds. */ - public deletedMcEnterpriseIds: number[]; + /** SentNotification notificationUid. */ + public notificationUid: Uint8Array; /** - * Creates a new ValidateSessionTokenResponse instance using the specified properties. + * Creates a new SentNotification instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateSessionTokenResponse instance + * @returns SentNotification instance */ - public static create(properties?: BI.IValidateSessionTokenResponse): BI.ValidateSessionTokenResponse; + public static create(properties?: NotificationCenter.ISentNotification): NotificationCenter.SentNotification; /** - * Encodes the specified ValidateSessionTokenResponse message. Does not implicitly {@link BI.ValidateSessionTokenResponse.verify|verify} messages. - * @param message ValidateSessionTokenResponse message or plain object to encode + * Encodes the specified SentNotification message. Does not implicitly {@link NotificationCenter.SentNotification.verify|verify} messages. + * @param message SentNotification message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IValidateSessionTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.ISentNotification, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateSessionTokenResponse message from the specified reader or buffer. + * Decodes a SentNotification message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateSessionTokenResponse + * @returns SentNotification * @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.ValidateSessionTokenResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.SentNotification; /** - * Creates a ValidateSessionTokenResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SentNotification message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateSessionTokenResponse + * @returns SentNotification */ - public static fromObject(object: { [k: string]: any }): BI.ValidateSessionTokenResponse; + public static fromObject(object: { [k: string]: any }): NotificationCenter.SentNotification; /** - * Creates a plain object from a ValidateSessionTokenResponse message. Also converts values to other types if specified. - * @param message ValidateSessionTokenResponse + * Creates a plain object from a SentNotification message. Also converts values to other types if specified. + * @param message SentNotification * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.ValidateSessionTokenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.SentNotification, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateSessionTokenResponse to JSON. + * Converts this SentNotification to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateSessionTokenResponse + * Gets the default type url for SentNotification * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ValidateSessionTokenResponse { + /** Properties of a NotificationsApprovalStatusUpdateRequest. */ + interface INotificationsApprovalStatusUpdateRequest { - /** Status enum. */ - enum Status { - VALID = 0, - NOT_VALID = 1, - EXPIRED = 2, - IP_BLOCKED = 3, - INVALID_CLIENT_VERSION = 4 - } - } + /** NotificationsApprovalStatusUpdateRequest status */ + status?: (NotificationCenter.NotificationApprovalStatus|null); - /** Properties of a SubscriptionStatusRequest. */ - interface ISubscriptionStatusRequest { + /** NotificationsApprovalStatusUpdateRequest notifications */ + notifications?: (NotificationCenter.ISentNotification[]|null); } - /** Represents a SubscriptionStatusRequest. */ - class SubscriptionStatusRequest implements ISubscriptionStatusRequest { + /** Represents a NotificationsApprovalStatusUpdateRequest. */ + class NotificationsApprovalStatusUpdateRequest implements INotificationsApprovalStatusUpdateRequest { /** - * Constructs a new SubscriptionStatusRequest. + * Constructs a new NotificationsApprovalStatusUpdateRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.ISubscriptionStatusRequest); + constructor(properties?: NotificationCenter.INotificationsApprovalStatusUpdateRequest); + + /** NotificationsApprovalStatusUpdateRequest status. */ + public status: NotificationCenter.NotificationApprovalStatus; + + /** NotificationsApprovalStatusUpdateRequest notifications. */ + public notifications: NotificationCenter.ISentNotification[]; /** - * Creates a new SubscriptionStatusRequest instance using the specified properties. + * Creates a new NotificationsApprovalStatusUpdateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SubscriptionStatusRequest instance + * @returns NotificationsApprovalStatusUpdateRequest instance */ - public static create(properties?: BI.ISubscriptionStatusRequest): BI.SubscriptionStatusRequest; + public static create(properties?: NotificationCenter.INotificationsApprovalStatusUpdateRequest): NotificationCenter.NotificationsApprovalStatusUpdateRequest; /** - * Encodes the specified SubscriptionStatusRequest message. Does not implicitly {@link BI.SubscriptionStatusRequest.verify|verify} messages. - * @param message SubscriptionStatusRequest message or plain object to encode + * Encodes the specified NotificationsApprovalStatusUpdateRequest message. Does not implicitly {@link NotificationCenter.NotificationsApprovalStatusUpdateRequest.verify|verify} messages. + * @param message NotificationsApprovalStatusUpdateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.ISubscriptionStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: NotificationCenter.INotificationsApprovalStatusUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SubscriptionStatusRequest message from the specified reader or buffer. + * Decodes a NotificationsApprovalStatusUpdateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SubscriptionStatusRequest + * @returns NotificationsApprovalStatusUpdateRequest * @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.SubscriptionStatusRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NotificationCenter.NotificationsApprovalStatusUpdateRequest; /** - * Creates a SubscriptionStatusRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NotificationsApprovalStatusUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SubscriptionStatusRequest + * @returns NotificationsApprovalStatusUpdateRequest */ - public static fromObject(object: { [k: string]: any }): BI.SubscriptionStatusRequest; + public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationsApprovalStatusUpdateRequest; /** - * Creates a plain object from a SubscriptionStatusRequest message. Also converts values to other types if specified. - * @param message SubscriptionStatusRequest + * Creates a plain object from a NotificationsApprovalStatusUpdateRequest message. Also converts values to other types if specified. + * @param message NotificationsApprovalStatusUpdateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: NotificationCenter.NotificationsApprovalStatusUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SubscriptionStatusRequest to JSON. + * Converts this NotificationsApprovalStatusUpdateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SubscriptionStatusRequest + * Gets the default type url for NotificationsApprovalStatusUpdateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } +} - /** Properties of a SubscriptionStatusResponse. */ - interface ISubscriptionStatusResponse { - - /** SubscriptionStatusResponse autoRenewal */ - autoRenewal?: (BI.IAutoRenewal|null); - - /** SubscriptionStatusResponse currentPaymentMethod */ - currentPaymentMethod?: (BI.IPaymentMethod|null); - - /** SubscriptionStatusResponse checkoutLink */ - checkoutLink?: (string|null); - - /** SubscriptionStatusResponse licenseCreateDate */ - licenseCreateDate?: (number|null); - - /** SubscriptionStatusResponse isDistributor */ - isDistributor?: (boolean|null); - - /** SubscriptionStatusResponse isLegacyMsp */ - isLegacyMsp?: (boolean|null); - - /** SubscriptionStatusResponse licenseStats */ - licenseStats?: (BI.ILicenseStats[]|null); - - /** SubscriptionStatusResponse gradientStatus */ - gradientStatus?: (BI.GradientIntegrationStatus|null); - - /** SubscriptionStatusResponse hideTrialBanner */ - hideTrialBanner?: (boolean|null); - - /** SubscriptionStatusResponse gradientLastSyncDate */ - gradientLastSyncDate?: (string|null); +/** Namespace GraphSync. */ +export namespace GraphSync { - /** SubscriptionStatusResponse gradientNextSyncDate */ - gradientNextSyncDate?: (string|null); + /** RefType enum. */ + enum RefType { + RFT_GENERAL = 0, + RFT_USER = 1, + RFT_DEVICE = 2, + RFT_REC = 3, + RFT_FOLDER = 4, + RFT_TEAM = 5, + RFT_ENTERPRISE = 6, + RFT_PAM_DIRECTORY = 7, + RFT_PAM_MACHINE = 8, + RFT_PAM_DATABASE = 9, + RFT_PAM_USER = 10, + RFT_PAM_NETWORK = 11, + RFT_PAM_BROWSER = 12, + RFT_CONNECTION = 13, + RFT_WORKFLOW = 14, + RFT_NOTIFICATION = 15, + RFT_USER_INFO = 16, + RFT_TEAM_INFO = 17, + RFT_ROLE = 18 + } - /** SubscriptionStatusResponse isGradientMappingPending */ - isGradientMappingPending?: (boolean|null); + /** Properties of a GraphSyncRef. */ + interface IGraphSyncRef { - /** SubscriptionStatusResponse nhi */ - nhi?: (BI.INhiBilling|null); + /** GraphSyncRef type */ + type?: (GraphSync.RefType|null); - /** SubscriptionStatusResponse freeKsmApiCallsCount */ - freeKsmApiCallsCount?: (number|null); + /** GraphSyncRef value */ + value?: (Uint8Array|null); - /** SubscriptionStatusResponse ksm */ - ksm?: (BI.IKsmBilling|null); + /** GraphSyncRef name */ + name?: (string|null); } - /** Represents a SubscriptionStatusResponse. */ - class SubscriptionStatusResponse implements ISubscriptionStatusResponse { + /** Represents a GraphSyncRef. */ + class GraphSyncRef implements IGraphSyncRef { /** - * Constructs a new SubscriptionStatusResponse. + * Constructs a new GraphSyncRef. * @param [properties] Properties to set */ - constructor(properties?: BI.ISubscriptionStatusResponse); - - /** SubscriptionStatusResponse autoRenewal. */ - public autoRenewal?: (BI.IAutoRenewal|null); - - /** SubscriptionStatusResponse currentPaymentMethod. */ - public currentPaymentMethod?: (BI.IPaymentMethod|null); - - /** SubscriptionStatusResponse checkoutLink. */ - public checkoutLink: string; - - /** SubscriptionStatusResponse licenseCreateDate. */ - public licenseCreateDate: number; - - /** SubscriptionStatusResponse isDistributor. */ - public isDistributor: boolean; - - /** SubscriptionStatusResponse isLegacyMsp. */ - public isLegacyMsp: boolean; - - /** SubscriptionStatusResponse licenseStats. */ - public licenseStats: BI.ILicenseStats[]; - - /** SubscriptionStatusResponse gradientStatus. */ - public gradientStatus: BI.GradientIntegrationStatus; - - /** SubscriptionStatusResponse hideTrialBanner. */ - public hideTrialBanner: boolean; - - /** SubscriptionStatusResponse gradientLastSyncDate. */ - public gradientLastSyncDate: string; - - /** SubscriptionStatusResponse gradientNextSyncDate. */ - public gradientNextSyncDate: string; - - /** SubscriptionStatusResponse isGradientMappingPending. */ - public isGradientMappingPending: boolean; + constructor(properties?: GraphSync.IGraphSyncRef); - /** SubscriptionStatusResponse nhi. */ - public nhi?: (BI.INhiBilling|null); + /** GraphSyncRef type. */ + public type: GraphSync.RefType; - /** SubscriptionStatusResponse freeKsmApiCallsCount. */ - public freeKsmApiCallsCount: number; + /** GraphSyncRef value. */ + public value: Uint8Array; - /** SubscriptionStatusResponse ksm. */ - public ksm?: (BI.IKsmBilling|null); + /** GraphSyncRef name. */ + public name: string; /** - * Creates a new SubscriptionStatusResponse instance using the specified properties. + * Creates a new GraphSyncRef instance using the specified properties. * @param [properties] Properties to set - * @returns SubscriptionStatusResponse instance + * @returns GraphSyncRef instance */ - public static create(properties?: BI.ISubscriptionStatusResponse): BI.SubscriptionStatusResponse; + public static create(properties?: GraphSync.IGraphSyncRef): GraphSync.GraphSyncRef; /** - * Encodes the specified SubscriptionStatusResponse message. Does not implicitly {@link BI.SubscriptionStatusResponse.verify|verify} messages. - * @param message SubscriptionStatusResponse message or plain object to encode + * Encodes the specified GraphSyncRef message. Does not implicitly {@link GraphSync.GraphSyncRef.verify|verify} messages. + * @param message GraphSyncRef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.ISubscriptionStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncRef, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SubscriptionStatusResponse message from the specified reader or buffer. + * Decodes a GraphSyncRef message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SubscriptionStatusResponse + * @returns GraphSyncRef * @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.SubscriptionStatusResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncRef; /** - * Creates a SubscriptionStatusResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncRef message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SubscriptionStatusResponse + * @returns GraphSyncRef */ - public static fromObject(object: { [k: string]: any }): BI.SubscriptionStatusResponse; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncRef; - /** - * Creates a plain object from a SubscriptionStatusResponse message. Also converts values to other types if specified. - * @param message SubscriptionStatusResponse + /** + * Creates a plain object from a GraphSyncRef message. Also converts values to other types if specified. + * @param message GraphSyncRef * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SubscriptionStatusResponse to JSON. + * Converts this GraphSyncRef to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SubscriptionStatusResponse + * Gets the default type url for GraphSyncRef * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a KsmBilling. */ - interface IKsmBilling { + /** GraphSyncDataType enum. */ + enum GraphSyncDataType { + GSE_DATA = 0, + GSE_KEY = 1, + GSE_LINK = 2, + GSE_ACL = 3, + GSE_DELETION = 4 + } - /** KsmBilling billingStartTimestamp */ - billingStartTimestamp?: (number|null); + /** GraphSyncActorType enum. */ + enum GraphSyncActorType { + GSA_USER = 0, + GSA_SERVICE = 1, + GSA_PAM_GATEWAY = 2 + } - /** KsmBilling billingEndTimestamp */ - billingEndTimestamp?: (number|null); + /** Properties of a GraphSyncActor. */ + interface IGraphSyncActor { - /** KsmBilling currentTierId */ - currentTierId?: (number|null); + /** GraphSyncActor type */ + type?: (GraphSync.GraphSyncActorType|null); - /** KsmBilling enterpriseBlocks */ - enterpriseBlocks?: (number|null); + /** GraphSyncActor id */ + id?: (Uint8Array|null); - /** KsmBilling currentTierCeiling */ - currentTierCeiling?: (number|null); + /** GraphSyncActor name */ + name?: (string|null); + + /** GraphSyncActor effectiveUserId */ + effectiveUserId?: (Uint8Array|null); } - /** Represents a KsmBilling. */ - class KsmBilling implements IKsmBilling { + /** Represents a GraphSyncActor. */ + class GraphSyncActor implements IGraphSyncActor { /** - * Constructs a new KsmBilling. + * Constructs a new GraphSyncActor. * @param [properties] Properties to set */ - constructor(properties?: BI.IKsmBilling); - - /** KsmBilling billingStartTimestamp. */ - public billingStartTimestamp: number; + constructor(properties?: GraphSync.IGraphSyncActor); - /** KsmBilling billingEndTimestamp. */ - public billingEndTimestamp: number; + /** GraphSyncActor type. */ + public type: GraphSync.GraphSyncActorType; - /** KsmBilling currentTierId. */ - public currentTierId: number; + /** GraphSyncActor id. */ + public id: Uint8Array; - /** KsmBilling enterpriseBlocks. */ - public enterpriseBlocks: number; + /** GraphSyncActor name. */ + public name: string; - /** KsmBilling currentTierCeiling. */ - public currentTierCeiling: number; + /** GraphSyncActor effectiveUserId. */ + public effectiveUserId: Uint8Array; /** - * Creates a new KsmBilling instance using the specified properties. + * Creates a new GraphSyncActor instance using the specified properties. * @param [properties] Properties to set - * @returns KsmBilling instance + * @returns GraphSyncActor instance */ - public static create(properties?: BI.IKsmBilling): BI.KsmBilling; + public static create(properties?: GraphSync.IGraphSyncActor): GraphSync.GraphSyncActor; /** - * Encodes the specified KsmBilling message. Does not implicitly {@link BI.KsmBilling.verify|verify} messages. - * @param message KsmBilling message or plain object to encode + * Encodes the specified GraphSyncActor message. Does not implicitly {@link GraphSync.GraphSyncActor.verify|verify} messages. + * @param message GraphSyncActor message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IKsmBilling, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncActor, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a KsmBilling message from the specified reader or buffer. + * Decodes a GraphSyncActor message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns KsmBilling + * @returns GraphSyncActor * @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.KsmBilling; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncActor; /** - * Creates a KsmBilling message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncActor message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns KsmBilling + * @returns GraphSyncActor */ - public static fromObject(object: { [k: string]: any }): BI.KsmBilling; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncActor; /** - * Creates a plain object from a KsmBilling message. Also converts values to other types if specified. - * @param message KsmBilling + * Creates a plain object from a GraphSyncActor message. Also converts values to other types if specified. + * @param message GraphSyncActor * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.KsmBilling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncActor, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this KsmBilling to JSON. + * Converts this GraphSyncActor to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for KsmBilling + * Gets the default type url for GraphSyncActor * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NhiBilling. */ - interface INhiBilling { - - /** NhiBilling billingStartTimestamp */ - billingStartTimestamp?: (number|null); + /** Properties of a GraphSyncData. */ + interface IGraphSyncData { - /** NhiBilling billingEndTimestamp */ - billingEndTimestamp?: (number|null); + /** GraphSyncData type */ + type?: (GraphSync.GraphSyncDataType|null); - /** NhiBilling currentTierId */ - currentTierId?: (number|null); + /** GraphSyncData ref */ + ref?: (GraphSync.IGraphSyncRef|null); - /** NhiBilling enterpriseBlocks */ - enterpriseBlocks?: (number|null); + /** GraphSyncData parentRef */ + parentRef?: (GraphSync.IGraphSyncRef|null); - /** NhiBilling currentTierCeiling */ - currentTierCeiling?: (number|null); + /** GraphSyncData content */ + content?: (Uint8Array|null); - /** NhiBilling billingPeriods */ - billingPeriods?: (BI.INhiBillingPeriod[]|null); + /** GraphSyncData path */ + path?: (string|null); } - /** Represents a NhiBilling. */ - class NhiBilling implements INhiBilling { + /** Represents a GraphSyncData. */ + class GraphSyncData implements IGraphSyncData { /** - * Constructs a new NhiBilling. + * Constructs a new GraphSyncData. * @param [properties] Properties to set */ - constructor(properties?: BI.INhiBilling); - - /** NhiBilling billingStartTimestamp. */ - public billingStartTimestamp: number; + constructor(properties?: GraphSync.IGraphSyncData); - /** NhiBilling billingEndTimestamp. */ - public billingEndTimestamp: number; + /** GraphSyncData type. */ + public type: GraphSync.GraphSyncDataType; - /** NhiBilling currentTierId. */ - public currentTierId: number; + /** GraphSyncData ref. */ + public ref?: (GraphSync.IGraphSyncRef|null); - /** NhiBilling enterpriseBlocks. */ - public enterpriseBlocks: number; + /** GraphSyncData parentRef. */ + public parentRef?: (GraphSync.IGraphSyncRef|null); - /** NhiBilling currentTierCeiling. */ - public currentTierCeiling: number; + /** GraphSyncData content. */ + public content: Uint8Array; - /** NhiBilling billingPeriods. */ - public billingPeriods: BI.INhiBillingPeriod[]; + /** GraphSyncData path. */ + public path: string; /** - * Creates a new NhiBilling instance using the specified properties. + * Creates a new GraphSyncData instance using the specified properties. * @param [properties] Properties to set - * @returns NhiBilling instance + * @returns GraphSyncData instance */ - public static create(properties?: BI.INhiBilling): BI.NhiBilling; + public static create(properties?: GraphSync.IGraphSyncData): GraphSync.GraphSyncData; /** - * Encodes the specified NhiBilling message. Does not implicitly {@link BI.NhiBilling.verify|verify} messages. - * @param message NhiBilling message or plain object to encode + * Encodes the specified GraphSyncData message. Does not implicitly {@link GraphSync.GraphSyncData.verify|verify} messages. + * @param message GraphSyncData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.INhiBilling, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NhiBilling message from the specified reader or buffer. + * Decodes a GraphSyncData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NhiBilling + * @returns GraphSyncData * @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.NhiBilling; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncData; /** - * Creates a NhiBilling message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NhiBilling + * @returns GraphSyncData */ - public static fromObject(object: { [k: string]: any }): BI.NhiBilling; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncData; /** - * Creates a plain object from a NhiBilling message. Also converts values to other types if specified. - * @param message NhiBilling + * Creates a plain object from a GraphSyncData message. Also converts values to other types if specified. + * @param message GraphSyncData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NhiBilling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NhiBilling to JSON. + * Converts this GraphSyncData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NhiBilling + * Gets the default type url for GraphSyncData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NhiBillingPeriod. */ - interface INhiBillingPeriod { + /** Properties of a GraphSyncDataPlus. */ + interface IGraphSyncDataPlus { - /** NhiBillingPeriod startTimestamp */ - startTimestamp?: (number|null); + /** GraphSyncDataPlus data */ + data?: (GraphSync.IGraphSyncData|null); - /** NhiBillingPeriod endTimestamp */ - endTimestamp?: (number|null); + /** GraphSyncDataPlus timestamp */ + timestamp?: (number|null); + + /** GraphSyncDataPlus actor */ + actor?: (GraphSync.IGraphSyncActor|null); } - /** Represents a NhiBillingPeriod. */ - class NhiBillingPeriod implements INhiBillingPeriod { + /** Represents a GraphSyncDataPlus. */ + class GraphSyncDataPlus implements IGraphSyncDataPlus { /** - * Constructs a new NhiBillingPeriod. + * Constructs a new GraphSyncDataPlus. * @param [properties] Properties to set */ - constructor(properties?: BI.INhiBillingPeriod); + constructor(properties?: GraphSync.IGraphSyncDataPlus); - /** NhiBillingPeriod startTimestamp. */ - public startTimestamp: number; + /** GraphSyncDataPlus data. */ + public data?: (GraphSync.IGraphSyncData|null); - /** NhiBillingPeriod endTimestamp. */ - public endTimestamp: number; + /** GraphSyncDataPlus timestamp. */ + public timestamp: number; + + /** GraphSyncDataPlus actor. */ + public actor?: (GraphSync.IGraphSyncActor|null); /** - * Creates a new NhiBillingPeriod instance using the specified properties. + * Creates a new GraphSyncDataPlus instance using the specified properties. * @param [properties] Properties to set - * @returns NhiBillingPeriod instance + * @returns GraphSyncDataPlus instance */ - public static create(properties?: BI.INhiBillingPeriod): BI.NhiBillingPeriod; + public static create(properties?: GraphSync.IGraphSyncDataPlus): GraphSync.GraphSyncDataPlus; /** - * Encodes the specified NhiBillingPeriod message. Does not implicitly {@link BI.NhiBillingPeriod.verify|verify} messages. - * @param message NhiBillingPeriod message or plain object to encode + * Encodes the specified GraphSyncDataPlus message. Does not implicitly {@link GraphSync.GraphSyncDataPlus.verify|verify} messages. + * @param message GraphSyncDataPlus message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.INhiBillingPeriod, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncDataPlus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NhiBillingPeriod message from the specified reader or buffer. + * Decodes a GraphSyncDataPlus message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NhiBillingPeriod + * @returns GraphSyncDataPlus * @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.NhiBillingPeriod; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncDataPlus; /** - * Creates a NhiBillingPeriod message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncDataPlus message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NhiBillingPeriod + * @returns GraphSyncDataPlus */ - public static fromObject(object: { [k: string]: any }): BI.NhiBillingPeriod; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncDataPlus; /** - * Creates a plain object from a NhiBillingPeriod message. Also converts values to other types if specified. - * @param message NhiBillingPeriod + * Creates a plain object from a GraphSyncDataPlus message. Also converts values to other types if specified. + * @param message GraphSyncDataPlus * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NhiBillingPeriod, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncDataPlus, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NhiBillingPeriod to JSON. + * Converts this GraphSyncDataPlus to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NhiBillingPeriod + * Gets the default type url for GraphSyncDataPlus * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a LicenseStats. */ - interface ILicenseStats { + /** Properties of a GraphSyncQuery. */ + interface IGraphSyncQuery { - /** LicenseStats type */ - type?: (BI.LicenseStats.Type|null); + /** GraphSyncQuery streamId */ + streamId?: (Uint8Array|null); - /** LicenseStats available */ - available?: (number|null); + /** GraphSyncQuery origin */ + origin?: (Uint8Array|null); - /** LicenseStats used */ - used?: (number|null); + /** GraphSyncQuery syncPoint */ + syncPoint?: (number|null); + + /** GraphSyncQuery maxCount */ + maxCount?: (number|null); } - /** Represents a LicenseStats. */ - class LicenseStats implements ILicenseStats { + /** Represents a GraphSyncQuery. */ + class GraphSyncQuery implements IGraphSyncQuery { /** - * Constructs a new LicenseStats. + * Constructs a new GraphSyncQuery. * @param [properties] Properties to set */ - constructor(properties?: BI.ILicenseStats); + constructor(properties?: GraphSync.IGraphSyncQuery); - /** LicenseStats type. */ - public type: BI.LicenseStats.Type; + /** GraphSyncQuery streamId. */ + public streamId: Uint8Array; - /** LicenseStats available. */ - public available: number; + /** GraphSyncQuery origin. */ + public origin: Uint8Array; - /** LicenseStats used. */ - public used: number; + /** GraphSyncQuery syncPoint. */ + public syncPoint: number; + + /** GraphSyncQuery maxCount. */ + public maxCount: number; /** - * Creates a new LicenseStats instance using the specified properties. + * Creates a new GraphSyncQuery instance using the specified properties. * @param [properties] Properties to set - * @returns LicenseStats instance + * @returns GraphSyncQuery instance */ - public static create(properties?: BI.ILicenseStats): BI.LicenseStats; + public static create(properties?: GraphSync.IGraphSyncQuery): GraphSync.GraphSyncQuery; /** - * Encodes the specified LicenseStats message. Does not implicitly {@link BI.LicenseStats.verify|verify} messages. - * @param message LicenseStats message or plain object to encode + * Encodes the specified GraphSyncQuery message. Does not implicitly {@link GraphSync.GraphSyncQuery.verify|verify} messages. + * @param message GraphSyncQuery message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.ILicenseStats, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LicenseStats message from the specified reader or buffer. + * Decodes a GraphSyncQuery message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LicenseStats + * @returns GraphSyncQuery * @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.LicenseStats; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncQuery; /** - * Creates a LicenseStats message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncQuery message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LicenseStats + * @returns GraphSyncQuery */ - public static fromObject(object: { [k: string]: any }): BI.LicenseStats; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncQuery; /** - * Creates a plain object from a LicenseStats message. Also converts values to other types if specified. - * @param message LicenseStats + * Creates a plain object from a GraphSyncQuery message. Also converts values to other types if specified. + * @param message GraphSyncQuery * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.LicenseStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LicenseStats to JSON. + * Converts this GraphSyncQuery to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LicenseStats + * Gets the default type url for GraphSyncQuery * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace LicenseStats { - - /** Type enum. */ - enum Type { - LICENSE_STAT_UNKNOWN = 0, - MSP_BASE = 1, - MC_BUSINESS = 2, - MC_BUSINESS_PLUS = 3, - MC_ENTERPRISE = 4, - MC_ENTERPRISE_PLUS = 5, - B2B_BUSINESS_STARTER = 6, - B2B_BUSINESS = 7, - B2B_ENTERPRISE = 8 - } - } + /** Properties of a GraphSyncResult. */ + interface IGraphSyncResult { - /** Properties of an AutoRenewal. */ - interface IAutoRenewal { + /** GraphSyncResult streamId */ + streamId?: (Uint8Array|null); - /** AutoRenewal nextOn */ - nextOn?: (number|null); + /** GraphSyncResult syncPoint */ + syncPoint?: (number|null); - /** AutoRenewal daysLeft */ - daysLeft?: (number|null); + /** GraphSyncResult data */ + data?: (GraphSync.IGraphSyncDataPlus[]|null); - /** AutoRenewal isTrial */ - isTrial?: (boolean|null); + /** GraphSyncResult hasMore */ + hasMore?: (boolean|null); } - /** Represents an AutoRenewal. */ - class AutoRenewal implements IAutoRenewal { + /** Represents a GraphSyncResult. */ + class GraphSyncResult implements IGraphSyncResult { /** - * Constructs a new AutoRenewal. + * Constructs a new GraphSyncResult. * @param [properties] Properties to set */ - constructor(properties?: BI.IAutoRenewal); + constructor(properties?: GraphSync.IGraphSyncResult); - /** AutoRenewal nextOn. */ - public nextOn: number; + /** GraphSyncResult streamId. */ + public streamId: Uint8Array; - /** AutoRenewal daysLeft. */ - public daysLeft: number; + /** GraphSyncResult syncPoint. */ + public syncPoint: number; - /** AutoRenewal isTrial. */ - public isTrial: boolean; + /** GraphSyncResult data. */ + public data: GraphSync.IGraphSyncDataPlus[]; + + /** GraphSyncResult hasMore. */ + public hasMore: boolean; /** - * Creates a new AutoRenewal instance using the specified properties. + * Creates a new GraphSyncResult instance using the specified properties. * @param [properties] Properties to set - * @returns AutoRenewal instance + * @returns GraphSyncResult instance */ - public static create(properties?: BI.IAutoRenewal): BI.AutoRenewal; + public static create(properties?: GraphSync.IGraphSyncResult): GraphSync.GraphSyncResult; /** - * Encodes the specified AutoRenewal message. Does not implicitly {@link BI.AutoRenewal.verify|verify} messages. - * @param message AutoRenewal message or plain object to encode + * Encodes the specified GraphSyncResult message. Does not implicitly {@link GraphSync.GraphSyncResult.verify|verify} messages. + * @param message GraphSyncResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IAutoRenewal, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoRenewal message from the specified reader or buffer. + * Decodes a GraphSyncResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoRenewal + * @returns GraphSyncResult * @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.AutoRenewal; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncResult; /** - * Creates an AutoRenewal message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoRenewal + * @returns GraphSyncResult */ - public static fromObject(object: { [k: string]: any }): BI.AutoRenewal; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncResult; /** - * Creates a plain object from an AutoRenewal message. Also converts values to other types if specified. - * @param message AutoRenewal + * Creates a plain object from a GraphSyncResult message. Also converts values to other types if specified. + * @param message GraphSyncResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.AutoRenewal, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoRenewal to JSON. + * Converts this GraphSyncResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoRenewal + * Gets the default type url for GraphSyncResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PaymentMethod. */ - interface IPaymentMethod { - - /** PaymentMethod type */ - type?: (BI.PaymentMethod.Type|null); - - /** PaymentMethod card */ - card?: (BI.PaymentMethod.ICard|null); - - /** PaymentMethod sepa */ - sepa?: (BI.PaymentMethod.ISepa|null); - - /** PaymentMethod paypal */ - paypal?: (BI.PaymentMethod.IPaypal|null); - - /** PaymentMethod failedBilling */ - failedBilling?: (boolean|null); - - /** PaymentMethod vendor */ - vendor?: (BI.PaymentMethod.IVendor|null); + /** Properties of a GraphSyncMultiQuery. */ + interface IGraphSyncMultiQuery { - /** PaymentMethod purchaseOrder */ - purchaseOrder?: (BI.PaymentMethod.IPurchaseOrder|null); + /** GraphSyncMultiQuery queries */ + queries?: (GraphSync.IGraphSyncQuery[]|null); } - /** Represents a PaymentMethod. */ - class PaymentMethod implements IPaymentMethod { + /** Represents a GraphSyncMultiQuery. */ + class GraphSyncMultiQuery implements IGraphSyncMultiQuery { /** - * Constructs a new PaymentMethod. + * Constructs a new GraphSyncMultiQuery. * @param [properties] Properties to set */ - constructor(properties?: BI.IPaymentMethod); - - /** PaymentMethod type. */ - public type: BI.PaymentMethod.Type; - - /** PaymentMethod card. */ - public card?: (BI.PaymentMethod.ICard|null); - - /** PaymentMethod sepa. */ - public sepa?: (BI.PaymentMethod.ISepa|null); - - /** PaymentMethod paypal. */ - public paypal?: (BI.PaymentMethod.IPaypal|null); - - /** PaymentMethod failedBilling. */ - public failedBilling: boolean; - - /** PaymentMethod vendor. */ - public vendor?: (BI.PaymentMethod.IVendor|null); + constructor(properties?: GraphSync.IGraphSyncMultiQuery); - /** PaymentMethod purchaseOrder. */ - public purchaseOrder?: (BI.PaymentMethod.IPurchaseOrder|null); + /** GraphSyncMultiQuery queries. */ + public queries: GraphSync.IGraphSyncQuery[]; /** - * Creates a new PaymentMethod instance using the specified properties. + * Creates a new GraphSyncMultiQuery instance using the specified properties. * @param [properties] Properties to set - * @returns PaymentMethod instance + * @returns GraphSyncMultiQuery instance */ - public static create(properties?: BI.IPaymentMethod): BI.PaymentMethod; + public static create(properties?: GraphSync.IGraphSyncMultiQuery): GraphSync.GraphSyncMultiQuery; /** - * Encodes the specified PaymentMethod message. Does not implicitly {@link BI.PaymentMethod.verify|verify} messages. - * @param message PaymentMethod message or plain object to encode + * Encodes the specified GraphSyncMultiQuery message. Does not implicitly {@link GraphSync.GraphSyncMultiQuery.verify|verify} messages. + * @param message GraphSyncMultiQuery message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IPaymentMethod, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncMultiQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PaymentMethod message from the specified reader or buffer. + * Decodes a GraphSyncMultiQuery message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PaymentMethod + * @returns GraphSyncMultiQuery * @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.PaymentMethod; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncMultiQuery; /** - * Creates a PaymentMethod message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncMultiQuery message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PaymentMethod + * @returns GraphSyncMultiQuery */ - public static fromObject(object: { [k: string]: any }): BI.PaymentMethod; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncMultiQuery; /** - * Creates a plain object from a PaymentMethod message. Also converts values to other types if specified. - * @param message PaymentMethod + * Creates a plain object from a GraphSyncMultiQuery message. Also converts values to other types if specified. + * @param message GraphSyncMultiQuery * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.PaymentMethod, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncMultiQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PaymentMethod to JSON. + * Converts this GraphSyncMultiQuery to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PaymentMethod + * Gets the default type url for GraphSyncMultiQuery * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PaymentMethod { - - /** Type enum. */ - enum Type { - CARD = 0, - SEPA = 1, - PAYPAL = 2, - NONE = 3, - VENDOR = 4, - PURCHASEORDER = 5 - } - - /** Properties of a Card. */ - interface ICard { - - /** Card last4 */ - last4?: (string|null); - - /** Card brand */ - brand?: (string|null); - } - - /** Represents a Card. */ - class Card implements ICard { - - /** - * Constructs a new Card. - * @param [properties] Properties to set - */ - constructor(properties?: BI.PaymentMethod.ICard); - - /** Card last4. */ - public last4: string; - - /** Card brand. */ - public brand: string; - - /** - * Creates a new Card instance using the specified properties. - * @param [properties] Properties to set - * @returns Card instance - */ - public static create(properties?: BI.PaymentMethod.ICard): BI.PaymentMethod.Card; - - /** - * Encodes the specified Card message. Does not implicitly {@link BI.PaymentMethod.Card.verify|verify} messages. - * @param message Card message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: BI.PaymentMethod.ICard, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Card message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Card - * @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.PaymentMethod.Card; - - /** - * Creates a Card message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Card - */ - public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.Card; - - /** - * Creates a plain object from a Card message. Also converts values to other types if specified. - * @param message Card - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: BI.PaymentMethod.Card, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Card to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Card - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Sepa. */ - interface ISepa { - - /** Sepa last4 */ - last4?: (string|null); - - /** Sepa country */ - country?: (string|null); - } - - /** Represents a Sepa. */ - class Sepa implements ISepa { - - /** - * Constructs a new Sepa. - * @param [properties] Properties to set - */ - constructor(properties?: BI.PaymentMethod.ISepa); - - /** Sepa last4. */ - public last4: string; - - /** Sepa country. */ - public country: string; - - /** - * Creates a new Sepa instance using the specified properties. - * @param [properties] Properties to set - * @returns Sepa instance - */ - public static create(properties?: BI.PaymentMethod.ISepa): BI.PaymentMethod.Sepa; - - /** - * Encodes the specified Sepa message. Does not implicitly {@link BI.PaymentMethod.Sepa.verify|verify} messages. - * @param message Sepa message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: BI.PaymentMethod.ISepa, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Sepa message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Sepa - * @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.PaymentMethod.Sepa; - - /** - * Creates a Sepa message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Sepa - */ - public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.Sepa; - - /** - * Creates a plain object from a Sepa message. Also converts values to other types if specified. - * @param message Sepa - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: BI.PaymentMethod.Sepa, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Sepa to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a GraphSyncMultiResult. */ + interface IGraphSyncMultiResult { - /** - * Gets the default type url for Sepa - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** GraphSyncMultiResult results */ + results?: (GraphSync.IGraphSyncResult[]|null); + } - /** Properties of a Paypal. */ - interface IPaypal { - } + /** Represents a GraphSyncMultiResult. */ + class GraphSyncMultiResult implements IGraphSyncMultiResult { - /** Represents a Paypal. */ - class Paypal implements IPaypal { + /** + * Constructs a new GraphSyncMultiResult. + * @param [properties] Properties to set + */ + constructor(properties?: GraphSync.IGraphSyncMultiResult); - /** - * Constructs a new Paypal. - * @param [properties] Properties to set - */ - constructor(properties?: BI.PaymentMethod.IPaypal); + /** GraphSyncMultiResult results. */ + public results: GraphSync.IGraphSyncResult[]; - /** - * Creates a new Paypal instance using the specified properties. - * @param [properties] Properties to set - * @returns Paypal instance - */ - public static create(properties?: BI.PaymentMethod.IPaypal): BI.PaymentMethod.Paypal; + /** + * Creates a new GraphSyncMultiResult instance using the specified properties. + * @param [properties] Properties to set + * @returns GraphSyncMultiResult instance + */ + public static create(properties?: GraphSync.IGraphSyncMultiResult): GraphSync.GraphSyncMultiResult; - /** - * Encodes the specified Paypal message. Does not implicitly {@link BI.PaymentMethod.Paypal.verify|verify} messages. - * @param message Paypal message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: BI.PaymentMethod.IPaypal, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified GraphSyncMultiResult message. Does not implicitly {@link GraphSync.GraphSyncMultiResult.verify|verify} messages. + * @param message GraphSyncMultiResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: GraphSync.IGraphSyncMultiResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Paypal message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Paypal - * @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.PaymentMethod.Paypal; + /** + * Decodes a GraphSyncMultiResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GraphSyncMultiResult + * @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): GraphSync.GraphSyncMultiResult; - /** - * Creates a Paypal message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Paypal - */ - public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.Paypal; + /** + * Creates a GraphSyncMultiResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GraphSyncMultiResult + */ + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncMultiResult; - /** - * Creates a plain object from a Paypal message. Also converts values to other types if specified. - * @param message Paypal - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: BI.PaymentMethod.Paypal, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a GraphSyncMultiResult message. Also converts values to other types if specified. + * @param message GraphSyncMultiResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: GraphSync.GraphSyncMultiResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this Paypal to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this GraphSyncMultiResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for Paypal - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for GraphSyncMultiResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a Vendor. */ - interface IVendor { + /** Properties of a GraphSyncAddDataRequest. */ + interface IGraphSyncAddDataRequest { - /** Vendor name */ - name?: (string|null); - } + /** GraphSyncAddDataRequest origin */ + origin?: (GraphSync.IGraphSyncRef|null); - /** Represents a Vendor. */ - class Vendor implements IVendor { + /** GraphSyncAddDataRequest data */ + data?: (GraphSync.IGraphSyncData[]|null); + } - /** - * Constructs a new Vendor. - * @param [properties] Properties to set - */ - constructor(properties?: BI.PaymentMethod.IVendor); + /** Represents a GraphSyncAddDataRequest. */ + class GraphSyncAddDataRequest implements IGraphSyncAddDataRequest { - /** Vendor name. */ - public name: string; + /** + * Constructs a new GraphSyncAddDataRequest. + * @param [properties] Properties to set + */ + constructor(properties?: GraphSync.IGraphSyncAddDataRequest); - /** - * Creates a new Vendor instance using the specified properties. - * @param [properties] Properties to set - * @returns Vendor instance - */ - public static create(properties?: BI.PaymentMethod.IVendor): BI.PaymentMethod.Vendor; + /** GraphSyncAddDataRequest origin. */ + public origin?: (GraphSync.IGraphSyncRef|null); - /** - * Encodes the specified Vendor message. Does not implicitly {@link BI.PaymentMethod.Vendor.verify|verify} messages. - * @param message Vendor message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: BI.PaymentMethod.IVendor, writer?: $protobuf.Writer): $protobuf.Writer; + /** GraphSyncAddDataRequest data. */ + public data: GraphSync.IGraphSyncData[]; - /** - * Decodes a Vendor message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Vendor - * @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.PaymentMethod.Vendor; + /** + * Creates a new GraphSyncAddDataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GraphSyncAddDataRequest instance + */ + public static create(properties?: GraphSync.IGraphSyncAddDataRequest): GraphSync.GraphSyncAddDataRequest; - /** - * Creates a Vendor message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Vendor - */ - public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.Vendor; + /** + * Encodes the specified GraphSyncAddDataRequest message. Does not implicitly {@link GraphSync.GraphSyncAddDataRequest.verify|verify} messages. + * @param message GraphSyncAddDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: GraphSync.IGraphSyncAddDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a Vendor message. Also converts values to other types if specified. - * @param message Vendor - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: BI.PaymentMethod.Vendor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a GraphSyncAddDataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GraphSyncAddDataRequest + * @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): GraphSync.GraphSyncAddDataRequest; - /** - * Converts this Vendor to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a GraphSyncAddDataRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GraphSyncAddDataRequest + */ + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncAddDataRequest; - /** - * Gets the default type url for Vendor - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from a GraphSyncAddDataRequest message. Also converts values to other types if specified. + * @param message GraphSyncAddDataRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: GraphSync.GraphSyncAddDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a PurchaseOrder. */ - interface IPurchaseOrder { + /** + * Converts this GraphSyncAddDataRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** PurchaseOrder name */ - name?: (string|null); - } + /** + * Gets the default type url for GraphSyncAddDataRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Represents a PurchaseOrder. */ - class PurchaseOrder implements IPurchaseOrder { + /** Properties of a GraphSyncLeafsQuery. */ + interface IGraphSyncLeafsQuery { - /** - * Constructs a new PurchaseOrder. - * @param [properties] Properties to set - */ - constructor(properties?: BI.PaymentMethod.IPurchaseOrder); + /** GraphSyncLeafsQuery vertices */ + vertices?: (Uint8Array[]|null); + } - /** PurchaseOrder name. */ - public name: string; + /** Represents a GraphSyncLeafsQuery. */ + class GraphSyncLeafsQuery implements IGraphSyncLeafsQuery { - /** - * Creates a new PurchaseOrder instance using the specified properties. - * @param [properties] Properties to set - * @returns PurchaseOrder instance - */ - public static create(properties?: BI.PaymentMethod.IPurchaseOrder): BI.PaymentMethod.PurchaseOrder; + /** + * Constructs a new GraphSyncLeafsQuery. + * @param [properties] Properties to set + */ + constructor(properties?: GraphSync.IGraphSyncLeafsQuery); - /** - * Encodes the specified PurchaseOrder message. Does not implicitly {@link BI.PaymentMethod.PurchaseOrder.verify|verify} messages. - * @param message PurchaseOrder message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: BI.PaymentMethod.IPurchaseOrder, writer?: $protobuf.Writer): $protobuf.Writer; + /** GraphSyncLeafsQuery vertices. */ + public vertices: Uint8Array[]; - /** - * Decodes a PurchaseOrder message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PurchaseOrder - * @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.PaymentMethod.PurchaseOrder; + /** + * Creates a new GraphSyncLeafsQuery instance using the specified properties. + * @param [properties] Properties to set + * @returns GraphSyncLeafsQuery instance + */ + public static create(properties?: GraphSync.IGraphSyncLeafsQuery): GraphSync.GraphSyncLeafsQuery; - /** - * Creates a PurchaseOrder message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PurchaseOrder - */ - public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.PurchaseOrder; + /** + * Encodes the specified GraphSyncLeafsQuery message. Does not implicitly {@link GraphSync.GraphSyncLeafsQuery.verify|verify} messages. + * @param message GraphSyncLeafsQuery message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: GraphSync.IGraphSyncLeafsQuery, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a PurchaseOrder message. Also converts values to other types if specified. - * @param message PurchaseOrder - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: BI.PaymentMethod.PurchaseOrder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a GraphSyncLeafsQuery message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GraphSyncLeafsQuery + * @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): GraphSync.GraphSyncLeafsQuery; + + /** + * Creates a GraphSyncLeafsQuery message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GraphSyncLeafsQuery + */ + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncLeafsQuery; - /** - * Converts this PurchaseOrder to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a GraphSyncLeafsQuery message. Also converts values to other types if specified. + * @param message GraphSyncLeafsQuery + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: GraphSync.GraphSyncLeafsQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for PurchaseOrder - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this GraphSyncLeafsQuery to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GraphSyncLeafsQuery + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SubscriptionMspPricingRequest. */ - interface ISubscriptionMspPricingRequest { + /** Properties of a GraphSyncRefsResult. */ + interface IGraphSyncRefsResult { + + /** GraphSyncRefsResult refs */ + refs?: (GraphSync.IGraphSyncRef[]|null); } - /** Represents a SubscriptionMspPricingRequest. */ - class SubscriptionMspPricingRequest implements ISubscriptionMspPricingRequest { + /** Represents a GraphSyncRefsResult. */ + class GraphSyncRefsResult implements IGraphSyncRefsResult { /** - * Constructs a new SubscriptionMspPricingRequest. + * Constructs a new GraphSyncRefsResult. * @param [properties] Properties to set */ - constructor(properties?: BI.ISubscriptionMspPricingRequest); + constructor(properties?: GraphSync.IGraphSyncRefsResult); + + /** GraphSyncRefsResult refs. */ + public refs: GraphSync.IGraphSyncRef[]; /** - * Creates a new SubscriptionMspPricingRequest instance using the specified properties. + * Creates a new GraphSyncRefsResult instance using the specified properties. * @param [properties] Properties to set - * @returns SubscriptionMspPricingRequest instance + * @returns GraphSyncRefsResult instance */ - public static create(properties?: BI.ISubscriptionMspPricingRequest): BI.SubscriptionMspPricingRequest; + public static create(properties?: GraphSync.IGraphSyncRefsResult): GraphSync.GraphSyncRefsResult; /** - * Encodes the specified SubscriptionMspPricingRequest message. Does not implicitly {@link BI.SubscriptionMspPricingRequest.verify|verify} messages. - * @param message SubscriptionMspPricingRequest message or plain object to encode + * Encodes the specified GraphSyncRefsResult message. Does not implicitly {@link GraphSync.GraphSyncRefsResult.verify|verify} messages. + * @param message GraphSyncRefsResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.ISubscriptionMspPricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: GraphSync.IGraphSyncRefsResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SubscriptionMspPricingRequest message from the specified reader or buffer. + * Decodes a GraphSyncRefsResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SubscriptionMspPricingRequest + * @returns GraphSyncRefsResult * @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.SubscriptionMspPricingRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GraphSync.GraphSyncRefsResult; /** - * Creates a SubscriptionMspPricingRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GraphSyncRefsResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SubscriptionMspPricingRequest + * @returns GraphSyncRefsResult */ - public static fromObject(object: { [k: string]: any }): BI.SubscriptionMspPricingRequest; + public static fromObject(object: { [k: string]: any }): GraphSync.GraphSyncRefsResult; /** - * Creates a plain object from a SubscriptionMspPricingRequest message. Also converts values to other types if specified. - * @param message SubscriptionMspPricingRequest + * Creates a plain object from a GraphSyncRefsResult message. Also converts values to other types if specified. + * @param message GraphSyncRefsResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionMspPricingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: GraphSync.GraphSyncRefsResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SubscriptionMspPricingRequest to JSON. + * Converts this GraphSyncRefsResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SubscriptionMspPricingRequest + * Gets the default type url for GraphSyncRefsResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } +} - /** Properties of a SubscriptionMspPricingResponse. */ - interface ISubscriptionMspPricingResponse { +/** Namespace Dag. */ +export namespace Dag { - /** SubscriptionMspPricingResponse addons */ - addons?: (BI.IAddon[]|null); + /** RefType enum. */ + enum RefType { + GENERAL = 0, + USER = 1, + DEVICE = 2, + REC = 3, + FOLDER = 4, + TEAM = 5, + ENTERPRISE = 6, + PAM_DIRECTORY = 7, + PAM_MACHINE = 8, + PAM_USER = 9 + } - /** SubscriptionMspPricingResponse filePlans */ - filePlans?: (BI.IFilePlan[]|null); + /** DataType enum. */ + enum DataType { + DATA = 0, + KEY = 1, + LINK = 2, + ACL = 3, + DELETION = 4, + DENIAL = 5, + UNDENIAL = 6 } - /** Represents a SubscriptionMspPricingResponse. */ - class SubscriptionMspPricingResponse implements ISubscriptionMspPricingResponse { + /** Properties of a Ref. */ + interface IRef { + + /** Ref type */ + type?: (Dag.RefType|null); + + /** Ref value */ + value?: (Uint8Array|null); + + /** Ref name */ + name?: (string|null); + } + + /** Represents a Ref. */ + class Ref implements IRef { /** - * Constructs a new SubscriptionMspPricingResponse. + * Constructs a new Ref. * @param [properties] Properties to set */ - constructor(properties?: BI.ISubscriptionMspPricingResponse); + constructor(properties?: Dag.IRef); - /** SubscriptionMspPricingResponse addons. */ - public addons: BI.IAddon[]; + /** Ref type. */ + public type: Dag.RefType; - /** SubscriptionMspPricingResponse filePlans. */ - public filePlans: BI.IFilePlan[]; + /** Ref value. */ + public value: Uint8Array; + + /** Ref name. */ + public name: string; /** - * Creates a new SubscriptionMspPricingResponse instance using the specified properties. + * Creates a new Ref instance using the specified properties. * @param [properties] Properties to set - * @returns SubscriptionMspPricingResponse instance + * @returns Ref instance */ - public static create(properties?: BI.ISubscriptionMspPricingResponse): BI.SubscriptionMspPricingResponse; + public static create(properties?: Dag.IRef): Dag.Ref; /** - * Encodes the specified SubscriptionMspPricingResponse message. Does not implicitly {@link BI.SubscriptionMspPricingResponse.verify|verify} messages. - * @param message SubscriptionMspPricingResponse message or plain object to encode + * Encodes the specified Ref message. Does not implicitly {@link Dag.Ref.verify|verify} messages. + * @param message Ref message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.ISubscriptionMspPricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Dag.IRef, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SubscriptionMspPricingResponse message from the specified reader or buffer. + * Decodes a Ref message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SubscriptionMspPricingResponse + * @returns Ref * @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.SubscriptionMspPricingResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Dag.Ref; /** - * Creates a SubscriptionMspPricingResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Ref message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SubscriptionMspPricingResponse + * @returns Ref */ - public static fromObject(object: { [k: string]: any }): BI.SubscriptionMspPricingResponse; + public static fromObject(object: { [k: string]: any }): Dag.Ref; /** - * Creates a plain object from a SubscriptionMspPricingResponse message. Also converts values to other types if specified. - * @param message SubscriptionMspPricingResponse + * Creates a plain object from a Ref message. Also converts values to other types if specified. + * @param message Ref * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionMspPricingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Dag.Ref, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SubscriptionMspPricingResponse to JSON. + * Converts this Ref to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SubscriptionMspPricingResponse + * Gets the default type url for Ref * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SubscriptionMcPricingRequest. */ - interface ISubscriptionMcPricingRequest { + /** Properties of a Data. */ + interface IData { + + /** Data dataType */ + dataType?: (Dag.DataType|null); + + /** Data ref */ + ref?: (Dag.IRef|null); + + /** Data parentRef */ + parentRef?: (Dag.IRef|null); + + /** Data content */ + content?: (Uint8Array|null); + + /** Data path */ + path?: (string|null); } - /** Represents a SubscriptionMcPricingRequest. */ - class SubscriptionMcPricingRequest implements ISubscriptionMcPricingRequest { + /** Represents a Data. */ + class Data implements IData { /** - * Constructs a new SubscriptionMcPricingRequest. + * Constructs a new Data. * @param [properties] Properties to set */ - constructor(properties?: BI.ISubscriptionMcPricingRequest); + constructor(properties?: Dag.IData); + + /** Data dataType. */ + public dataType: Dag.DataType; + + /** Data ref. */ + public ref?: (Dag.IRef|null); + + /** Data parentRef. */ + public parentRef?: (Dag.IRef|null); + + /** Data content. */ + public content: Uint8Array; + + /** Data path. */ + public path: string; /** - * Creates a new SubscriptionMcPricingRequest instance using the specified properties. + * Creates a new Data instance using the specified properties. * @param [properties] Properties to set - * @returns SubscriptionMcPricingRequest instance + * @returns Data instance */ - public static create(properties?: BI.ISubscriptionMcPricingRequest): BI.SubscriptionMcPricingRequest; + public static create(properties?: Dag.IData): Dag.Data; /** - * Encodes the specified SubscriptionMcPricingRequest message. Does not implicitly {@link BI.SubscriptionMcPricingRequest.verify|verify} messages. - * @param message SubscriptionMcPricingRequest message or plain object to encode + * Encodes the specified Data message. Does not implicitly {@link Dag.Data.verify|verify} messages. + * @param message Data message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.ISubscriptionMcPricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Dag.IData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SubscriptionMcPricingRequest message from the specified reader or buffer. + * Decodes a Data message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SubscriptionMcPricingRequest + * @returns Data * @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.SubscriptionMcPricingRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Dag.Data; /** - * Creates a SubscriptionMcPricingRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Data message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SubscriptionMcPricingRequest + * @returns Data */ - public static fromObject(object: { [k: string]: any }): BI.SubscriptionMcPricingRequest; + public static fromObject(object: { [k: string]: any }): Dag.Data; /** - * Creates a plain object from a SubscriptionMcPricingRequest message. Also converts values to other types if specified. - * @param message SubscriptionMcPricingRequest + * Creates a plain object from a Data message. Also converts values to other types if specified. + * @param message Data * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionMcPricingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Dag.Data, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SubscriptionMcPricingRequest to JSON. + * Converts this Data to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SubscriptionMcPricingRequest + * Gets the default type url for Data * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SubscriptionMcPricingResponse. */ - interface ISubscriptionMcPricingResponse { + /** Properties of a SyncData. */ + interface ISyncData { - /** SubscriptionMcPricingResponse basePlans */ - basePlans?: (BI.IBasePlan[]|null); + /** SyncData data */ + data?: (Dag.IData[]|null); - /** SubscriptionMcPricingResponse addons */ - addons?: (BI.IAddon[]|null); + /** SyncData syncPoint */ + syncPoint?: (number|null); - /** SubscriptionMcPricingResponse filePlans */ - filePlans?: (BI.IFilePlan[]|null); + /** SyncData hasMore */ + hasMore?: (boolean|null); } - /** Represents a SubscriptionMcPricingResponse. */ - class SubscriptionMcPricingResponse implements ISubscriptionMcPricingResponse { + /** Represents a SyncData. */ + class SyncData implements ISyncData { /** - * Constructs a new SubscriptionMcPricingResponse. + * Constructs a new SyncData. * @param [properties] Properties to set */ - constructor(properties?: BI.ISubscriptionMcPricingResponse); + constructor(properties?: Dag.ISyncData); - /** SubscriptionMcPricingResponse basePlans. */ - public basePlans: BI.IBasePlan[]; + /** SyncData data. */ + public data: Dag.IData[]; - /** SubscriptionMcPricingResponse addons. */ - public addons: BI.IAddon[]; + /** SyncData syncPoint. */ + public syncPoint: number; - /** SubscriptionMcPricingResponse filePlans. */ - public filePlans: BI.IFilePlan[]; + /** SyncData hasMore. */ + public hasMore: boolean; /** - * Creates a new SubscriptionMcPricingResponse instance using the specified properties. + * Creates a new SyncData instance using the specified properties. * @param [properties] Properties to set - * @returns SubscriptionMcPricingResponse instance + * @returns SyncData instance */ - public static create(properties?: BI.ISubscriptionMcPricingResponse): BI.SubscriptionMcPricingResponse; + public static create(properties?: Dag.ISyncData): Dag.SyncData; /** - * Encodes the specified SubscriptionMcPricingResponse message. Does not implicitly {@link BI.SubscriptionMcPricingResponse.verify|verify} messages. - * @param message SubscriptionMcPricingResponse message or plain object to encode + * Encodes the specified SyncData message. Does not implicitly {@link Dag.SyncData.verify|verify} messages. + * @param message SyncData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.ISubscriptionMcPricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Dag.ISyncData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SubscriptionMcPricingResponse message from the specified reader or buffer. + * Decodes a SyncData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SubscriptionMcPricingResponse + * @returns SyncData * @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.SubscriptionMcPricingResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Dag.SyncData; /** - * Creates a SubscriptionMcPricingResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SyncData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SubscriptionMcPricingResponse + * @returns SyncData */ - public static fromObject(object: { [k: string]: any }): BI.SubscriptionMcPricingResponse; + public static fromObject(object: { [k: string]: any }): Dag.SyncData; /** - * Creates a plain object from a SubscriptionMcPricingResponse message. Also converts values to other types if specified. - * @param message SubscriptionMcPricingResponse + * Creates a plain object from a SyncData message. Also converts values to other types if specified. + * @param message SyncData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionMcPricingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Dag.SyncData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SubscriptionMcPricingResponse to JSON. + * Converts this SyncData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SubscriptionMcPricingResponse + * Gets the default type url for SyncData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BasePlan. */ - interface IBasePlan { + /** Properties of a DebugData. */ + interface IDebugData { - /** BasePlan id */ - id?: (number|null); + /** DebugData dataType */ + dataType?: (string|null); - /** BasePlan cost */ - cost?: (BI.ICost|null); + /** DebugData path */ + path?: (string|null); + + /** DebugData ref */ + ref?: (Dag.IDebugRefInfo|null); + + /** DebugData parentRef */ + parentRef?: (Dag.IDebugRefInfo|null); } - /** Represents a BasePlan. */ - class BasePlan implements IBasePlan { + /** Represents a DebugData. */ + class DebugData implements IDebugData { /** - * Constructs a new BasePlan. + * Constructs a new DebugData. * @param [properties] Properties to set */ - constructor(properties?: BI.IBasePlan); + constructor(properties?: Dag.IDebugData); - /** BasePlan id. */ - public id: number; + /** DebugData dataType. */ + public dataType: string; - /** BasePlan cost. */ - public cost?: (BI.ICost|null); + /** DebugData path. */ + public path: string; + + /** DebugData ref. */ + public ref?: (Dag.IDebugRefInfo|null); + + /** DebugData parentRef. */ + public parentRef?: (Dag.IDebugRefInfo|null); /** - * Creates a new BasePlan instance using the specified properties. + * Creates a new DebugData instance using the specified properties. * @param [properties] Properties to set - * @returns BasePlan instance + * @returns DebugData instance */ - public static create(properties?: BI.IBasePlan): BI.BasePlan; + public static create(properties?: Dag.IDebugData): Dag.DebugData; /** - * Encodes the specified BasePlan message. Does not implicitly {@link BI.BasePlan.verify|verify} messages. - * @param message BasePlan message or plain object to encode + * Encodes the specified DebugData message. Does not implicitly {@link Dag.DebugData.verify|verify} messages. + * @param message DebugData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IBasePlan, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Dag.IDebugData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BasePlan message from the specified reader or buffer. + * Decodes a DebugData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BasePlan + * @returns DebugData * @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.BasePlan; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Dag.DebugData; /** - * Creates a BasePlan message from a plain object. Also converts values to their respective internal types. + * Creates a DebugData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BasePlan + * @returns DebugData */ - public static fromObject(object: { [k: string]: any }): BI.BasePlan; + public static fromObject(object: { [k: string]: any }): Dag.DebugData; /** - * Creates a plain object from a BasePlan message. Also converts values to other types if specified. - * @param message BasePlan + * Creates a plain object from a DebugData message. Also converts values to other types if specified. + * @param message DebugData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.BasePlan, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Dag.DebugData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BasePlan to JSON. + * Converts this DebugData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BasePlan + * Gets the default type url for DebugData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Addon. */ - interface IAddon { - - /** Addon id */ - id?: (number|null); + /** Properties of a DebugRefInfo. */ + interface IDebugRefInfo { - /** Addon cost */ - cost?: (BI.ICost|null); + /** DebugRefInfo refType */ + refType?: (string|null); - /** Addon amountConsumed */ - amountConsumed?: (number|null); + /** DebugRefInfo value */ + value?: (Uint8Array|null); } - /** Represents an Addon. */ - class Addon implements IAddon { + /** Represents a DebugRefInfo. */ + class DebugRefInfo implements IDebugRefInfo { /** - * Constructs a new Addon. + * Constructs a new DebugRefInfo. * @param [properties] Properties to set */ - constructor(properties?: BI.IAddon); - - /** Addon id. */ - public id: number; + constructor(properties?: Dag.IDebugRefInfo); - /** Addon cost. */ - public cost?: (BI.ICost|null); + /** DebugRefInfo refType. */ + public refType: string; - /** Addon amountConsumed. */ - public amountConsumed: number; + /** DebugRefInfo value. */ + public value: Uint8Array; /** - * Creates a new Addon instance using the specified properties. + * Creates a new DebugRefInfo instance using the specified properties. * @param [properties] Properties to set - * @returns Addon instance + * @returns DebugRefInfo instance */ - public static create(properties?: BI.IAddon): BI.Addon; + public static create(properties?: Dag.IDebugRefInfo): Dag.DebugRefInfo; /** - * Encodes the specified Addon message. Does not implicitly {@link BI.Addon.verify|verify} messages. - * @param message Addon message or plain object to encode + * Encodes the specified DebugRefInfo message. Does not implicitly {@link Dag.DebugRefInfo.verify|verify} messages. + * @param message DebugRefInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IAddon, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Dag.IDebugRefInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Addon message from the specified reader or buffer. + * Decodes a DebugRefInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Addon + * @returns DebugRefInfo * @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.Addon; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Dag.DebugRefInfo; /** - * Creates an Addon message from a plain object. Also converts values to their respective internal types. + * Creates a DebugRefInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Addon + * @returns DebugRefInfo */ - public static fromObject(object: { [k: string]: any }): BI.Addon; + public static fromObject(object: { [k: string]: any }): Dag.DebugRefInfo; /** - * Creates a plain object from an Addon message. Also converts values to other types if specified. - * @param message Addon + * Creates a plain object from a DebugRefInfo message. Also converts values to other types if specified. + * @param message DebugRefInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.Addon, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Dag.DebugRefInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Addon to JSON. + * Converts this DebugRefInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Addon + * Gets the default type url for DebugRefInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } +} - /** Properties of a FilePlan. */ - interface IFilePlan { +/** Namespace Upsell. */ +export namespace Upsell { - /** FilePlan id */ - id?: (number|null); + /** Properties of an UpsellRequest. */ + interface IUpsellRequest { - /** FilePlan cost */ - cost?: (BI.ICost|null); + /** UpsellRequest email */ + email?: (string|null); + + /** UpsellRequest locale */ + locale?: (string|null); + + /** UpsellRequest clientVersion */ + clientVersion?: (string|null); + + /** UpsellRequest sessionToken */ + sessionToken?: (string|null); } - /** Represents a FilePlan. */ - class FilePlan implements IFilePlan { + /** Represents an UpsellRequest. */ + class UpsellRequest implements IUpsellRequest { /** - * Constructs a new FilePlan. + * Constructs a new UpsellRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IFilePlan); + constructor(properties?: Upsell.IUpsellRequest); - /** FilePlan id. */ - public id: number; + /** UpsellRequest email. */ + public email: string; - /** FilePlan cost. */ - public cost?: (BI.ICost|null); + /** UpsellRequest locale. */ + public locale: string; + + /** UpsellRequest clientVersion. */ + public clientVersion: string; + + /** UpsellRequest sessionToken. */ + public sessionToken: string; /** - * Creates a new FilePlan instance using the specified properties. + * Creates a new UpsellRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FilePlan instance + * @returns UpsellRequest instance */ - public static create(properties?: BI.IFilePlan): BI.FilePlan; + public static create(properties?: Upsell.IUpsellRequest): Upsell.UpsellRequest; /** - * Encodes the specified FilePlan message. Does not implicitly {@link BI.FilePlan.verify|verify} messages. - * @param message FilePlan message or plain object to encode + * Encodes the specified UpsellRequest message. Does not implicitly {@link Upsell.UpsellRequest.verify|verify} messages. + * @param message UpsellRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IFilePlan, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Upsell.IUpsellRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FilePlan message from the specified reader or buffer. + * Decodes an UpsellRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FilePlan + * @returns UpsellRequest * @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.FilePlan; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Upsell.UpsellRequest; /** - * Creates a FilePlan message from a plain object. Also converts values to their respective internal types. + * Creates an UpsellRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FilePlan + * @returns UpsellRequest */ - public static fromObject(object: { [k: string]: any }): BI.FilePlan; + public static fromObject(object: { [k: string]: any }): Upsell.UpsellRequest; /** - * Creates a plain object from a FilePlan message. Also converts values to other types if specified. - * @param message FilePlan + * Creates a plain object from an UpsellRequest message. Also converts values to other types if specified. + * @param message UpsellRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.FilePlan, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Upsell.UpsellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FilePlan to JSON. + * Converts this UpsellRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FilePlan + * Gets the default type url for UpsellRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Cost. */ - interface ICost { - - /** Cost amount */ - amount?: (number|null); - - /** Cost amountPer */ - amountPer?: (BI.Cost.AmountPer|null); - - /** Cost currency */ - currency?: (BI.Currency|null); + /** Properties of an UpsellResponse. */ + interface IUpsellResponse { - /** Cost contactSales */ - contactSales?: (boolean|null); + /** UpsellResponse UpsellBanner */ + UpsellBanner?: (Upsell.IUpsellBanner[]|null); } - /** Represents a Cost. */ - class Cost implements ICost { + /** Represents an UpsellResponse. */ + class UpsellResponse implements IUpsellResponse { /** - * Constructs a new Cost. + * Constructs a new UpsellResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.ICost); - - /** Cost amount. */ - public amount: number; - - /** Cost amountPer. */ - public amountPer: BI.Cost.AmountPer; - - /** Cost currency. */ - public currency: BI.Currency; + constructor(properties?: Upsell.IUpsellResponse); - /** Cost contactSales. */ - public contactSales: boolean; + /** UpsellResponse UpsellBanner. */ + public UpsellBanner: Upsell.IUpsellBanner[]; /** - * Creates a new Cost instance using the specified properties. + * Creates a new UpsellResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Cost instance + * @returns UpsellResponse instance */ - public static create(properties?: BI.ICost): BI.Cost; + public static create(properties?: Upsell.IUpsellResponse): Upsell.UpsellResponse; /** - * Encodes the specified Cost message. Does not implicitly {@link BI.Cost.verify|verify} messages. - * @param message Cost message or plain object to encode + * Encodes the specified UpsellResponse message. Does not implicitly {@link Upsell.UpsellResponse.verify|verify} messages. + * @param message UpsellResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.ICost, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Upsell.IUpsellResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Cost message from the specified reader or buffer. + * Decodes an UpsellResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Cost + * @returns UpsellResponse * @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.Cost; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Upsell.UpsellResponse; /** - * Creates a Cost message from a plain object. Also converts values to their respective internal types. + * Creates an UpsellResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Cost + * @returns UpsellResponse */ - public static fromObject(object: { [k: string]: any }): BI.Cost; + public static fromObject(object: { [k: string]: any }): Upsell.UpsellResponse; /** - * Creates a plain object from a Cost message. Also converts values to other types if specified. - * @param message Cost + * Creates a plain object from an UpsellResponse message. Also converts values to other types if specified. + * @param message UpsellResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.Cost, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Upsell.UpsellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Cost to JSON. + * Converts this UpsellResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Cost + * Gets the default type url for UpsellResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Cost { + /** Properties of an UpsellBanner. */ + interface IUpsellBanner { - /** AmountPer enum. */ - enum AmountPer { - UNKNOWN = 0, - MONTH = 1, - USER_MONTH = 2, - USER_CONSUMED_MONTH = 3, - ENDPOINT_MONTH = 4, - USER_YEAR = 5, - USER_CONSUMED_YEAR = 6, - YEAR = 7, - ENDPOINT_YEAR = 8 - } - } + /** UpsellBanner bannerId */ + bannerId?: (number|null); - /** Properties of an InvoiceSearchRequest. */ - interface IInvoiceSearchRequest { + /** UpsellBanner bannerOkAction */ + bannerOkAction?: (string|null); - /** InvoiceSearchRequest size */ - size?: (number|null); + /** UpsellBanner bannerOkButton */ + bannerOkButton?: (string|null); - /** InvoiceSearchRequest startingAfterId */ - startingAfterId?: (number|null); + /** UpsellBanner bannerCancelAction */ + bannerCancelAction?: (string|null); - /** InvoiceSearchRequest allInvoicesUnfiltered */ - allInvoicesUnfiltered?: (boolean|null); + /** UpsellBanner bannerCancelButton */ + bannerCancelButton?: (string|null); + + /** UpsellBanner bannerMessage */ + bannerMessage?: (string|null); + + /** UpsellBanner locale */ + locale?: (string|null); } - /** Represents an InvoiceSearchRequest. */ - class InvoiceSearchRequest implements IInvoiceSearchRequest { + /** Represents an UpsellBanner. */ + class UpsellBanner implements IUpsellBanner { /** - * Constructs a new InvoiceSearchRequest. + * Constructs a new UpsellBanner. * @param [properties] Properties to set */ - constructor(properties?: BI.IInvoiceSearchRequest); + constructor(properties?: Upsell.IUpsellBanner); - /** InvoiceSearchRequest size. */ - public size: number; + /** UpsellBanner bannerId. */ + public bannerId: number; - /** InvoiceSearchRequest startingAfterId. */ - public startingAfterId: number; + /** UpsellBanner bannerOkAction. */ + public bannerOkAction: string; - /** InvoiceSearchRequest allInvoicesUnfiltered. */ - public allInvoicesUnfiltered: boolean; + /** UpsellBanner bannerOkButton. */ + public bannerOkButton: string; + + /** UpsellBanner bannerCancelAction. */ + public bannerCancelAction: string; + + /** UpsellBanner bannerCancelButton. */ + public bannerCancelButton: string; + + /** UpsellBanner bannerMessage. */ + public bannerMessage: string; + + /** UpsellBanner locale. */ + public locale: string; /** - * Creates a new InvoiceSearchRequest instance using the specified properties. + * Creates a new UpsellBanner instance using the specified properties. * @param [properties] Properties to set - * @returns InvoiceSearchRequest instance + * @returns UpsellBanner instance */ - public static create(properties?: BI.IInvoiceSearchRequest): BI.InvoiceSearchRequest; + public static create(properties?: Upsell.IUpsellBanner): Upsell.UpsellBanner; /** - * Encodes the specified InvoiceSearchRequest message. Does not implicitly {@link BI.InvoiceSearchRequest.verify|verify} messages. - * @param message InvoiceSearchRequest message or plain object to encode + * Encodes the specified UpsellBanner message. Does not implicitly {@link Upsell.UpsellBanner.verify|verify} messages. + * @param message UpsellBanner message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IInvoiceSearchRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Upsell.IUpsellBanner, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InvoiceSearchRequest message from the specified reader or buffer. + * Decodes an UpsellBanner message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InvoiceSearchRequest + * @returns UpsellBanner * @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.InvoiceSearchRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Upsell.UpsellBanner; /** - * Creates an InvoiceSearchRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpsellBanner message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InvoiceSearchRequest + * @returns UpsellBanner */ - public static fromObject(object: { [k: string]: any }): BI.InvoiceSearchRequest; + public static fromObject(object: { [k: string]: any }): Upsell.UpsellBanner; /** - * Creates a plain object from an InvoiceSearchRequest message. Also converts values to other types if specified. - * @param message InvoiceSearchRequest + * Creates a plain object from an UpsellBanner message. Also converts values to other types if specified. + * @param message UpsellBanner * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.InvoiceSearchRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Upsell.UpsellBanner, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InvoiceSearchRequest to JSON. + * Converts this UpsellBanner to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InvoiceSearchRequest + * Gets the default type url for UpsellBanner * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an InvoiceSearchResponse. */ - interface IInvoiceSearchResponse { + /** ClientType enum. */ + enum ClientType { + DEFAULT_CLIENT_TYPE = 0, + ALL = 1, + ANDROID = 2, + IOS = 3, + MICROSOFT = 4, + WEBAPP = 5 + } + + /** ClientVersion enum. */ + enum ClientVersion { + DEFAULT_VERSION = 0, + SUPPORTS_ALL = 1, + BASEVERSION = 14, + ABOVERANGE = 15 + } +} + +/** Namespace BI. */ +export namespace BI { + + /** Currency enum. */ + enum Currency { + UNKNOWN = 0, + USD = 1, + GBP = 2, + JPY = 3, + EUR = 4, + AUD = 5, + CAD = 6 + } + + /** Properties of a ValidateSessionTokenRequest. */ + interface IValidateSessionTokenRequest { + + /** ValidateSessionTokenRequest encryptedSessionToken */ + encryptedSessionToken?: (Uint8Array|null); + + /** ValidateSessionTokenRequest returnMcEnterpiseIds */ + returnMcEnterpiseIds?: (boolean|null); - /** InvoiceSearchResponse invoices */ - invoices?: (BI.IInvoice[]|null); + /** ValidateSessionTokenRequest ip */ + ip?: (string|null); } - /** Represents an InvoiceSearchResponse. */ - class InvoiceSearchResponse implements IInvoiceSearchResponse { + /** Represents a ValidateSessionTokenRequest. */ + class ValidateSessionTokenRequest implements IValidateSessionTokenRequest { /** - * Constructs a new InvoiceSearchResponse. + * Constructs a new ValidateSessionTokenRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IInvoiceSearchResponse); + constructor(properties?: BI.IValidateSessionTokenRequest); - /** InvoiceSearchResponse invoices. */ - public invoices: BI.IInvoice[]; + /** ValidateSessionTokenRequest encryptedSessionToken. */ + public encryptedSessionToken: Uint8Array; + + /** ValidateSessionTokenRequest returnMcEnterpiseIds. */ + public returnMcEnterpiseIds: boolean; + + /** ValidateSessionTokenRequest ip. */ + public ip: string; /** - * Creates a new InvoiceSearchResponse instance using the specified properties. + * Creates a new ValidateSessionTokenRequest instance using the specified properties. * @param [properties] Properties to set - * @returns InvoiceSearchResponse instance + * @returns ValidateSessionTokenRequest instance */ - public static create(properties?: BI.IInvoiceSearchResponse): BI.InvoiceSearchResponse; + public static create(properties?: BI.IValidateSessionTokenRequest): BI.ValidateSessionTokenRequest; /** - * Encodes the specified InvoiceSearchResponse message. Does not implicitly {@link BI.InvoiceSearchResponse.verify|verify} messages. - * @param message InvoiceSearchResponse message or plain object to encode + * Encodes the specified ValidateSessionTokenRequest message. Does not implicitly {@link BI.ValidateSessionTokenRequest.verify|verify} messages. + * @param message ValidateSessionTokenRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IInvoiceSearchResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IValidateSessionTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InvoiceSearchResponse message from the specified reader or buffer. + * Decodes a ValidateSessionTokenRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InvoiceSearchResponse + * @returns ValidateSessionTokenRequest * @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.InvoiceSearchResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.ValidateSessionTokenRequest; /** - * Creates an InvoiceSearchResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateSessionTokenRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InvoiceSearchResponse + * @returns ValidateSessionTokenRequest */ - public static fromObject(object: { [k: string]: any }): BI.InvoiceSearchResponse; + public static fromObject(object: { [k: string]: any }): BI.ValidateSessionTokenRequest; /** - * Creates a plain object from an InvoiceSearchResponse message. Also converts values to other types if specified. - * @param message InvoiceSearchResponse + * Creates a plain object from a ValidateSessionTokenRequest message. Also converts values to other types if specified. + * @param message ValidateSessionTokenRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.InvoiceSearchResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.ValidateSessionTokenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InvoiceSearchResponse to JSON. + * Converts this ValidateSessionTokenRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InvoiceSearchResponse + * Gets the default type url for ValidateSessionTokenRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Invoice. */ - interface IInvoice { + /** Properties of a ValidateSessionTokenResponse. */ + interface IValidateSessionTokenResponse { - /** Invoice id */ - id?: (number|null); + /** ValidateSessionTokenResponse username */ + username?: (string|null); - /** Invoice invoiceNumber */ - invoiceNumber?: (string|null); + /** ValidateSessionTokenResponse userId */ + userId?: (number|null); - /** Invoice invoiceDate */ - invoiceDate?: (number|null); + /** ValidateSessionTokenResponse enterpriseUserId */ + enterpriseUserId?: (number|null); - /** Invoice licenseCount */ - licenseCount?: (number|null); + /** ValidateSessionTokenResponse status */ + status?: (BI.ValidateSessionTokenResponse.Status|null); - /** Invoice totalCost */ - totalCost?: (BI.Invoice.ICost|null); + /** ValidateSessionTokenResponse statusMessage */ + statusMessage?: (string|null); - /** Invoice invoiceType */ - invoiceType?: (BI.Invoice.Type|null); + /** ValidateSessionTokenResponse mcEnterpriseIds */ + mcEnterpriseIds?: (number[]|null); + + /** ValidateSessionTokenResponse hasMSPPermission */ + hasMSPPermission?: (boolean|null); + + /** ValidateSessionTokenResponse deletedMcEnterpriseIds */ + deletedMcEnterpriseIds?: (number[]|null); } - /** Represents an Invoice. */ - class Invoice implements IInvoice { + /** Represents a ValidateSessionTokenResponse. */ + class ValidateSessionTokenResponse implements IValidateSessionTokenResponse { /** - * Constructs a new Invoice. + * Constructs a new ValidateSessionTokenResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IInvoice); + constructor(properties?: BI.IValidateSessionTokenResponse); - /** Invoice id. */ - public id: number; + /** ValidateSessionTokenResponse username. */ + public username: string; - /** Invoice invoiceNumber. */ - public invoiceNumber: string; + /** ValidateSessionTokenResponse userId. */ + public userId: number; - /** Invoice invoiceDate. */ - public invoiceDate: number; + /** ValidateSessionTokenResponse enterpriseUserId. */ + public enterpriseUserId: number; - /** Invoice licenseCount. */ - public licenseCount: number; + /** ValidateSessionTokenResponse status. */ + public status: BI.ValidateSessionTokenResponse.Status; - /** Invoice totalCost. */ - public totalCost?: (BI.Invoice.ICost|null); + /** ValidateSessionTokenResponse statusMessage. */ + public statusMessage: string; - /** Invoice invoiceType. */ - public invoiceType: BI.Invoice.Type; + /** ValidateSessionTokenResponse mcEnterpriseIds. */ + public mcEnterpriseIds: number[]; + + /** ValidateSessionTokenResponse hasMSPPermission. */ + public hasMSPPermission: boolean; + + /** ValidateSessionTokenResponse deletedMcEnterpriseIds. */ + public deletedMcEnterpriseIds: number[]; /** - * Creates a new Invoice instance using the specified properties. + * Creates a new ValidateSessionTokenResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Invoice instance + * @returns ValidateSessionTokenResponse instance */ - public static create(properties?: BI.IInvoice): BI.Invoice; + public static create(properties?: BI.IValidateSessionTokenResponse): BI.ValidateSessionTokenResponse; /** - * Encodes the specified Invoice message. Does not implicitly {@link BI.Invoice.verify|verify} messages. - * @param message Invoice message or plain object to encode + * Encodes the specified ValidateSessionTokenResponse message. Does not implicitly {@link BI.ValidateSessionTokenResponse.verify|verify} messages. + * @param message ValidateSessionTokenResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IInvoice, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IValidateSessionTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Invoice message from the specified reader or buffer. + * Decodes a ValidateSessionTokenResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Invoice + * @returns ValidateSessionTokenResponse * @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.Invoice; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.ValidateSessionTokenResponse; /** - * Creates an Invoice message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateSessionTokenResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Invoice + * @returns ValidateSessionTokenResponse */ - public static fromObject(object: { [k: string]: any }): BI.Invoice; + public static fromObject(object: { [k: string]: any }): BI.ValidateSessionTokenResponse; /** - * Creates a plain object from an Invoice message. Also converts values to other types if specified. - * @param message Invoice + * Creates a plain object from a ValidateSessionTokenResponse message. Also converts values to other types if specified. + * @param message ValidateSessionTokenResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.Invoice, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.ValidateSessionTokenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Invoice to JSON. + * Converts this ValidateSessionTokenResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Invoice + * Gets the default type url for ValidateSessionTokenResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Invoice { - - /** Properties of a Cost. */ - interface ICost { - - /** Cost amount */ - amount?: (number|null); - - /** Cost currency */ - currency?: (BI.Currency|null); - } - - /** Represents a Cost. */ - class Cost implements ICost { - - /** - * Constructs a new Cost. - * @param [properties] Properties to set - */ - constructor(properties?: BI.Invoice.ICost); - - /** Cost amount. */ - public amount: number; - - /** Cost currency. */ - public currency: BI.Currency; - - /** - * Creates a new Cost instance using the specified properties. - * @param [properties] Properties to set - * @returns Cost instance - */ - public static create(properties?: BI.Invoice.ICost): BI.Invoice.Cost; - - /** - * Encodes the specified Cost message. Does not implicitly {@link BI.Invoice.Cost.verify|verify} messages. - * @param message Cost message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: BI.Invoice.ICost, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Cost message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Cost - * @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.Invoice.Cost; - - /** - * Creates a Cost message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Cost - */ - public static fromObject(object: { [k: string]: any }): BI.Invoice.Cost; - - /** - * Creates a plain object from a Cost message. Also converts values to other types if specified. - * @param message Cost - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: BI.Invoice.Cost, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Cost to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Cost - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Type enum. */ - enum Type { - UNKNOWN = 0, - NEW = 1, - RENEWAL = 2, - UPGRADE = 3, - RESTORE = 4, - ASSOCIATION = 5, - OVERAGE = 6 + } + + namespace ValidateSessionTokenResponse { + + /** Status enum. */ + enum Status { + VALID = 0, + NOT_VALID = 1, + EXPIRED = 2, + IP_BLOCKED = 3, + INVALID_CLIENT_VERSION = 4 } } - /** Properties of a VaultInvoicesListRequest. */ - interface IVaultInvoicesListRequest { + /** Properties of a SubscriptionStatusRequest. */ + interface ISubscriptionStatusRequest { } - /** Represents a VaultInvoicesListRequest. */ - class VaultInvoicesListRequest implements IVaultInvoicesListRequest { + /** Represents a SubscriptionStatusRequest. */ + class SubscriptionStatusRequest implements ISubscriptionStatusRequest { /** - * Constructs a new VaultInvoicesListRequest. + * Constructs a new SubscriptionStatusRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IVaultInvoicesListRequest); + constructor(properties?: BI.ISubscriptionStatusRequest); /** - * Creates a new VaultInvoicesListRequest instance using the specified properties. + * Creates a new SubscriptionStatusRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VaultInvoicesListRequest instance + * @returns SubscriptionStatusRequest instance */ - public static create(properties?: BI.IVaultInvoicesListRequest): BI.VaultInvoicesListRequest; + public static create(properties?: BI.ISubscriptionStatusRequest): BI.SubscriptionStatusRequest; /** - * Encodes the specified VaultInvoicesListRequest message. Does not implicitly {@link BI.VaultInvoicesListRequest.verify|verify} messages. - * @param message VaultInvoicesListRequest message or plain object to encode + * Encodes the specified SubscriptionStatusRequest message. Does not implicitly {@link BI.SubscriptionStatusRequest.verify|verify} messages. + * @param message SubscriptionStatusRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IVaultInvoicesListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ISubscriptionStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VaultInvoicesListRequest message from the specified reader or buffer. + * Decodes a SubscriptionStatusRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VaultInvoicesListRequest + * @returns SubscriptionStatusRequest * @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.VaultInvoicesListRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionStatusRequest; /** - * Creates a VaultInvoicesListRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SubscriptionStatusRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VaultInvoicesListRequest + * @returns SubscriptionStatusRequest */ - public static fromObject(object: { [k: string]: any }): BI.VaultInvoicesListRequest; + public static fromObject(object: { [k: string]: any }): BI.SubscriptionStatusRequest; /** - * Creates a plain object from a VaultInvoicesListRequest message. Also converts values to other types if specified. - * @param message VaultInvoicesListRequest + * Creates a plain object from a SubscriptionStatusRequest message. Also converts values to other types if specified. + * @param message SubscriptionStatusRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.VaultInvoicesListRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.SubscriptionStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VaultInvoicesListRequest to JSON. + * Converts this SubscriptionStatusRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VaultInvoicesListRequest + * Gets the default type url for SubscriptionStatusRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VaultInvoicesListResponse. */ - interface IVaultInvoicesListResponse { + /** Properties of a SubscriptionStatusResponse. */ + interface ISubscriptionStatusResponse { - /** VaultInvoicesListResponse invoices */ - invoices?: (BI.IVaultInvoice[]|null); + /** SubscriptionStatusResponse autoRenewal */ + autoRenewal?: (BI.IAutoRenewal|null); + + /** SubscriptionStatusResponse currentPaymentMethod */ + currentPaymentMethod?: (BI.IPaymentMethod|null); + + /** SubscriptionStatusResponse checkoutLink */ + checkoutLink?: (string|null); + + /** SubscriptionStatusResponse licenseCreateDate */ + licenseCreateDate?: (number|null); + + /** SubscriptionStatusResponse isDistributor */ + isDistributor?: (boolean|null); + + /** SubscriptionStatusResponse isLegacyMsp */ + isLegacyMsp?: (boolean|null); + + /** SubscriptionStatusResponse licenseStats */ + licenseStats?: (BI.ILicenseStats[]|null); + + /** SubscriptionStatusResponse gradientStatus */ + gradientStatus?: (BI.GradientIntegrationStatus|null); + + /** SubscriptionStatusResponse hideTrialBanner */ + hideTrialBanner?: (boolean|null); + + /** SubscriptionStatusResponse gradientLastSyncDate */ + gradientLastSyncDate?: (string|null); + + /** SubscriptionStatusResponse gradientNextSyncDate */ + gradientNextSyncDate?: (string|null); + + /** SubscriptionStatusResponse isGradientMappingPending */ + isGradientMappingPending?: (boolean|null); + + /** SubscriptionStatusResponse nhi */ + nhi?: (BI.INhiBilling|null); + + /** SubscriptionStatusResponse freeKsmApiCallsCount */ + freeKsmApiCallsCount?: (number|null); + + /** SubscriptionStatusResponse ksm */ + ksm?: (BI.IKsmBilling|null); } - /** Represents a VaultInvoicesListResponse. */ - class VaultInvoicesListResponse implements IVaultInvoicesListResponse { + /** Represents a SubscriptionStatusResponse. */ + class SubscriptionStatusResponse implements ISubscriptionStatusResponse { /** - * Constructs a new VaultInvoicesListResponse. + * Constructs a new SubscriptionStatusResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IVaultInvoicesListResponse); + constructor(properties?: BI.ISubscriptionStatusResponse); - /** VaultInvoicesListResponse invoices. */ - public invoices: BI.IVaultInvoice[]; + /** SubscriptionStatusResponse autoRenewal. */ + public autoRenewal?: (BI.IAutoRenewal|null); + + /** SubscriptionStatusResponse currentPaymentMethod. */ + public currentPaymentMethod?: (BI.IPaymentMethod|null); + + /** SubscriptionStatusResponse checkoutLink. */ + public checkoutLink: string; + + /** SubscriptionStatusResponse licenseCreateDate. */ + public licenseCreateDate: number; + + /** SubscriptionStatusResponse isDistributor. */ + public isDistributor: boolean; + + /** SubscriptionStatusResponse isLegacyMsp. */ + public isLegacyMsp: boolean; + + /** SubscriptionStatusResponse licenseStats. */ + public licenseStats: BI.ILicenseStats[]; + + /** SubscriptionStatusResponse gradientStatus. */ + public gradientStatus: BI.GradientIntegrationStatus; + + /** SubscriptionStatusResponse hideTrialBanner. */ + public hideTrialBanner: boolean; + + /** SubscriptionStatusResponse gradientLastSyncDate. */ + public gradientLastSyncDate: string; + + /** SubscriptionStatusResponse gradientNextSyncDate. */ + public gradientNextSyncDate: string; + + /** SubscriptionStatusResponse isGradientMappingPending. */ + public isGradientMappingPending: boolean; + + /** SubscriptionStatusResponse nhi. */ + public nhi?: (BI.INhiBilling|null); + + /** SubscriptionStatusResponse freeKsmApiCallsCount. */ + public freeKsmApiCallsCount: number; + + /** SubscriptionStatusResponse ksm. */ + public ksm?: (BI.IKsmBilling|null); /** - * Creates a new VaultInvoicesListResponse instance using the specified properties. + * Creates a new SubscriptionStatusResponse instance using the specified properties. * @param [properties] Properties to set - * @returns VaultInvoicesListResponse instance + * @returns SubscriptionStatusResponse instance */ - public static create(properties?: BI.IVaultInvoicesListResponse): BI.VaultInvoicesListResponse; + public static create(properties?: BI.ISubscriptionStatusResponse): BI.SubscriptionStatusResponse; /** - * Encodes the specified VaultInvoicesListResponse message. Does not implicitly {@link BI.VaultInvoicesListResponse.verify|verify} messages. - * @param message VaultInvoicesListResponse message or plain object to encode + * Encodes the specified SubscriptionStatusResponse message. Does not implicitly {@link BI.SubscriptionStatusResponse.verify|verify} messages. + * @param message SubscriptionStatusResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IVaultInvoicesListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ISubscriptionStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VaultInvoicesListResponse message from the specified reader or buffer. + * Decodes a SubscriptionStatusResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VaultInvoicesListResponse + * @returns SubscriptionStatusResponse * @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.VaultInvoicesListResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionStatusResponse; /** - * Creates a VaultInvoicesListResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SubscriptionStatusResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VaultInvoicesListResponse + * @returns SubscriptionStatusResponse */ - public static fromObject(object: { [k: string]: any }): BI.VaultInvoicesListResponse; + public static fromObject(object: { [k: string]: any }): BI.SubscriptionStatusResponse; /** - * Creates a plain object from a VaultInvoicesListResponse message. Also converts values to other types if specified. - * @param message VaultInvoicesListResponse + * Creates a plain object from a SubscriptionStatusResponse message. Also converts values to other types if specified. + * @param message SubscriptionStatusResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.VaultInvoicesListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.SubscriptionStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VaultInvoicesListResponse to JSON. + * Converts this SubscriptionStatusResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VaultInvoicesListResponse + * Gets the default type url for SubscriptionStatusResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VaultInvoice. */ - interface IVaultInvoice { + /** Properties of a KsmBilling. */ + interface IKsmBilling { - /** VaultInvoice id */ - id?: (number|null); + /** KsmBilling billingStartTimestamp */ + billingStartTimestamp?: (number|null); - /** VaultInvoice invoiceNumber */ - invoiceNumber?: (string|null); + /** KsmBilling billingEndTimestamp */ + billingEndTimestamp?: (number|null); - /** VaultInvoice dateCreated */ - dateCreated?: (number|null); + /** KsmBilling currentTierId */ + currentTierId?: (number|null); - /** VaultInvoice total */ - total?: (BI.Invoice.ICost|null); + /** KsmBilling enterpriseBlocks */ + enterpriseBlocks?: (number|null); - /** VaultInvoice purchaseType */ - purchaseType?: (BI.Invoice.Type|null); + /** KsmBilling currentTierCeiling */ + currentTierCeiling?: (number|null); } - /** Represents a VaultInvoice. */ - class VaultInvoice implements IVaultInvoice { + /** Represents a KsmBilling. */ + class KsmBilling implements IKsmBilling { /** - * Constructs a new VaultInvoice. + * Constructs a new KsmBilling. * @param [properties] Properties to set */ - constructor(properties?: BI.IVaultInvoice); + constructor(properties?: BI.IKsmBilling); - /** VaultInvoice id. */ - public id: number; + /** KsmBilling billingStartTimestamp. */ + public billingStartTimestamp: number; - /** VaultInvoice invoiceNumber. */ - public invoiceNumber: string; + /** KsmBilling billingEndTimestamp. */ + public billingEndTimestamp: number; - /** VaultInvoice dateCreated. */ - public dateCreated: number; + /** KsmBilling currentTierId. */ + public currentTierId: number; - /** VaultInvoice total. */ - public total?: (BI.Invoice.ICost|null); + /** KsmBilling enterpriseBlocks. */ + public enterpriseBlocks: number; - /** VaultInvoice purchaseType. */ - public purchaseType: BI.Invoice.Type; + /** KsmBilling currentTierCeiling. */ + public currentTierCeiling: number; /** - * Creates a new VaultInvoice instance using the specified properties. + * Creates a new KsmBilling instance using the specified properties. * @param [properties] Properties to set - * @returns VaultInvoice instance + * @returns KsmBilling instance */ - public static create(properties?: BI.IVaultInvoice): BI.VaultInvoice; + public static create(properties?: BI.IKsmBilling): BI.KsmBilling; - /** - * Encodes the specified VaultInvoice message. Does not implicitly {@link BI.VaultInvoice.verify|verify} messages. - * @param message VaultInvoice message or plain object to encode + /** + * Encodes the specified KsmBilling message. Does not implicitly {@link BI.KsmBilling.verify|verify} messages. + * @param message KsmBilling message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IVaultInvoice, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IKsmBilling, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VaultInvoice message from the specified reader or buffer. + * Decodes a KsmBilling message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VaultInvoice + * @returns KsmBilling * @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.VaultInvoice; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.KsmBilling; /** - * Creates a VaultInvoice message from a plain object. Also converts values to their respective internal types. + * Creates a KsmBilling message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VaultInvoice + * @returns KsmBilling */ - public static fromObject(object: { [k: string]: any }): BI.VaultInvoice; + public static fromObject(object: { [k: string]: any }): BI.KsmBilling; /** - * Creates a plain object from a VaultInvoice message. Also converts values to other types if specified. - * @param message VaultInvoice + * Creates a plain object from a KsmBilling message. Also converts values to other types if specified. + * @param message KsmBilling * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.VaultInvoice, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.KsmBilling, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VaultInvoice to JSON. + * Converts this KsmBilling to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VaultInvoice + * Gets the default type url for KsmBilling * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an InvoiceDownloadRequest. */ - interface IInvoiceDownloadRequest { + /** Properties of a NhiBilling. */ + interface INhiBilling { - /** InvoiceDownloadRequest invoiceNumber */ - invoiceNumber?: (string|null); + /** NhiBilling billingStartTimestamp */ + billingStartTimestamp?: (number|null); + + /** NhiBilling billingEndTimestamp */ + billingEndTimestamp?: (number|null); + + /** NhiBilling currentTierId */ + currentTierId?: (number|null); + + /** NhiBilling enterpriseBlocks */ + enterpriseBlocks?: (number|null); + + /** NhiBilling currentTierCeiling */ + currentTierCeiling?: (number|null); + + /** NhiBilling billingPeriods */ + billingPeriods?: (BI.INhiBillingPeriod[]|null); } - /** Represents an InvoiceDownloadRequest. */ - class InvoiceDownloadRequest implements IInvoiceDownloadRequest { + /** Represents a NhiBilling. */ + class NhiBilling implements INhiBilling { /** - * Constructs a new InvoiceDownloadRequest. + * Constructs a new NhiBilling. * @param [properties] Properties to set */ - constructor(properties?: BI.IInvoiceDownloadRequest); + constructor(properties?: BI.INhiBilling); - /** InvoiceDownloadRequest invoiceNumber. */ - public invoiceNumber: string; + /** NhiBilling billingStartTimestamp. */ + public billingStartTimestamp: number; + + /** NhiBilling billingEndTimestamp. */ + public billingEndTimestamp: number; + + /** NhiBilling currentTierId. */ + public currentTierId: number; + + /** NhiBilling enterpriseBlocks. */ + public enterpriseBlocks: number; + + /** NhiBilling currentTierCeiling. */ + public currentTierCeiling: number; + + /** NhiBilling billingPeriods. */ + public billingPeriods: BI.INhiBillingPeriod[]; /** - * Creates a new InvoiceDownloadRequest instance using the specified properties. + * Creates a new NhiBilling instance using the specified properties. * @param [properties] Properties to set - * @returns InvoiceDownloadRequest instance + * @returns NhiBilling instance */ - public static create(properties?: BI.IInvoiceDownloadRequest): BI.InvoiceDownloadRequest; + public static create(properties?: BI.INhiBilling): BI.NhiBilling; /** - * Encodes the specified InvoiceDownloadRequest message. Does not implicitly {@link BI.InvoiceDownloadRequest.verify|verify} messages. - * @param message InvoiceDownloadRequest message or plain object to encode + * Encodes the specified NhiBilling message. Does not implicitly {@link BI.NhiBilling.verify|verify} messages. + * @param message NhiBilling message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IInvoiceDownloadRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.INhiBilling, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InvoiceDownloadRequest message from the specified reader or buffer. + * Decodes a NhiBilling message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InvoiceDownloadRequest + * @returns NhiBilling * @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.InvoiceDownloadRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NhiBilling; /** - * Creates an InvoiceDownloadRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NhiBilling message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InvoiceDownloadRequest + * @returns NhiBilling */ - public static fromObject(object: { [k: string]: any }): BI.InvoiceDownloadRequest; + public static fromObject(object: { [k: string]: any }): BI.NhiBilling; /** - * Creates a plain object from an InvoiceDownloadRequest message. Also converts values to other types if specified. - * @param message InvoiceDownloadRequest + * Creates a plain object from a NhiBilling message. Also converts values to other types if specified. + * @param message NhiBilling * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.InvoiceDownloadRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.NhiBilling, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InvoiceDownloadRequest to JSON. + * Converts this NhiBilling to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InvoiceDownloadRequest + * Gets the default type url for NhiBilling * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an InvoiceDownloadResponse. */ - interface IInvoiceDownloadResponse { + /** Properties of a NhiBillingPeriod. */ + interface INhiBillingPeriod { - /** InvoiceDownloadResponse link */ - link?: (string|null); + /** NhiBillingPeriod startTimestamp */ + startTimestamp?: (number|null); - /** InvoiceDownloadResponse fileName */ - fileName?: (string|null); + /** NhiBillingPeriod endTimestamp */ + endTimestamp?: (number|null); } - /** Represents an InvoiceDownloadResponse. */ - class InvoiceDownloadResponse implements IInvoiceDownloadResponse { + /** Represents a NhiBillingPeriod. */ + class NhiBillingPeriod implements INhiBillingPeriod { /** - * Constructs a new InvoiceDownloadResponse. + * Constructs a new NhiBillingPeriod. * @param [properties] Properties to set */ - constructor(properties?: BI.IInvoiceDownloadResponse); + constructor(properties?: BI.INhiBillingPeriod); - /** InvoiceDownloadResponse link. */ - public link: string; + /** NhiBillingPeriod startTimestamp. */ + public startTimestamp: number; - /** InvoiceDownloadResponse fileName. */ - public fileName: string; + /** NhiBillingPeriod endTimestamp. */ + public endTimestamp: number; /** - * Creates a new InvoiceDownloadResponse instance using the specified properties. + * Creates a new NhiBillingPeriod instance using the specified properties. * @param [properties] Properties to set - * @returns InvoiceDownloadResponse instance + * @returns NhiBillingPeriod instance */ - public static create(properties?: BI.IInvoiceDownloadResponse): BI.InvoiceDownloadResponse; + public static create(properties?: BI.INhiBillingPeriod): BI.NhiBillingPeriod; /** - * Encodes the specified InvoiceDownloadResponse message. Does not implicitly {@link BI.InvoiceDownloadResponse.verify|verify} messages. - * @param message InvoiceDownloadResponse message or plain object to encode + * Encodes the specified NhiBillingPeriod message. Does not implicitly {@link BI.NhiBillingPeriod.verify|verify} messages. + * @param message NhiBillingPeriod message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IInvoiceDownloadResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.INhiBillingPeriod, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InvoiceDownloadResponse message from the specified reader or buffer. + * Decodes a NhiBillingPeriod message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InvoiceDownloadResponse + * @returns NhiBillingPeriod * @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.InvoiceDownloadResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NhiBillingPeriod; /** - * Creates an InvoiceDownloadResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NhiBillingPeriod message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InvoiceDownloadResponse + * @returns NhiBillingPeriod */ - public static fromObject(object: { [k: string]: any }): BI.InvoiceDownloadResponse; + public static fromObject(object: { [k: string]: any }): BI.NhiBillingPeriod; /** - * Creates a plain object from an InvoiceDownloadResponse message. Also converts values to other types if specified. - * @param message InvoiceDownloadResponse + * Creates a plain object from a NhiBillingPeriod message. Also converts values to other types if specified. + * @param message NhiBillingPeriod * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.InvoiceDownloadResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.NhiBillingPeriod, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InvoiceDownloadResponse to JSON. + * Converts this NhiBillingPeriod to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InvoiceDownloadResponse + * Gets the default type url for NhiBillingPeriod * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VaultInvoiceDownloadLinkRequest. */ - interface IVaultInvoiceDownloadLinkRequest { + /** Properties of a LicenseStats. */ + interface ILicenseStats { - /** VaultInvoiceDownloadLinkRequest invoiceNumber */ - invoiceNumber?: (string|null); + /** LicenseStats type */ + type?: (BI.LicenseStats.Type|null); + + /** LicenseStats available */ + available?: (number|null); + + /** LicenseStats used */ + used?: (number|null); } - /** Represents a VaultInvoiceDownloadLinkRequest. */ - class VaultInvoiceDownloadLinkRequest implements IVaultInvoiceDownloadLinkRequest { + /** Represents a LicenseStats. */ + class LicenseStats implements ILicenseStats { /** - * Constructs a new VaultInvoiceDownloadLinkRequest. + * Constructs a new LicenseStats. * @param [properties] Properties to set */ - constructor(properties?: BI.IVaultInvoiceDownloadLinkRequest); + constructor(properties?: BI.ILicenseStats); - /** VaultInvoiceDownloadLinkRequest invoiceNumber. */ - public invoiceNumber: string; + /** LicenseStats type. */ + public type: BI.LicenseStats.Type; + + /** LicenseStats available. */ + public available: number; + + /** LicenseStats used. */ + public used: number; /** - * Creates a new VaultInvoiceDownloadLinkRequest instance using the specified properties. + * Creates a new LicenseStats instance using the specified properties. * @param [properties] Properties to set - * @returns VaultInvoiceDownloadLinkRequest instance + * @returns LicenseStats instance */ - public static create(properties?: BI.IVaultInvoiceDownloadLinkRequest): BI.VaultInvoiceDownloadLinkRequest; + public static create(properties?: BI.ILicenseStats): BI.LicenseStats; /** - * Encodes the specified VaultInvoiceDownloadLinkRequest message. Does not implicitly {@link BI.VaultInvoiceDownloadLinkRequest.verify|verify} messages. - * @param message VaultInvoiceDownloadLinkRequest message or plain object to encode + * Encodes the specified LicenseStats message. Does not implicitly {@link BI.LicenseStats.verify|verify} messages. + * @param message LicenseStats message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IVaultInvoiceDownloadLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ILicenseStats, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VaultInvoiceDownloadLinkRequest message from the specified reader or buffer. + * Decodes a LicenseStats message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VaultInvoiceDownloadLinkRequest + * @returns LicenseStats * @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.VaultInvoiceDownloadLinkRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.LicenseStats; /** - * Creates a VaultInvoiceDownloadLinkRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LicenseStats message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VaultInvoiceDownloadLinkRequest + * @returns LicenseStats */ - public static fromObject(object: { [k: string]: any }): BI.VaultInvoiceDownloadLinkRequest; + public static fromObject(object: { [k: string]: any }): BI.LicenseStats; /** - * Creates a plain object from a VaultInvoiceDownloadLinkRequest message. Also converts values to other types if specified. - * @param message VaultInvoiceDownloadLinkRequest + * Creates a plain object from a LicenseStats message. Also converts values to other types if specified. + * @param message LicenseStats * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.VaultInvoiceDownloadLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.LicenseStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VaultInvoiceDownloadLinkRequest to JSON. + * Converts this LicenseStats to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VaultInvoiceDownloadLinkRequest + * Gets the default type url for LicenseStats * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VaultInvoiceDownloadLinkResponse. */ - interface IVaultInvoiceDownloadLinkResponse { + namespace LicenseStats { + + /** Type enum. */ + enum Type { + LICENSE_STAT_UNKNOWN = 0, + MSP_BASE = 1, + MC_BUSINESS = 2, + MC_BUSINESS_PLUS = 3, + MC_ENTERPRISE = 4, + MC_ENTERPRISE_PLUS = 5, + B2B_BUSINESS_STARTER = 6, + B2B_BUSINESS = 7, + B2B_ENTERPRISE = 8 + } + } + + /** Properties of an AutoRenewal. */ + interface IAutoRenewal { + + /** AutoRenewal nextOn */ + nextOn?: (number|null); - /** VaultInvoiceDownloadLinkResponse link */ - link?: (string|null); + /** AutoRenewal daysLeft */ + daysLeft?: (number|null); - /** VaultInvoiceDownloadLinkResponse fileName */ - fileName?: (string|null); + /** AutoRenewal isTrial */ + isTrial?: (boolean|null); } - /** Represents a VaultInvoiceDownloadLinkResponse. */ - class VaultInvoiceDownloadLinkResponse implements IVaultInvoiceDownloadLinkResponse { + /** Represents an AutoRenewal. */ + class AutoRenewal implements IAutoRenewal { /** - * Constructs a new VaultInvoiceDownloadLinkResponse. + * Constructs a new AutoRenewal. * @param [properties] Properties to set */ - constructor(properties?: BI.IVaultInvoiceDownloadLinkResponse); + constructor(properties?: BI.IAutoRenewal); - /** VaultInvoiceDownloadLinkResponse link. */ - public link: string; + /** AutoRenewal nextOn. */ + public nextOn: number; - /** VaultInvoiceDownloadLinkResponse fileName. */ - public fileName: string; + /** AutoRenewal daysLeft. */ + public daysLeft: number; + + /** AutoRenewal isTrial. */ + public isTrial: boolean; /** - * Creates a new VaultInvoiceDownloadLinkResponse instance using the specified properties. + * Creates a new AutoRenewal instance using the specified properties. * @param [properties] Properties to set - * @returns VaultInvoiceDownloadLinkResponse instance + * @returns AutoRenewal instance */ - public static create(properties?: BI.IVaultInvoiceDownloadLinkResponse): BI.VaultInvoiceDownloadLinkResponse; + public static create(properties?: BI.IAutoRenewal): BI.AutoRenewal; /** - * Encodes the specified VaultInvoiceDownloadLinkResponse message. Does not implicitly {@link BI.VaultInvoiceDownloadLinkResponse.verify|verify} messages. - * @param message VaultInvoiceDownloadLinkResponse message or plain object to encode + * Encodes the specified AutoRenewal message. Does not implicitly {@link BI.AutoRenewal.verify|verify} messages. + * @param message AutoRenewal message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IVaultInvoiceDownloadLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IAutoRenewal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VaultInvoiceDownloadLinkResponse message from the specified reader or buffer. + * Decodes an AutoRenewal message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VaultInvoiceDownloadLinkResponse + * @returns AutoRenewal * @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.VaultInvoiceDownloadLinkResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.AutoRenewal; /** - * Creates a VaultInvoiceDownloadLinkResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AutoRenewal message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VaultInvoiceDownloadLinkResponse + * @returns AutoRenewal */ - public static fromObject(object: { [k: string]: any }): BI.VaultInvoiceDownloadLinkResponse; + public static fromObject(object: { [k: string]: any }): BI.AutoRenewal; /** - * Creates a plain object from a VaultInvoiceDownloadLinkResponse message. Also converts values to other types if specified. - * @param message VaultInvoiceDownloadLinkResponse + * Creates a plain object from an AutoRenewal message. Also converts values to other types if specified. + * @param message AutoRenewal * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.VaultInvoiceDownloadLinkResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.AutoRenewal, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VaultInvoiceDownloadLinkResponse to JSON. + * Converts this AutoRenewal to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VaultInvoiceDownloadLinkResponse + * Gets the default type url for AutoRenewal * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReportingDailySnapshotRequest. */ - interface IReportingDailySnapshotRequest { + /** Properties of a PaymentMethod. */ + interface IPaymentMethod { - /** ReportingDailySnapshotRequest month */ - month?: (number|null); + /** PaymentMethod type */ + type?: (BI.PaymentMethod.Type|null); - /** ReportingDailySnapshotRequest year */ - year?: (number|null); + /** PaymentMethod card */ + card?: (BI.PaymentMethod.ICard|null); + + /** PaymentMethod sepa */ + sepa?: (BI.PaymentMethod.ISepa|null); + + /** PaymentMethod paypal */ + paypal?: (BI.PaymentMethod.IPaypal|null); + + /** PaymentMethod failedBilling */ + failedBilling?: (boolean|null); + + /** PaymentMethod vendor */ + vendor?: (BI.PaymentMethod.IVendor|null); + + /** PaymentMethod purchaseOrder */ + purchaseOrder?: (BI.PaymentMethod.IPurchaseOrder|null); } - /** Represents a ReportingDailySnapshotRequest. */ - class ReportingDailySnapshotRequest implements IReportingDailySnapshotRequest { + /** Represents a PaymentMethod. */ + class PaymentMethod implements IPaymentMethod { /** - * Constructs a new ReportingDailySnapshotRequest. + * Constructs a new PaymentMethod. * @param [properties] Properties to set */ - constructor(properties?: BI.IReportingDailySnapshotRequest); + constructor(properties?: BI.IPaymentMethod); - /** ReportingDailySnapshotRequest month. */ - public month: number; + /** PaymentMethod type. */ + public type: BI.PaymentMethod.Type; - /** ReportingDailySnapshotRequest year. */ - public year: number; + /** PaymentMethod card. */ + public card?: (BI.PaymentMethod.ICard|null); + + /** PaymentMethod sepa. */ + public sepa?: (BI.PaymentMethod.ISepa|null); + + /** PaymentMethod paypal. */ + public paypal?: (BI.PaymentMethod.IPaypal|null); + + /** PaymentMethod failedBilling. */ + public failedBilling: boolean; + + /** PaymentMethod vendor. */ + public vendor?: (BI.PaymentMethod.IVendor|null); + + /** PaymentMethod purchaseOrder. */ + public purchaseOrder?: (BI.PaymentMethod.IPurchaseOrder|null); /** - * Creates a new ReportingDailySnapshotRequest instance using the specified properties. + * Creates a new PaymentMethod instance using the specified properties. * @param [properties] Properties to set - * @returns ReportingDailySnapshotRequest instance + * @returns PaymentMethod instance */ - public static create(properties?: BI.IReportingDailySnapshotRequest): BI.ReportingDailySnapshotRequest; + public static create(properties?: BI.IPaymentMethod): BI.PaymentMethod; /** - * Encodes the specified ReportingDailySnapshotRequest message. Does not implicitly {@link BI.ReportingDailySnapshotRequest.verify|verify} messages. - * @param message ReportingDailySnapshotRequest message or plain object to encode + * Encodes the specified PaymentMethod message. Does not implicitly {@link BI.PaymentMethod.verify|verify} messages. + * @param message PaymentMethod message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IReportingDailySnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IPaymentMethod, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReportingDailySnapshotRequest message from the specified reader or buffer. + * Decodes a PaymentMethod message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReportingDailySnapshotRequest + * @returns PaymentMethod * @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.ReportingDailySnapshotRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.PaymentMethod; /** - * Creates a ReportingDailySnapshotRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PaymentMethod message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReportingDailySnapshotRequest + * @returns PaymentMethod */ - public static fromObject(object: { [k: string]: any }): BI.ReportingDailySnapshotRequest; + public static fromObject(object: { [k: string]: any }): BI.PaymentMethod; /** - * Creates a plain object from a ReportingDailySnapshotRequest message. Also converts values to other types if specified. - * @param message ReportingDailySnapshotRequest + * Creates a plain object from a PaymentMethod message. Also converts values to other types if specified. + * @param message PaymentMethod * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.ReportingDailySnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.PaymentMethod, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReportingDailySnapshotRequest to JSON. + * Converts this PaymentMethod to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReportingDailySnapshotRequest + * Gets the default type url for PaymentMethod * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReportingDailySnapshotResponse. */ - interface IReportingDailySnapshotResponse { + namespace PaymentMethod { - /** ReportingDailySnapshotResponse records */ - records?: (BI.ISnapshotRecord[]|null); + /** Type enum. */ + enum Type { + CARD = 0, + SEPA = 1, + PAYPAL = 2, + NONE = 3, + VENDOR = 4, + PURCHASEORDER = 5 + } - /** ReportingDailySnapshotResponse mcEnterprises */ - mcEnterprises?: (BI.ISnapshotMcEnterprise[]|null); - } + /** Properties of a Card. */ + interface ICard { - /** Represents a ReportingDailySnapshotResponse. */ - class ReportingDailySnapshotResponse implements IReportingDailySnapshotResponse { + /** Card last4 */ + last4?: (string|null); + + /** Card brand */ + brand?: (string|null); + } + + /** Represents a Card. */ + class Card implements ICard { + + /** + * Constructs a new Card. + * @param [properties] Properties to set + */ + constructor(properties?: BI.PaymentMethod.ICard); + + /** Card last4. */ + public last4: string; + + /** Card brand. */ + public brand: string; + + /** + * Creates a new Card instance using the specified properties. + * @param [properties] Properties to set + * @returns Card instance + */ + public static create(properties?: BI.PaymentMethod.ICard): BI.PaymentMethod.Card; + + /** + * Encodes the specified Card message. Does not implicitly {@link BI.PaymentMethod.Card.verify|verify} messages. + * @param message Card message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.PaymentMethod.ICard, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Card message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Card + * @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.PaymentMethod.Card; + + /** + * Creates a Card message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Card + */ + public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.Card; + + /** + * Creates a plain object from a Card message. Also converts values to other types if specified. + * @param message Card + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.PaymentMethod.Card, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Card to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Card + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Sepa. */ + interface ISepa { - /** - * Constructs a new ReportingDailySnapshotResponse. - * @param [properties] Properties to set - */ - constructor(properties?: BI.IReportingDailySnapshotResponse); + /** Sepa last4 */ + last4?: (string|null); - /** ReportingDailySnapshotResponse records. */ - public records: BI.ISnapshotRecord[]; + /** Sepa country */ + country?: (string|null); + } - /** ReportingDailySnapshotResponse mcEnterprises. */ - public mcEnterprises: BI.ISnapshotMcEnterprise[]; + /** Represents a Sepa. */ + class Sepa implements ISepa { - /** - * Creates a new ReportingDailySnapshotResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ReportingDailySnapshotResponse instance - */ - public static create(properties?: BI.IReportingDailySnapshotResponse): BI.ReportingDailySnapshotResponse; + /** + * Constructs a new Sepa. + * @param [properties] Properties to set + */ + constructor(properties?: BI.PaymentMethod.ISepa); - /** - * Encodes the specified ReportingDailySnapshotResponse message. Does not implicitly {@link BI.ReportingDailySnapshotResponse.verify|verify} messages. - * @param message ReportingDailySnapshotResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: BI.IReportingDailySnapshotResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Sepa last4. */ + public last4: string; - /** - * Decodes a ReportingDailySnapshotResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReportingDailySnapshotResponse - * @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.ReportingDailySnapshotResponse; + /** Sepa country. */ + public country: string; - /** - * Creates a ReportingDailySnapshotResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReportingDailySnapshotResponse - */ - public static fromObject(object: { [k: string]: any }): BI.ReportingDailySnapshotResponse; + /** + * Creates a new Sepa instance using the specified properties. + * @param [properties] Properties to set + * @returns Sepa instance + */ + public static create(properties?: BI.PaymentMethod.ISepa): BI.PaymentMethod.Sepa; - /** - * Creates a plain object from a ReportingDailySnapshotResponse message. Also converts values to other types if specified. - * @param message ReportingDailySnapshotResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: BI.ReportingDailySnapshotResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified Sepa message. Does not implicitly {@link BI.PaymentMethod.Sepa.verify|verify} messages. + * @param message Sepa message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.PaymentMethod.ISepa, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this ReportingDailySnapshotResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a Sepa message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Sepa + * @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.PaymentMethod.Sepa; - /** - * Gets the default type url for ReportingDailySnapshotResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a Sepa message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Sepa + */ + public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.Sepa; - /** Properties of a SnapshotRecord. */ - interface ISnapshotRecord { + /** + * Creates a plain object from a Sepa message. Also converts values to other types if specified. + * @param message Sepa + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.PaymentMethod.Sepa, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** SnapshotRecord date */ - date?: (number|null); + /** + * Converts this Sepa to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** SnapshotRecord mcEnterpriseId */ - mcEnterpriseId?: (number|null); + /** + * Gets the default type url for Sepa + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** SnapshotRecord maxLicenseCount */ - maxLicenseCount?: (number|null); + /** Properties of a Paypal. */ + interface IPaypal { + } - /** SnapshotRecord maxFilePlanTypeId */ - maxFilePlanTypeId?: (number|null); + /** Represents a Paypal. */ + class Paypal implements IPaypal { - /** SnapshotRecord maxBasePlanId */ - maxBasePlanId?: (number|null); + /** + * Constructs a new Paypal. + * @param [properties] Properties to set + */ + constructor(properties?: BI.PaymentMethod.IPaypal); - /** SnapshotRecord addons */ - addons?: (BI.SnapshotRecord.IAddon[]|null); - } + /** + * Creates a new Paypal instance using the specified properties. + * @param [properties] Properties to set + * @returns Paypal instance + */ + public static create(properties?: BI.PaymentMethod.IPaypal): BI.PaymentMethod.Paypal; - /** Represents a SnapshotRecord. */ - class SnapshotRecord implements ISnapshotRecord { + /** + * Encodes the specified Paypal message. Does not implicitly {@link BI.PaymentMethod.Paypal.verify|verify} messages. + * @param message Paypal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.PaymentMethod.IPaypal, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new SnapshotRecord. - * @param [properties] Properties to set - */ - constructor(properties?: BI.ISnapshotRecord); + /** + * Decodes a Paypal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Paypal + * @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.PaymentMethod.Paypal; - /** SnapshotRecord date. */ - public date: number; + /** + * Creates a Paypal message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Paypal + */ + public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.Paypal; - /** SnapshotRecord mcEnterpriseId. */ - public mcEnterpriseId: number; + /** + * Creates a plain object from a Paypal message. Also converts values to other types if specified. + * @param message Paypal + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.PaymentMethod.Paypal, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** SnapshotRecord maxLicenseCount. */ - public maxLicenseCount: number; + /** + * Converts this Paypal to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** SnapshotRecord maxFilePlanTypeId. */ - public maxFilePlanTypeId: number; + /** + * Gets the default type url for Paypal + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** SnapshotRecord maxBasePlanId. */ - public maxBasePlanId: number; + /** Properties of a Vendor. */ + interface IVendor { - /** SnapshotRecord addons. */ - public addons: BI.SnapshotRecord.IAddon[]; + /** Vendor name */ + name?: (string|null); + } - /** - * Creates a new SnapshotRecord instance using the specified properties. - * @param [properties] Properties to set - * @returns SnapshotRecord instance - */ - public static create(properties?: BI.ISnapshotRecord): BI.SnapshotRecord; + /** Represents a Vendor. */ + class Vendor implements IVendor { - /** - * Encodes the specified SnapshotRecord message. Does not implicitly {@link BI.SnapshotRecord.verify|verify} messages. - * @param message SnapshotRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: BI.ISnapshotRecord, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new Vendor. + * @param [properties] Properties to set + */ + constructor(properties?: BI.PaymentMethod.IVendor); - /** - * Decodes a SnapshotRecord message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SnapshotRecord - * @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.SnapshotRecord; + /** Vendor name. */ + public name: string; - /** - * Creates a SnapshotRecord message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SnapshotRecord - */ - public static fromObject(object: { [k: string]: any }): BI.SnapshotRecord; + /** + * Creates a new Vendor instance using the specified properties. + * @param [properties] Properties to set + * @returns Vendor instance + */ + public static create(properties?: BI.PaymentMethod.IVendor): BI.PaymentMethod.Vendor; - /** - * Creates a plain object from a SnapshotRecord message. Also converts values to other types if specified. - * @param message SnapshotRecord - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: BI.SnapshotRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified Vendor message. Does not implicitly {@link BI.PaymentMethod.Vendor.verify|verify} messages. + * @param message Vendor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.PaymentMethod.IVendor, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this SnapshotRecord to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a Vendor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Vendor + * @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.PaymentMethod.Vendor; - /** - * Gets the default type url for SnapshotRecord - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a Vendor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Vendor + */ + public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.Vendor; - namespace SnapshotRecord { + /** + * Creates a plain object from a Vendor message. Also converts values to other types if specified. + * @param message Vendor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.PaymentMethod.Vendor, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of an Addon. */ - interface IAddon { + /** + * Converts this Vendor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Addon maxAddonId */ - maxAddonId?: (number|null); + /** + * Gets the default type url for Vendor + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Addon units */ - units?: (number|null); + /** Properties of a PurchaseOrder. */ + interface IPurchaseOrder { + + /** PurchaseOrder name */ + name?: (string|null); } - /** Represents an Addon. */ - class Addon implements IAddon { + /** Represents a PurchaseOrder. */ + class PurchaseOrder implements IPurchaseOrder { /** - * Constructs a new Addon. + * Constructs a new PurchaseOrder. * @param [properties] Properties to set */ - constructor(properties?: BI.SnapshotRecord.IAddon); - - /** Addon maxAddonId. */ - public maxAddonId: number; + constructor(properties?: BI.PaymentMethod.IPurchaseOrder); - /** Addon units. */ - public units: number; + /** PurchaseOrder name. */ + public name: string; /** - * Creates a new Addon instance using the specified properties. + * Creates a new PurchaseOrder instance using the specified properties. * @param [properties] Properties to set - * @returns Addon instance + * @returns PurchaseOrder instance */ - public static create(properties?: BI.SnapshotRecord.IAddon): BI.SnapshotRecord.Addon; + public static create(properties?: BI.PaymentMethod.IPurchaseOrder): BI.PaymentMethod.PurchaseOrder; /** - * Encodes the specified Addon message. Does not implicitly {@link BI.SnapshotRecord.Addon.verify|verify} messages. - * @param message Addon message or plain object to encode + * Encodes the specified PurchaseOrder message. Does not implicitly {@link BI.PaymentMethod.PurchaseOrder.verify|verify} messages. + * @param message PurchaseOrder message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.SnapshotRecord.IAddon, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.PaymentMethod.IPurchaseOrder, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Addon message from the specified reader or buffer. + * Decodes a PurchaseOrder message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Addon + * @returns PurchaseOrder * @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.SnapshotRecord.Addon; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.PaymentMethod.PurchaseOrder; /** - * Creates an Addon message from a plain object. Also converts values to their respective internal types. + * Creates a PurchaseOrder message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Addon + * @returns PurchaseOrder */ - public static fromObject(object: { [k: string]: any }): BI.SnapshotRecord.Addon; + public static fromObject(object: { [k: string]: any }): BI.PaymentMethod.PurchaseOrder; /** - * Creates a plain object from an Addon message. Also converts values to other types if specified. - * @param message Addon + * Creates a plain object from a PurchaseOrder message. Also converts values to other types if specified. + * @param message PurchaseOrder * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SnapshotRecord.Addon, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.PaymentMethod.PurchaseOrder, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Addon to JSON. + * Converts this PurchaseOrder to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Addon + * Gets the default type url for PurchaseOrder * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -73310,7622 +74630,7491 @@ export namespace BI { } } - /** Properties of a SnapshotMcEnterprise. */ - interface ISnapshotMcEnterprise { - - /** SnapshotMcEnterprise id */ - id?: (number|null); - - /** SnapshotMcEnterprise name */ - name?: (string|null); + /** Properties of a SubscriptionMspPricingRequest. */ + interface ISubscriptionMspPricingRequest { } - /** Represents a SnapshotMcEnterprise. */ - class SnapshotMcEnterprise implements ISnapshotMcEnterprise { + /** Represents a SubscriptionMspPricingRequest. */ + class SubscriptionMspPricingRequest implements ISubscriptionMspPricingRequest { /** - * Constructs a new SnapshotMcEnterprise. + * Constructs a new SubscriptionMspPricingRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.ISnapshotMcEnterprise); - - /** SnapshotMcEnterprise id. */ - public id: number; - - /** SnapshotMcEnterprise name. */ - public name: string; + constructor(properties?: BI.ISubscriptionMspPricingRequest); /** - * Creates a new SnapshotMcEnterprise instance using the specified properties. + * Creates a new SubscriptionMspPricingRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SnapshotMcEnterprise instance + * @returns SubscriptionMspPricingRequest instance */ - public static create(properties?: BI.ISnapshotMcEnterprise): BI.SnapshotMcEnterprise; + public static create(properties?: BI.ISubscriptionMspPricingRequest): BI.SubscriptionMspPricingRequest; /** - * Encodes the specified SnapshotMcEnterprise message. Does not implicitly {@link BI.SnapshotMcEnterprise.verify|verify} messages. - * @param message SnapshotMcEnterprise message or plain object to encode + * Encodes the specified SubscriptionMspPricingRequest message. Does not implicitly {@link BI.SubscriptionMspPricingRequest.verify|verify} messages. + * @param message SubscriptionMspPricingRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.ISnapshotMcEnterprise, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ISubscriptionMspPricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SnapshotMcEnterprise message from the specified reader or buffer. + * Decodes a SubscriptionMspPricingRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SnapshotMcEnterprise + * @returns SubscriptionMspPricingRequest * @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.SnapshotMcEnterprise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionMspPricingRequest; /** - * Creates a SnapshotMcEnterprise message from a plain object. Also converts values to their respective internal types. + * Creates a SubscriptionMspPricingRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SnapshotMcEnterprise + * @returns SubscriptionMspPricingRequest */ - public static fromObject(object: { [k: string]: any }): BI.SnapshotMcEnterprise; + public static fromObject(object: { [k: string]: any }): BI.SubscriptionMspPricingRequest; /** - * Creates a plain object from a SnapshotMcEnterprise message. Also converts values to other types if specified. - * @param message SnapshotMcEnterprise + * Creates a plain object from a SubscriptionMspPricingRequest message. Also converts values to other types if specified. + * @param message SubscriptionMspPricingRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SnapshotMcEnterprise, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.SubscriptionMspPricingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SnapshotMcEnterprise to JSON. + * Converts this SubscriptionMspPricingRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SnapshotMcEnterprise + * Gets the default type url for SubscriptionMspPricingRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MappingAddonsRequest. */ - interface IMappingAddonsRequest { + /** Properties of a SubscriptionMspPricingResponse. */ + interface ISubscriptionMspPricingResponse { + + /** SubscriptionMspPricingResponse addons */ + addons?: (BI.IAddon[]|null); + + /** SubscriptionMspPricingResponse filePlans */ + filePlans?: (BI.IFilePlan[]|null); } - /** Represents a MappingAddonsRequest. */ - class MappingAddonsRequest implements IMappingAddonsRequest { + /** Represents a SubscriptionMspPricingResponse. */ + class SubscriptionMspPricingResponse implements ISubscriptionMspPricingResponse { /** - * Constructs a new MappingAddonsRequest. + * Constructs a new SubscriptionMspPricingResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IMappingAddonsRequest); + constructor(properties?: BI.ISubscriptionMspPricingResponse); + + /** SubscriptionMspPricingResponse addons. */ + public addons: BI.IAddon[]; + + /** SubscriptionMspPricingResponse filePlans. */ + public filePlans: BI.IFilePlan[]; /** - * Creates a new MappingAddonsRequest instance using the specified properties. + * Creates a new SubscriptionMspPricingResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MappingAddonsRequest instance + * @returns SubscriptionMspPricingResponse instance */ - public static create(properties?: BI.IMappingAddonsRequest): BI.MappingAddonsRequest; + public static create(properties?: BI.ISubscriptionMspPricingResponse): BI.SubscriptionMspPricingResponse; /** - * Encodes the specified MappingAddonsRequest message. Does not implicitly {@link BI.MappingAddonsRequest.verify|verify} messages. - * @param message MappingAddonsRequest message or plain object to encode + * Encodes the specified SubscriptionMspPricingResponse message. Does not implicitly {@link BI.SubscriptionMspPricingResponse.verify|verify} messages. + * @param message SubscriptionMspPricingResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IMappingAddonsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ISubscriptionMspPricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MappingAddonsRequest message from the specified reader or buffer. + * Decodes a SubscriptionMspPricingResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MappingAddonsRequest + * @returns SubscriptionMspPricingResponse * @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.MappingAddonsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionMspPricingResponse; /** - * Creates a MappingAddonsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SubscriptionMspPricingResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MappingAddonsRequest + * @returns SubscriptionMspPricingResponse */ - public static fromObject(object: { [k: string]: any }): BI.MappingAddonsRequest; + public static fromObject(object: { [k: string]: any }): BI.SubscriptionMspPricingResponse; /** - * Creates a plain object from a MappingAddonsRequest message. Also converts values to other types if specified. - * @param message MappingAddonsRequest + * Creates a plain object from a SubscriptionMspPricingResponse message. Also converts values to other types if specified. + * @param message SubscriptionMspPricingResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.MappingAddonsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.SubscriptionMspPricingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MappingAddonsRequest to JSON. + * Converts this SubscriptionMspPricingResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MappingAddonsRequest + * Gets the default type url for SubscriptionMspPricingResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MappingAddonsResponse. */ - interface IMappingAddonsResponse { - - /** MappingAddonsResponse addons */ - addons?: (BI.IMappingItem[]|null); - - /** MappingAddonsResponse filePlans */ - filePlans?: (BI.IMappingItem[]|null); + /** Properties of a SubscriptionMcPricingRequest. */ + interface ISubscriptionMcPricingRequest { } - /** Represents a MappingAddonsResponse. */ - class MappingAddonsResponse implements IMappingAddonsResponse { + /** Represents a SubscriptionMcPricingRequest. */ + class SubscriptionMcPricingRequest implements ISubscriptionMcPricingRequest { /** - * Constructs a new MappingAddonsResponse. + * Constructs a new SubscriptionMcPricingRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IMappingAddonsResponse); - - /** MappingAddonsResponse addons. */ - public addons: BI.IMappingItem[]; - - /** MappingAddonsResponse filePlans. */ - public filePlans: BI.IMappingItem[]; + constructor(properties?: BI.ISubscriptionMcPricingRequest); /** - * Creates a new MappingAddonsResponse instance using the specified properties. + * Creates a new SubscriptionMcPricingRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MappingAddonsResponse instance + * @returns SubscriptionMcPricingRequest instance */ - public static create(properties?: BI.IMappingAddonsResponse): BI.MappingAddonsResponse; + public static create(properties?: BI.ISubscriptionMcPricingRequest): BI.SubscriptionMcPricingRequest; /** - * Encodes the specified MappingAddonsResponse message. Does not implicitly {@link BI.MappingAddonsResponse.verify|verify} messages. - * @param message MappingAddonsResponse message or plain object to encode + * Encodes the specified SubscriptionMcPricingRequest message. Does not implicitly {@link BI.SubscriptionMcPricingRequest.verify|verify} messages. + * @param message SubscriptionMcPricingRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IMappingAddonsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ISubscriptionMcPricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MappingAddonsResponse message from the specified reader or buffer. + * Decodes a SubscriptionMcPricingRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MappingAddonsResponse + * @returns SubscriptionMcPricingRequest * @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.MappingAddonsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionMcPricingRequest; /** - * Creates a MappingAddonsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SubscriptionMcPricingRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MappingAddonsResponse + * @returns SubscriptionMcPricingRequest */ - public static fromObject(object: { [k: string]: any }): BI.MappingAddonsResponse; + public static fromObject(object: { [k: string]: any }): BI.SubscriptionMcPricingRequest; /** - * Creates a plain object from a MappingAddonsResponse message. Also converts values to other types if specified. - * @param message MappingAddonsResponse + * Creates a plain object from a SubscriptionMcPricingRequest message. Also converts values to other types if specified. + * @param message SubscriptionMcPricingRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.MappingAddonsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.SubscriptionMcPricingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MappingAddonsResponse to JSON. + * Converts this SubscriptionMcPricingRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MappingAddonsResponse + * Gets the default type url for SubscriptionMcPricingRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MappingItem. */ - interface IMappingItem { + /** Properties of a SubscriptionMcPricingResponse. */ + interface ISubscriptionMcPricingResponse { - /** MappingItem id */ - id?: (number|null); + /** SubscriptionMcPricingResponse basePlans */ + basePlans?: (BI.IBasePlan[]|null); - /** MappingItem name */ - name?: (string|null); + /** SubscriptionMcPricingResponse addons */ + addons?: (BI.IAddon[]|null); + + /** SubscriptionMcPricingResponse filePlans */ + filePlans?: (BI.IFilePlan[]|null); } - /** Represents a MappingItem. */ - class MappingItem implements IMappingItem { + /** Represents a SubscriptionMcPricingResponse. */ + class SubscriptionMcPricingResponse implements ISubscriptionMcPricingResponse { /** - * Constructs a new MappingItem. + * Constructs a new SubscriptionMcPricingResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IMappingItem); + constructor(properties?: BI.ISubscriptionMcPricingResponse); - /** MappingItem id. */ - public id: number; + /** SubscriptionMcPricingResponse basePlans. */ + public basePlans: BI.IBasePlan[]; - /** MappingItem name. */ - public name: string; + /** SubscriptionMcPricingResponse addons. */ + public addons: BI.IAddon[]; + + /** SubscriptionMcPricingResponse filePlans. */ + public filePlans: BI.IFilePlan[]; /** - * Creates a new MappingItem instance using the specified properties. + * Creates a new SubscriptionMcPricingResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MappingItem instance + * @returns SubscriptionMcPricingResponse instance */ - public static create(properties?: BI.IMappingItem): BI.MappingItem; + public static create(properties?: BI.ISubscriptionMcPricingResponse): BI.SubscriptionMcPricingResponse; /** - * Encodes the specified MappingItem message. Does not implicitly {@link BI.MappingItem.verify|verify} messages. - * @param message MappingItem message or plain object to encode + * Encodes the specified SubscriptionMcPricingResponse message. Does not implicitly {@link BI.SubscriptionMcPricingResponse.verify|verify} messages. + * @param message SubscriptionMcPricingResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IMappingItem, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ISubscriptionMcPricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MappingItem message from the specified reader or buffer. + * Decodes a SubscriptionMcPricingResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MappingItem + * @returns SubscriptionMcPricingResponse * @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.MappingItem; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SubscriptionMcPricingResponse; /** - * Creates a MappingItem message from a plain object. Also converts values to their respective internal types. + * Creates a SubscriptionMcPricingResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MappingItem + * @returns SubscriptionMcPricingResponse */ - public static fromObject(object: { [k: string]: any }): BI.MappingItem; + public static fromObject(object: { [k: string]: any }): BI.SubscriptionMcPricingResponse; /** - * Creates a plain object from a MappingItem message. Also converts values to other types if specified. - * @param message MappingItem + * Creates a plain object from a SubscriptionMcPricingResponse message. Also converts values to other types if specified. + * @param message SubscriptionMcPricingResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.MappingItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.SubscriptionMcPricingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MappingItem to JSON. + * Converts this SubscriptionMcPricingResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MappingItem + * Gets the default type url for SubscriptionMcPricingResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GradientValidateKeyRequest. */ - interface IGradientValidateKeyRequest { + /** Properties of a BasePlan. */ + interface IBasePlan { - /** GradientValidateKeyRequest gradientKey */ - gradientKey?: (string|null); + /** BasePlan id */ + id?: (number|null); + + /** BasePlan cost */ + cost?: (BI.ICost|null); } - /** Represents a GradientValidateKeyRequest. */ - class GradientValidateKeyRequest implements IGradientValidateKeyRequest { + /** Represents a BasePlan. */ + class BasePlan implements IBasePlan { /** - * Constructs a new GradientValidateKeyRequest. + * Constructs a new BasePlan. * @param [properties] Properties to set */ - constructor(properties?: BI.IGradientValidateKeyRequest); + constructor(properties?: BI.IBasePlan); - /** GradientValidateKeyRequest gradientKey. */ - public gradientKey: string; + /** BasePlan id. */ + public id: number; + + /** BasePlan cost. */ + public cost?: (BI.ICost|null); /** - * Creates a new GradientValidateKeyRequest instance using the specified properties. + * Creates a new BasePlan instance using the specified properties. * @param [properties] Properties to set - * @returns GradientValidateKeyRequest instance + * @returns BasePlan instance */ - public static create(properties?: BI.IGradientValidateKeyRequest): BI.GradientValidateKeyRequest; + public static create(properties?: BI.IBasePlan): BI.BasePlan; /** - * Encodes the specified GradientValidateKeyRequest message. Does not implicitly {@link BI.GradientValidateKeyRequest.verify|verify} messages. - * @param message GradientValidateKeyRequest message or plain object to encode + * Encodes the specified BasePlan message. Does not implicitly {@link BI.BasePlan.verify|verify} messages. + * @param message BasePlan message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IGradientValidateKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IBasePlan, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GradientValidateKeyRequest message from the specified reader or buffer. + * Decodes a BasePlan message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GradientValidateKeyRequest + * @returns BasePlan * @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.GradientValidateKeyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.BasePlan; /** - * Creates a GradientValidateKeyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BasePlan message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GradientValidateKeyRequest + * @returns BasePlan */ - public static fromObject(object: { [k: string]: any }): BI.GradientValidateKeyRequest; + public static fromObject(object: { [k: string]: any }): BI.BasePlan; /** - * Creates a plain object from a GradientValidateKeyRequest message. Also converts values to other types if specified. - * @param message GradientValidateKeyRequest + * Creates a plain object from a BasePlan message. Also converts values to other types if specified. + * @param message BasePlan * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientValidateKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.BasePlan, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GradientValidateKeyRequest to JSON. + * Converts this BasePlan to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GradientValidateKeyRequest + * Gets the default type url for BasePlan * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GradientValidateKeyResponse. */ - interface IGradientValidateKeyResponse { + /** Properties of an Addon. */ + interface IAddon { - /** GradientValidateKeyResponse success */ - success?: (boolean|null); + /** Addon id */ + id?: (number|null); - /** GradientValidateKeyResponse message */ - message?: (string|null); + /** Addon cost */ + cost?: (BI.ICost|null); + + /** Addon amountConsumed */ + amountConsumed?: (number|null); } - /** Represents a GradientValidateKeyResponse. */ - class GradientValidateKeyResponse implements IGradientValidateKeyResponse { + /** Represents an Addon. */ + class Addon implements IAddon { /** - * Constructs a new GradientValidateKeyResponse. + * Constructs a new Addon. * @param [properties] Properties to set */ - constructor(properties?: BI.IGradientValidateKeyResponse); + constructor(properties?: BI.IAddon); - /** GradientValidateKeyResponse success. */ - public success: boolean; + /** Addon id. */ + public id: number; - /** GradientValidateKeyResponse message. */ - public message: string; + /** Addon cost. */ + public cost?: (BI.ICost|null); + + /** Addon amountConsumed. */ + public amountConsumed: number; /** - * Creates a new GradientValidateKeyResponse instance using the specified properties. + * Creates a new Addon instance using the specified properties. * @param [properties] Properties to set - * @returns GradientValidateKeyResponse instance + * @returns Addon instance */ - public static create(properties?: BI.IGradientValidateKeyResponse): BI.GradientValidateKeyResponse; + public static create(properties?: BI.IAddon): BI.Addon; /** - * Encodes the specified GradientValidateKeyResponse message. Does not implicitly {@link BI.GradientValidateKeyResponse.verify|verify} messages. - * @param message GradientValidateKeyResponse message or plain object to encode + * Encodes the specified Addon message. Does not implicitly {@link BI.Addon.verify|verify} messages. + * @param message Addon message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IGradientValidateKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IAddon, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GradientValidateKeyResponse message from the specified reader or buffer. + * Decodes an Addon message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GradientValidateKeyResponse + * @returns Addon * @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.GradientValidateKeyResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.Addon; /** - * Creates a GradientValidateKeyResponse message from a plain object. Also converts values to their respective internal types. + * Creates an Addon message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GradientValidateKeyResponse + * @returns Addon */ - public static fromObject(object: { [k: string]: any }): BI.GradientValidateKeyResponse; + public static fromObject(object: { [k: string]: any }): BI.Addon; /** - * Creates a plain object from a GradientValidateKeyResponse message. Also converts values to other types if specified. - * @param message GradientValidateKeyResponse + * Creates a plain object from an Addon message. Also converts values to other types if specified. + * @param message Addon * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientValidateKeyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.Addon, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GradientValidateKeyResponse to JSON. + * Converts this Addon to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GradientValidateKeyResponse + * Gets the default type url for Addon * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GradientSaveRequest. */ - interface IGradientSaveRequest { + /** Properties of a FilePlan. */ + interface IFilePlan { - /** GradientSaveRequest gradientKey */ - gradientKey?: (string|null); + /** FilePlan id */ + id?: (number|null); - /** GradientSaveRequest enterpriseUserId */ - enterpriseUserId?: (number|null); + /** FilePlan cost */ + cost?: (BI.ICost|null); } - /** Represents a GradientSaveRequest. */ - class GradientSaveRequest implements IGradientSaveRequest { + /** Represents a FilePlan. */ + class FilePlan implements IFilePlan { /** - * Constructs a new GradientSaveRequest. + * Constructs a new FilePlan. * @param [properties] Properties to set */ - constructor(properties?: BI.IGradientSaveRequest); + constructor(properties?: BI.IFilePlan); - /** GradientSaveRequest gradientKey. */ - public gradientKey: string; + /** FilePlan id. */ + public id: number; - /** GradientSaveRequest enterpriseUserId. */ - public enterpriseUserId: number; + /** FilePlan cost. */ + public cost?: (BI.ICost|null); /** - * Creates a new GradientSaveRequest instance using the specified properties. + * Creates a new FilePlan instance using the specified properties. * @param [properties] Properties to set - * @returns GradientSaveRequest instance + * @returns FilePlan instance */ - public static create(properties?: BI.IGradientSaveRequest): BI.GradientSaveRequest; + public static create(properties?: BI.IFilePlan): BI.FilePlan; /** - * Encodes the specified GradientSaveRequest message. Does not implicitly {@link BI.GradientSaveRequest.verify|verify} messages. - * @param message GradientSaveRequest message or plain object to encode + * Encodes the specified FilePlan message. Does not implicitly {@link BI.FilePlan.verify|verify} messages. + * @param message FilePlan message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IGradientSaveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IFilePlan, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GradientSaveRequest message from the specified reader or buffer. + * Decodes a FilePlan message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GradientSaveRequest + * @returns FilePlan * @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.GradientSaveRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.FilePlan; /** - * Creates a GradientSaveRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FilePlan message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GradientSaveRequest + * @returns FilePlan */ - public static fromObject(object: { [k: string]: any }): BI.GradientSaveRequest; + public static fromObject(object: { [k: string]: any }): BI.FilePlan; /** - * Creates a plain object from a GradientSaveRequest message. Also converts values to other types if specified. - * @param message GradientSaveRequest + * Creates a plain object from a FilePlan message. Also converts values to other types if specified. + * @param message FilePlan * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientSaveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.FilePlan, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GradientSaveRequest to JSON. + * Converts this FilePlan to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GradientSaveRequest + * Gets the default type url for FilePlan * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GradientSaveResponse. */ - interface IGradientSaveResponse { + /** Properties of a Cost. */ + interface ICost { - /** GradientSaveResponse success */ - success?: (boolean|null); + /** Cost amount */ + amount?: (number|null); - /** GradientSaveResponse status */ - status?: (BI.GradientIntegrationStatus|null); + /** Cost amountPer */ + amountPer?: (BI.Cost.AmountPer|null); - /** GradientSaveResponse message */ - message?: (string|null); + /** Cost currency */ + currency?: (BI.Currency|null); + + /** Cost contactSales */ + contactSales?: (boolean|null); } - /** Represents a GradientSaveResponse. */ - class GradientSaveResponse implements IGradientSaveResponse { + /** Represents a Cost. */ + class Cost implements ICost { /** - * Constructs a new GradientSaveResponse. + * Constructs a new Cost. * @param [properties] Properties to set */ - constructor(properties?: BI.IGradientSaveResponse); + constructor(properties?: BI.ICost); - /** GradientSaveResponse success. */ - public success: boolean; + /** Cost amount. */ + public amount: number; - /** GradientSaveResponse status. */ - public status: BI.GradientIntegrationStatus; + /** Cost amountPer. */ + public amountPer: BI.Cost.AmountPer; - /** GradientSaveResponse message. */ - public message: string; + /** Cost currency. */ + public currency: BI.Currency; + + /** Cost contactSales. */ + public contactSales: boolean; /** - * Creates a new GradientSaveResponse instance using the specified properties. + * Creates a new Cost instance using the specified properties. * @param [properties] Properties to set - * @returns GradientSaveResponse instance + * @returns Cost instance */ - public static create(properties?: BI.IGradientSaveResponse): BI.GradientSaveResponse; + public static create(properties?: BI.ICost): BI.Cost; /** - * Encodes the specified GradientSaveResponse message. Does not implicitly {@link BI.GradientSaveResponse.verify|verify} messages. - * @param message GradientSaveResponse message or plain object to encode + * Encodes the specified Cost message. Does not implicitly {@link BI.Cost.verify|verify} messages. + * @param message Cost message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IGradientSaveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ICost, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GradientSaveResponse message from the specified reader or buffer. + * Decodes a Cost message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GradientSaveResponse + * @returns Cost * @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.GradientSaveResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.Cost; /** - * Creates a GradientSaveResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Cost message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GradientSaveResponse + * @returns Cost */ - public static fromObject(object: { [k: string]: any }): BI.GradientSaveResponse; + public static fromObject(object: { [k: string]: any }): BI.Cost; /** - * Creates a plain object from a GradientSaveResponse message. Also converts values to other types if specified. - * @param message GradientSaveResponse + * Creates a plain object from a Cost message. Also converts values to other types if specified. + * @param message Cost * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientSaveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.Cost, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GradientSaveResponse to JSON. + * Converts this Cost to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GradientSaveResponse + * Gets the default type url for Cost * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GradientRemoveRequest. */ - interface IGradientRemoveRequest { + namespace Cost { - /** GradientRemoveRequest enterpriseUserId */ - enterpriseUserId?: (number|null); + /** AmountPer enum. */ + enum AmountPer { + UNKNOWN = 0, + MONTH = 1, + USER_MONTH = 2, + USER_CONSUMED_MONTH = 3, + ENDPOINT_MONTH = 4, + USER_YEAR = 5, + USER_CONSUMED_YEAR = 6, + YEAR = 7, + ENDPOINT_YEAR = 8 + } } - /** Represents a GradientRemoveRequest. */ - class GradientRemoveRequest implements IGradientRemoveRequest { + /** Properties of an InvoiceSearchRequest. */ + interface IInvoiceSearchRequest { + + /** InvoiceSearchRequest size */ + size?: (number|null); + + /** InvoiceSearchRequest startingAfterId */ + startingAfterId?: (number|null); + + /** InvoiceSearchRequest allInvoicesUnfiltered */ + allInvoicesUnfiltered?: (boolean|null); + } + + /** Represents an InvoiceSearchRequest. */ + class InvoiceSearchRequest implements IInvoiceSearchRequest { /** - * Constructs a new GradientRemoveRequest. + * Constructs a new InvoiceSearchRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IGradientRemoveRequest); + constructor(properties?: BI.IInvoiceSearchRequest); - /** GradientRemoveRequest enterpriseUserId. */ - public enterpriseUserId: number; + /** InvoiceSearchRequest size. */ + public size: number; + + /** InvoiceSearchRequest startingAfterId. */ + public startingAfterId: number; + + /** InvoiceSearchRequest allInvoicesUnfiltered. */ + public allInvoicesUnfiltered: boolean; /** - * Creates a new GradientRemoveRequest instance using the specified properties. + * Creates a new InvoiceSearchRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GradientRemoveRequest instance + * @returns InvoiceSearchRequest instance */ - public static create(properties?: BI.IGradientRemoveRequest): BI.GradientRemoveRequest; + public static create(properties?: BI.IInvoiceSearchRequest): BI.InvoiceSearchRequest; /** - * Encodes the specified GradientRemoveRequest message. Does not implicitly {@link BI.GradientRemoveRequest.verify|verify} messages. - * @param message GradientRemoveRequest message or plain object to encode + * Encodes the specified InvoiceSearchRequest message. Does not implicitly {@link BI.InvoiceSearchRequest.verify|verify} messages. + * @param message InvoiceSearchRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IGradientRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IInvoiceSearchRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GradientRemoveRequest message from the specified reader or buffer. + * Decodes an InvoiceSearchRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GradientRemoveRequest + * @returns InvoiceSearchRequest * @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.GradientRemoveRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.InvoiceSearchRequest; /** - * Creates a GradientRemoveRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InvoiceSearchRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GradientRemoveRequest + * @returns InvoiceSearchRequest */ - public static fromObject(object: { [k: string]: any }): BI.GradientRemoveRequest; + public static fromObject(object: { [k: string]: any }): BI.InvoiceSearchRequest; /** - * Creates a plain object from a GradientRemoveRequest message. Also converts values to other types if specified. - * @param message GradientRemoveRequest + * Creates a plain object from an InvoiceSearchRequest message. Also converts values to other types if specified. + * @param message InvoiceSearchRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientRemoveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.InvoiceSearchRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GradientRemoveRequest to JSON. + * Converts this InvoiceSearchRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GradientRemoveRequest + * Gets the default type url for InvoiceSearchRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GradientRemoveResponse. */ - interface IGradientRemoveResponse { - - /** GradientRemoveResponse success */ - success?: (boolean|null); + /** Properties of an InvoiceSearchResponse. */ + interface IInvoiceSearchResponse { - /** GradientRemoveResponse message */ - message?: (string|null); + /** InvoiceSearchResponse invoices */ + invoices?: (BI.IInvoice[]|null); } - /** Represents a GradientRemoveResponse. */ - class GradientRemoveResponse implements IGradientRemoveResponse { + /** Represents an InvoiceSearchResponse. */ + class InvoiceSearchResponse implements IInvoiceSearchResponse { /** - * Constructs a new GradientRemoveResponse. + * Constructs a new InvoiceSearchResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IGradientRemoveResponse); - - /** GradientRemoveResponse success. */ - public success: boolean; + constructor(properties?: BI.IInvoiceSearchResponse); - /** GradientRemoveResponse message. */ - public message: string; + /** InvoiceSearchResponse invoices. */ + public invoices: BI.IInvoice[]; /** - * Creates a new GradientRemoveResponse instance using the specified properties. + * Creates a new InvoiceSearchResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GradientRemoveResponse instance + * @returns InvoiceSearchResponse instance */ - public static create(properties?: BI.IGradientRemoveResponse): BI.GradientRemoveResponse; + public static create(properties?: BI.IInvoiceSearchResponse): BI.InvoiceSearchResponse; /** - * Encodes the specified GradientRemoveResponse message. Does not implicitly {@link BI.GradientRemoveResponse.verify|verify} messages. - * @param message GradientRemoveResponse message or plain object to encode + * Encodes the specified InvoiceSearchResponse message. Does not implicitly {@link BI.InvoiceSearchResponse.verify|verify} messages. + * @param message InvoiceSearchResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IGradientRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IInvoiceSearchResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GradientRemoveResponse message from the specified reader or buffer. + * Decodes an InvoiceSearchResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GradientRemoveResponse + * @returns InvoiceSearchResponse * @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.GradientRemoveResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.InvoiceSearchResponse; /** - * Creates a GradientRemoveResponse message from a plain object. Also converts values to their respective internal types. + * Creates an InvoiceSearchResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GradientRemoveResponse + * @returns InvoiceSearchResponse */ - public static fromObject(object: { [k: string]: any }): BI.GradientRemoveResponse; + public static fromObject(object: { [k: string]: any }): BI.InvoiceSearchResponse; /** - * Creates a plain object from a GradientRemoveResponse message. Also converts values to other types if specified. - * @param message GradientRemoveResponse + * Creates a plain object from an InvoiceSearchResponse message. Also converts values to other types if specified. + * @param message InvoiceSearchResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientRemoveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.InvoiceSearchResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GradientRemoveResponse to JSON. + * Converts this InvoiceSearchResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GradientRemoveResponse + * Gets the default type url for InvoiceSearchResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GradientSyncRequest. */ - interface IGradientSyncRequest { + /** Properties of an Invoice. */ + interface IInvoice { - /** GradientSyncRequest enterpriseUserId */ - enterpriseUserId?: (number|null); + /** Invoice id */ + id?: (number|null); + + /** Invoice invoiceNumber */ + invoiceNumber?: (string|null); + + /** Invoice invoiceDate */ + invoiceDate?: (number|null); + + /** Invoice licenseCount */ + licenseCount?: (number|null); + + /** Invoice totalCost */ + totalCost?: (BI.Invoice.ICost|null); + + /** Invoice invoiceType */ + invoiceType?: (BI.Invoice.Type|null); } - /** Represents a GradientSyncRequest. */ - class GradientSyncRequest implements IGradientSyncRequest { + /** Represents an Invoice. */ + class Invoice implements IInvoice { /** - * Constructs a new GradientSyncRequest. + * Constructs a new Invoice. * @param [properties] Properties to set */ - constructor(properties?: BI.IGradientSyncRequest); + constructor(properties?: BI.IInvoice); - /** GradientSyncRequest enterpriseUserId. */ - public enterpriseUserId: number; + /** Invoice id. */ + public id: number; + + /** Invoice invoiceNumber. */ + public invoiceNumber: string; + + /** Invoice invoiceDate. */ + public invoiceDate: number; + + /** Invoice licenseCount. */ + public licenseCount: number; + + /** Invoice totalCost. */ + public totalCost?: (BI.Invoice.ICost|null); + + /** Invoice invoiceType. */ + public invoiceType: BI.Invoice.Type; /** - * Creates a new GradientSyncRequest instance using the specified properties. + * Creates a new Invoice instance using the specified properties. * @param [properties] Properties to set - * @returns GradientSyncRequest instance + * @returns Invoice instance */ - public static create(properties?: BI.IGradientSyncRequest): BI.GradientSyncRequest; + public static create(properties?: BI.IInvoice): BI.Invoice; /** - * Encodes the specified GradientSyncRequest message. Does not implicitly {@link BI.GradientSyncRequest.verify|verify} messages. - * @param message GradientSyncRequest message or plain object to encode + * Encodes the specified Invoice message. Does not implicitly {@link BI.Invoice.verify|verify} messages. + * @param message Invoice message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IGradientSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IInvoice, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GradientSyncRequest message from the specified reader or buffer. + * Decodes an Invoice message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GradientSyncRequest + * @returns Invoice * @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.GradientSyncRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.Invoice; /** - * Creates a GradientSyncRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Invoice message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GradientSyncRequest + * @returns Invoice */ - public static fromObject(object: { [k: string]: any }): BI.GradientSyncRequest; + public static fromObject(object: { [k: string]: any }): BI.Invoice; /** - * Creates a plain object from a GradientSyncRequest message. Also converts values to other types if specified. - * @param message GradientSyncRequest + * Creates a plain object from an Invoice message. Also converts values to other types if specified. + * @param message Invoice * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientSyncRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.Invoice, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GradientSyncRequest to JSON. + * Converts this Invoice to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GradientSyncRequest + * Gets the default type url for Invoice * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GradientSyncResponse. */ - interface IGradientSyncResponse { + namespace Invoice { - /** GradientSyncResponse success */ - success?: (boolean|null); + /** Properties of a Cost. */ + interface ICost { - /** GradientSyncResponse status */ - status?: (BI.GradientIntegrationStatus|null); + /** Cost amount */ + amount?: (number|null); - /** GradientSyncResponse message */ - message?: (string|null); + /** Cost currency */ + currency?: (BI.Currency|null); + } + + /** Represents a Cost. */ + class Cost implements ICost { + + /** + * Constructs a new Cost. + * @param [properties] Properties to set + */ + constructor(properties?: BI.Invoice.ICost); + + /** Cost amount. */ + public amount: number; + + /** Cost currency. */ + public currency: BI.Currency; + + /** + * Creates a new Cost instance using the specified properties. + * @param [properties] Properties to set + * @returns Cost instance + */ + public static create(properties?: BI.Invoice.ICost): BI.Invoice.Cost; + + /** + * Encodes the specified Cost message. Does not implicitly {@link BI.Invoice.Cost.verify|verify} messages. + * @param message Cost message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.Invoice.ICost, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Cost message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Cost + * @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.Invoice.Cost; + + /** + * Creates a Cost message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Cost + */ + public static fromObject(object: { [k: string]: any }): BI.Invoice.Cost; + + /** + * Creates a plain object from a Cost message. Also converts values to other types if specified. + * @param message Cost + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.Invoice.Cost, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Cost to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Cost + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Type enum. */ + enum Type { + UNKNOWN = 0, + NEW = 1, + RENEWAL = 2, + UPGRADE = 3, + RESTORE = 4, + ASSOCIATION = 5, + OVERAGE = 6 + } } - /** Represents a GradientSyncResponse. */ - class GradientSyncResponse implements IGradientSyncResponse { + /** Properties of a VaultInvoicesListRequest. */ + interface IVaultInvoicesListRequest { + } + + /** Represents a VaultInvoicesListRequest. */ + class VaultInvoicesListRequest implements IVaultInvoicesListRequest { /** - * Constructs a new GradientSyncResponse. + * Constructs a new VaultInvoicesListRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IGradientSyncResponse); - - /** GradientSyncResponse success. */ - public success: boolean; - - /** GradientSyncResponse status. */ - public status: BI.GradientIntegrationStatus; - - /** GradientSyncResponse message. */ - public message: string; + constructor(properties?: BI.IVaultInvoicesListRequest); /** - * Creates a new GradientSyncResponse instance using the specified properties. + * Creates a new VaultInvoicesListRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GradientSyncResponse instance + * @returns VaultInvoicesListRequest instance */ - public static create(properties?: BI.IGradientSyncResponse): BI.GradientSyncResponse; + public static create(properties?: BI.IVaultInvoicesListRequest): BI.VaultInvoicesListRequest; /** - * Encodes the specified GradientSyncResponse message. Does not implicitly {@link BI.GradientSyncResponse.verify|verify} messages. - * @param message GradientSyncResponse message or plain object to encode + * Encodes the specified VaultInvoicesListRequest message. Does not implicitly {@link BI.VaultInvoicesListRequest.verify|verify} messages. + * @param message VaultInvoicesListRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IGradientSyncResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IVaultInvoicesListRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GradientSyncResponse message from the specified reader or buffer. + * Decodes a VaultInvoicesListRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GradientSyncResponse + * @returns VaultInvoicesListRequest * @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.GradientSyncResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoicesListRequest; /** - * Creates a GradientSyncResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VaultInvoicesListRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GradientSyncResponse + * @returns VaultInvoicesListRequest */ - public static fromObject(object: { [k: string]: any }): BI.GradientSyncResponse; + public static fromObject(object: { [k: string]: any }): BI.VaultInvoicesListRequest; /** - * Creates a plain object from a GradientSyncResponse message. Also converts values to other types if specified. - * @param message GradientSyncResponse + * Creates a plain object from a VaultInvoicesListRequest message. Also converts values to other types if specified. + * @param message VaultInvoicesListRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientSyncResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.VaultInvoicesListRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GradientSyncResponse to JSON. + * Converts this VaultInvoicesListRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GradientSyncResponse + * Gets the default type url for VaultInvoicesListRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** GradientIntegrationStatus enum. */ - enum GradientIntegrationStatus { - NOTCONNECTED = 0, - PENDING = 1, - CONNECTED = 2, - NONE = 3 - } - - /** Properties of a NetPromoterScoreSurveySubmissionRequest. */ - interface INetPromoterScoreSurveySubmissionRequest { - - /** NetPromoterScoreSurveySubmissionRequest surveyScore */ - surveyScore?: (number|null); - - /** NetPromoterScoreSurveySubmissionRequest notes */ - notes?: (string|null); + /** Properties of a VaultInvoicesListResponse. */ + interface IVaultInvoicesListResponse { + + /** VaultInvoicesListResponse invoices */ + invoices?: (BI.IVaultInvoice[]|null); } - /** Represents a NetPromoterScoreSurveySubmissionRequest. */ - class NetPromoterScoreSurveySubmissionRequest implements INetPromoterScoreSurveySubmissionRequest { + /** Represents a VaultInvoicesListResponse. */ + class VaultInvoicesListResponse implements IVaultInvoicesListResponse { /** - * Constructs a new NetPromoterScoreSurveySubmissionRequest. + * Constructs a new VaultInvoicesListResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.INetPromoterScoreSurveySubmissionRequest); - - /** NetPromoterScoreSurveySubmissionRequest surveyScore. */ - public surveyScore: number; + constructor(properties?: BI.IVaultInvoicesListResponse); - /** NetPromoterScoreSurveySubmissionRequest notes. */ - public notes: string; + /** VaultInvoicesListResponse invoices. */ + public invoices: BI.IVaultInvoice[]; /** - * Creates a new NetPromoterScoreSurveySubmissionRequest instance using the specified properties. + * Creates a new VaultInvoicesListResponse instance using the specified properties. * @param [properties] Properties to set - * @returns NetPromoterScoreSurveySubmissionRequest instance + * @returns VaultInvoicesListResponse instance */ - public static create(properties?: BI.INetPromoterScoreSurveySubmissionRequest): BI.NetPromoterScoreSurveySubmissionRequest; + public static create(properties?: BI.IVaultInvoicesListResponse): BI.VaultInvoicesListResponse; /** - * Encodes the specified NetPromoterScoreSurveySubmissionRequest message. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionRequest.verify|verify} messages. - * @param message NetPromoterScoreSurveySubmissionRequest message or plain object to encode + * Encodes the specified VaultInvoicesListResponse message. Does not implicitly {@link BI.VaultInvoicesListResponse.verify|verify} messages. + * @param message VaultInvoicesListResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.INetPromoterScoreSurveySubmissionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IVaultInvoicesListResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetPromoterScoreSurveySubmissionRequest message from the specified reader or buffer. + * Decodes a VaultInvoicesListResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NetPromoterScoreSurveySubmissionRequest + * @returns VaultInvoicesListResponse * @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.NetPromoterScoreSurveySubmissionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoicesListResponse; /** - * Creates a NetPromoterScoreSurveySubmissionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VaultInvoicesListResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetPromoterScoreSurveySubmissionRequest + * @returns VaultInvoicesListResponse */ - public static fromObject(object: { [k: string]: any }): BI.NetPromoterScoreSurveySubmissionRequest; + public static fromObject(object: { [k: string]: any }): BI.VaultInvoicesListResponse; /** - * Creates a plain object from a NetPromoterScoreSurveySubmissionRequest message. Also converts values to other types if specified. - * @param message NetPromoterScoreSurveySubmissionRequest + * Creates a plain object from a VaultInvoicesListResponse message. Also converts values to other types if specified. + * @param message VaultInvoicesListResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NetPromoterScoreSurveySubmissionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.VaultInvoicesListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetPromoterScoreSurveySubmissionRequest to JSON. + * Converts this VaultInvoicesListResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NetPromoterScoreSurveySubmissionRequest + * Gets the default type url for VaultInvoicesListResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NetPromoterScoreSurveySubmissionResponse. */ - interface INetPromoterScoreSurveySubmissionResponse { + /** Properties of a VaultInvoice. */ + interface IVaultInvoice { + + /** VaultInvoice id */ + id?: (number|null); + + /** VaultInvoice invoiceNumber */ + invoiceNumber?: (string|null); + + /** VaultInvoice dateCreated */ + dateCreated?: (number|null); + + /** VaultInvoice total */ + total?: (BI.Invoice.ICost|null); + + /** VaultInvoice purchaseType */ + purchaseType?: (BI.Invoice.Type|null); } - /** Represents a NetPromoterScoreSurveySubmissionResponse. */ - class NetPromoterScoreSurveySubmissionResponse implements INetPromoterScoreSurveySubmissionResponse { + /** Represents a VaultInvoice. */ + class VaultInvoice implements IVaultInvoice { /** - * Constructs a new NetPromoterScoreSurveySubmissionResponse. + * Constructs a new VaultInvoice. * @param [properties] Properties to set */ - constructor(properties?: BI.INetPromoterScoreSurveySubmissionResponse); + constructor(properties?: BI.IVaultInvoice); + + /** VaultInvoice id. */ + public id: number; + + /** VaultInvoice invoiceNumber. */ + public invoiceNumber: string; + + /** VaultInvoice dateCreated. */ + public dateCreated: number; + + /** VaultInvoice total. */ + public total?: (BI.Invoice.ICost|null); + + /** VaultInvoice purchaseType. */ + public purchaseType: BI.Invoice.Type; /** - * Creates a new NetPromoterScoreSurveySubmissionResponse instance using the specified properties. + * Creates a new VaultInvoice instance using the specified properties. * @param [properties] Properties to set - * @returns NetPromoterScoreSurveySubmissionResponse instance + * @returns VaultInvoice instance */ - public static create(properties?: BI.INetPromoterScoreSurveySubmissionResponse): BI.NetPromoterScoreSurveySubmissionResponse; + public static create(properties?: BI.IVaultInvoice): BI.VaultInvoice; /** - * Encodes the specified NetPromoterScoreSurveySubmissionResponse message. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionResponse.verify|verify} messages. - * @param message NetPromoterScoreSurveySubmissionResponse message or plain object to encode + * Encodes the specified VaultInvoice message. Does not implicitly {@link BI.VaultInvoice.verify|verify} messages. + * @param message VaultInvoice message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.INetPromoterScoreSurveySubmissionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IVaultInvoice, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetPromoterScoreSurveySubmissionResponse message from the specified reader or buffer. + * Decodes a VaultInvoice message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NetPromoterScoreSurveySubmissionResponse + * @returns VaultInvoice * @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.NetPromoterScoreSurveySubmissionResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoice; /** - * Creates a NetPromoterScoreSurveySubmissionResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VaultInvoice message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetPromoterScoreSurveySubmissionResponse + * @returns VaultInvoice */ - public static fromObject(object: { [k: string]: any }): BI.NetPromoterScoreSurveySubmissionResponse; + public static fromObject(object: { [k: string]: any }): BI.VaultInvoice; /** - * Creates a plain object from a NetPromoterScoreSurveySubmissionResponse message. Also converts values to other types if specified. - * @param message NetPromoterScoreSurveySubmissionResponse + * Creates a plain object from a VaultInvoice message. Also converts values to other types if specified. + * @param message VaultInvoice * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NetPromoterScoreSurveySubmissionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.VaultInvoice, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetPromoterScoreSurveySubmissionResponse to JSON. + * Converts this VaultInvoice to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NetPromoterScoreSurveySubmissionResponse + * Gets the default type url for VaultInvoice * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NetPromoterScorePopupScheduleRequest. */ - interface INetPromoterScorePopupScheduleRequest { + /** Properties of an InvoiceDownloadRequest. */ + interface IInvoiceDownloadRequest { + + /** InvoiceDownloadRequest invoiceNumber */ + invoiceNumber?: (string|null); } - /** Represents a NetPromoterScorePopupScheduleRequest. */ - class NetPromoterScorePopupScheduleRequest implements INetPromoterScorePopupScheduleRequest { + /** Represents an InvoiceDownloadRequest. */ + class InvoiceDownloadRequest implements IInvoiceDownloadRequest { /** - * Constructs a new NetPromoterScorePopupScheduleRequest. + * Constructs a new InvoiceDownloadRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.INetPromoterScorePopupScheduleRequest); + constructor(properties?: BI.IInvoiceDownloadRequest); + + /** InvoiceDownloadRequest invoiceNumber. */ + public invoiceNumber: string; /** - * Creates a new NetPromoterScorePopupScheduleRequest instance using the specified properties. + * Creates a new InvoiceDownloadRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NetPromoterScorePopupScheduleRequest instance + * @returns InvoiceDownloadRequest instance */ - public static create(properties?: BI.INetPromoterScorePopupScheduleRequest): BI.NetPromoterScorePopupScheduleRequest; + public static create(properties?: BI.IInvoiceDownloadRequest): BI.InvoiceDownloadRequest; /** - * Encodes the specified NetPromoterScorePopupScheduleRequest message. Does not implicitly {@link BI.NetPromoterScorePopupScheduleRequest.verify|verify} messages. - * @param message NetPromoterScorePopupScheduleRequest message or plain object to encode + * Encodes the specified InvoiceDownloadRequest message. Does not implicitly {@link BI.InvoiceDownloadRequest.verify|verify} messages. + * @param message InvoiceDownloadRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.INetPromoterScorePopupScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IInvoiceDownloadRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetPromoterScorePopupScheduleRequest message from the specified reader or buffer. + * Decodes an InvoiceDownloadRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NetPromoterScorePopupScheduleRequest + * @returns InvoiceDownloadRequest * @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.NetPromoterScorePopupScheduleRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.InvoiceDownloadRequest; /** - * Creates a NetPromoterScorePopupScheduleRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InvoiceDownloadRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetPromoterScorePopupScheduleRequest + * @returns InvoiceDownloadRequest */ - public static fromObject(object: { [k: string]: any }): BI.NetPromoterScorePopupScheduleRequest; + public static fromObject(object: { [k: string]: any }): BI.InvoiceDownloadRequest; /** - * Creates a plain object from a NetPromoterScorePopupScheduleRequest message. Also converts values to other types if specified. - * @param message NetPromoterScorePopupScheduleRequest + * Creates a plain object from an InvoiceDownloadRequest message. Also converts values to other types if specified. + * @param message InvoiceDownloadRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NetPromoterScorePopupScheduleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.InvoiceDownloadRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetPromoterScorePopupScheduleRequest to JSON. + * Converts this InvoiceDownloadRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NetPromoterScorePopupScheduleRequest + * Gets the default type url for InvoiceDownloadRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NetPromoterScorePopupScheduleResponse. */ - interface INetPromoterScorePopupScheduleResponse { + /** Properties of an InvoiceDownloadResponse. */ + interface IInvoiceDownloadResponse { - /** NetPromoterScorePopupScheduleResponse showPopup */ - showPopup?: (boolean|null); + /** InvoiceDownloadResponse link */ + link?: (string|null); + + /** InvoiceDownloadResponse fileName */ + fileName?: (string|null); } - /** Represents a NetPromoterScorePopupScheduleResponse. */ - class NetPromoterScorePopupScheduleResponse implements INetPromoterScorePopupScheduleResponse { + /** Represents an InvoiceDownloadResponse. */ + class InvoiceDownloadResponse implements IInvoiceDownloadResponse { /** - * Constructs a new NetPromoterScorePopupScheduleResponse. + * Constructs a new InvoiceDownloadResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.INetPromoterScorePopupScheduleResponse); + constructor(properties?: BI.IInvoiceDownloadResponse); - /** NetPromoterScorePopupScheduleResponse showPopup. */ - public showPopup: boolean; + /** InvoiceDownloadResponse link. */ + public link: string; + + /** InvoiceDownloadResponse fileName. */ + public fileName: string; /** - * Creates a new NetPromoterScorePopupScheduleResponse instance using the specified properties. + * Creates a new InvoiceDownloadResponse instance using the specified properties. * @param [properties] Properties to set - * @returns NetPromoterScorePopupScheduleResponse instance + * @returns InvoiceDownloadResponse instance */ - public static create(properties?: BI.INetPromoterScorePopupScheduleResponse): BI.NetPromoterScorePopupScheduleResponse; + public static create(properties?: BI.IInvoiceDownloadResponse): BI.InvoiceDownloadResponse; /** - * Encodes the specified NetPromoterScorePopupScheduleResponse message. Does not implicitly {@link BI.NetPromoterScorePopupScheduleResponse.verify|verify} messages. - * @param message NetPromoterScorePopupScheduleResponse message or plain object to encode + * Encodes the specified InvoiceDownloadResponse message. Does not implicitly {@link BI.InvoiceDownloadResponse.verify|verify} messages. + * @param message InvoiceDownloadResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.INetPromoterScorePopupScheduleResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IInvoiceDownloadResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetPromoterScorePopupScheduleResponse message from the specified reader or buffer. + * Decodes an InvoiceDownloadResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NetPromoterScorePopupScheduleResponse + * @returns InvoiceDownloadResponse * @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.NetPromoterScorePopupScheduleResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.InvoiceDownloadResponse; /** - * Creates a NetPromoterScorePopupScheduleResponse message from a plain object. Also converts values to their respective internal types. + * Creates an InvoiceDownloadResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetPromoterScorePopupScheduleResponse + * @returns InvoiceDownloadResponse */ - public static fromObject(object: { [k: string]: any }): BI.NetPromoterScorePopupScheduleResponse; + public static fromObject(object: { [k: string]: any }): BI.InvoiceDownloadResponse; /** - * Creates a plain object from a NetPromoterScorePopupScheduleResponse message. Also converts values to other types if specified. - * @param message NetPromoterScorePopupScheduleResponse + * Creates a plain object from an InvoiceDownloadResponse message. Also converts values to other types if specified. + * @param message InvoiceDownloadResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NetPromoterScorePopupScheduleResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.InvoiceDownloadResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetPromoterScorePopupScheduleResponse to JSON. + * Converts this InvoiceDownloadResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NetPromoterScorePopupScheduleResponse + * Gets the default type url for InvoiceDownloadResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NetPromoterScorePopupDismissalRequest. */ - interface INetPromoterScorePopupDismissalRequest { + /** Properties of a VaultInvoiceDownloadLinkRequest. */ + interface IVaultInvoiceDownloadLinkRequest { + + /** VaultInvoiceDownloadLinkRequest invoiceNumber */ + invoiceNumber?: (string|null); } - /** Represents a NetPromoterScorePopupDismissalRequest. */ - class NetPromoterScorePopupDismissalRequest implements INetPromoterScorePopupDismissalRequest { + /** Represents a VaultInvoiceDownloadLinkRequest. */ + class VaultInvoiceDownloadLinkRequest implements IVaultInvoiceDownloadLinkRequest { /** - * Constructs a new NetPromoterScorePopupDismissalRequest. + * Constructs a new VaultInvoiceDownloadLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.INetPromoterScorePopupDismissalRequest); + constructor(properties?: BI.IVaultInvoiceDownloadLinkRequest); + + /** VaultInvoiceDownloadLinkRequest invoiceNumber. */ + public invoiceNumber: string; /** - * Creates a new NetPromoterScorePopupDismissalRequest instance using the specified properties. + * Creates a new VaultInvoiceDownloadLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NetPromoterScorePopupDismissalRequest instance + * @returns VaultInvoiceDownloadLinkRequest instance */ - public static create(properties?: BI.INetPromoterScorePopupDismissalRequest): BI.NetPromoterScorePopupDismissalRequest; + public static create(properties?: BI.IVaultInvoiceDownloadLinkRequest): BI.VaultInvoiceDownloadLinkRequest; /** - * Encodes the specified NetPromoterScorePopupDismissalRequest message. Does not implicitly {@link BI.NetPromoterScorePopupDismissalRequest.verify|verify} messages. - * @param message NetPromoterScorePopupDismissalRequest message or plain object to encode + * Encodes the specified VaultInvoiceDownloadLinkRequest message. Does not implicitly {@link BI.VaultInvoiceDownloadLinkRequest.verify|verify} messages. + * @param message VaultInvoiceDownloadLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.INetPromoterScorePopupDismissalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IVaultInvoiceDownloadLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetPromoterScorePopupDismissalRequest message from the specified reader or buffer. + * Decodes a VaultInvoiceDownloadLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NetPromoterScorePopupDismissalRequest + * @returns VaultInvoiceDownloadLinkRequest * @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.NetPromoterScorePopupDismissalRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoiceDownloadLinkRequest; /** - * Creates a NetPromoterScorePopupDismissalRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VaultInvoiceDownloadLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetPromoterScorePopupDismissalRequest + * @returns VaultInvoiceDownloadLinkRequest */ - public static fromObject(object: { [k: string]: any }): BI.NetPromoterScorePopupDismissalRequest; + public static fromObject(object: { [k: string]: any }): BI.VaultInvoiceDownloadLinkRequest; /** - * Creates a plain object from a NetPromoterScorePopupDismissalRequest message. Also converts values to other types if specified. - * @param message NetPromoterScorePopupDismissalRequest + * Creates a plain object from a VaultInvoiceDownloadLinkRequest message. Also converts values to other types if specified. + * @param message VaultInvoiceDownloadLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NetPromoterScorePopupDismissalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.VaultInvoiceDownloadLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetPromoterScorePopupDismissalRequest to JSON. + * Converts this VaultInvoiceDownloadLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NetPromoterScorePopupDismissalRequest + * Gets the default type url for VaultInvoiceDownloadLinkRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NetPromoterScorePopupDismissalResponse. */ - interface INetPromoterScorePopupDismissalResponse { + /** Properties of a VaultInvoiceDownloadLinkResponse. */ + interface IVaultInvoiceDownloadLinkResponse { + + /** VaultInvoiceDownloadLinkResponse link */ + link?: (string|null); + + /** VaultInvoiceDownloadLinkResponse fileName */ + fileName?: (string|null); } - /** Represents a NetPromoterScorePopupDismissalResponse. */ - class NetPromoterScorePopupDismissalResponse implements INetPromoterScorePopupDismissalResponse { + /** Represents a VaultInvoiceDownloadLinkResponse. */ + class VaultInvoiceDownloadLinkResponse implements IVaultInvoiceDownloadLinkResponse { /** - * Constructs a new NetPromoterScorePopupDismissalResponse. + * Constructs a new VaultInvoiceDownloadLinkResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.INetPromoterScorePopupDismissalResponse); + constructor(properties?: BI.IVaultInvoiceDownloadLinkResponse); + + /** VaultInvoiceDownloadLinkResponse link. */ + public link: string; + + /** VaultInvoiceDownloadLinkResponse fileName. */ + public fileName: string; /** - * Creates a new NetPromoterScorePopupDismissalResponse instance using the specified properties. + * Creates a new VaultInvoiceDownloadLinkResponse instance using the specified properties. * @param [properties] Properties to set - * @returns NetPromoterScorePopupDismissalResponse instance + * @returns VaultInvoiceDownloadLinkResponse instance */ - public static create(properties?: BI.INetPromoterScorePopupDismissalResponse): BI.NetPromoterScorePopupDismissalResponse; + public static create(properties?: BI.IVaultInvoiceDownloadLinkResponse): BI.VaultInvoiceDownloadLinkResponse; /** - * Encodes the specified NetPromoterScorePopupDismissalResponse message. Does not implicitly {@link BI.NetPromoterScorePopupDismissalResponse.verify|verify} messages. - * @param message NetPromoterScorePopupDismissalResponse message or plain object to encode + * Encodes the specified VaultInvoiceDownloadLinkResponse message. Does not implicitly {@link BI.VaultInvoiceDownloadLinkResponse.verify|verify} messages. + * @param message VaultInvoiceDownloadLinkResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.INetPromoterScorePopupDismissalResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IVaultInvoiceDownloadLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetPromoterScorePopupDismissalResponse message from the specified reader or buffer. + * Decodes a VaultInvoiceDownloadLinkResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NetPromoterScorePopupDismissalResponse + * @returns VaultInvoiceDownloadLinkResponse * @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.NetPromoterScorePopupDismissalResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.VaultInvoiceDownloadLinkResponse; /** - * Creates a NetPromoterScorePopupDismissalResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VaultInvoiceDownloadLinkResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetPromoterScorePopupDismissalResponse + * @returns VaultInvoiceDownloadLinkResponse */ - public static fromObject(object: { [k: string]: any }): BI.NetPromoterScorePopupDismissalResponse; + public static fromObject(object: { [k: string]: any }): BI.VaultInvoiceDownloadLinkResponse; /** - * Creates a plain object from a NetPromoterScorePopupDismissalResponse message. Also converts values to other types if specified. - * @param message NetPromoterScorePopupDismissalResponse + * Creates a plain object from a VaultInvoiceDownloadLinkResponse message. Also converts values to other types if specified. + * @param message VaultInvoiceDownloadLinkResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NetPromoterScorePopupDismissalResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.VaultInvoiceDownloadLinkResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetPromoterScorePopupDismissalResponse to JSON. + * Converts this VaultInvoiceDownloadLinkResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NetPromoterScorePopupDismissalResponse + * Gets the default type url for VaultInvoiceDownloadLinkResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a KCMLicenseRequest. */ - interface IKCMLicenseRequest { + /** Properties of a ReportingDailySnapshotRequest. */ + interface IReportingDailySnapshotRequest { - /** KCMLicenseRequest enterpriseUserId */ - enterpriseUserId?: (number|null); + /** ReportingDailySnapshotRequest month */ + month?: (number|null); + + /** ReportingDailySnapshotRequest year */ + year?: (number|null); } - /** Represents a KCMLicenseRequest. */ - class KCMLicenseRequest implements IKCMLicenseRequest { + /** Represents a ReportingDailySnapshotRequest. */ + class ReportingDailySnapshotRequest implements IReportingDailySnapshotRequest { /** - * Constructs a new KCMLicenseRequest. + * Constructs a new ReportingDailySnapshotRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IKCMLicenseRequest); + constructor(properties?: BI.IReportingDailySnapshotRequest); - /** KCMLicenseRequest enterpriseUserId. */ - public enterpriseUserId: number; + /** ReportingDailySnapshotRequest month. */ + public month: number; + + /** ReportingDailySnapshotRequest year. */ + public year: number; /** - * Creates a new KCMLicenseRequest instance using the specified properties. + * Creates a new ReportingDailySnapshotRequest instance using the specified properties. * @param [properties] Properties to set - * @returns KCMLicenseRequest instance + * @returns ReportingDailySnapshotRequest instance */ - public static create(properties?: BI.IKCMLicenseRequest): BI.KCMLicenseRequest; + public static create(properties?: BI.IReportingDailySnapshotRequest): BI.ReportingDailySnapshotRequest; /** - * Encodes the specified KCMLicenseRequest message. Does not implicitly {@link BI.KCMLicenseRequest.verify|verify} messages. - * @param message KCMLicenseRequest message or plain object to encode + * Encodes the specified ReportingDailySnapshotRequest message. Does not implicitly {@link BI.ReportingDailySnapshotRequest.verify|verify} messages. + * @param message ReportingDailySnapshotRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IKCMLicenseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IReportingDailySnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a KCMLicenseRequest message from the specified reader or buffer. + * Decodes a ReportingDailySnapshotRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns KCMLicenseRequest + * @returns ReportingDailySnapshotRequest * @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.KCMLicenseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.ReportingDailySnapshotRequest; /** - * Creates a KCMLicenseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReportingDailySnapshotRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns KCMLicenseRequest + * @returns ReportingDailySnapshotRequest */ - public static fromObject(object: { [k: string]: any }): BI.KCMLicenseRequest; + public static fromObject(object: { [k: string]: any }): BI.ReportingDailySnapshotRequest; /** - * Creates a plain object from a KCMLicenseRequest message. Also converts values to other types if specified. - * @param message KCMLicenseRequest + * Creates a plain object from a ReportingDailySnapshotRequest message. Also converts values to other types if specified. + * @param message ReportingDailySnapshotRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.KCMLicenseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.ReportingDailySnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this KCMLicenseRequest to JSON. + * Converts this ReportingDailySnapshotRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for KCMLicenseRequest + * Gets the default type url for ReportingDailySnapshotRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a KCMLicenseResponse. */ - interface IKCMLicenseResponse { + /** Properties of a ReportingDailySnapshotResponse. */ + interface IReportingDailySnapshotResponse { - /** KCMLicenseResponse message */ - message?: (string|null); + /** ReportingDailySnapshotResponse records */ + records?: (BI.ISnapshotRecord[]|null); + + /** ReportingDailySnapshotResponse mcEnterprises */ + mcEnterprises?: (BI.ISnapshotMcEnterprise[]|null); } - /** Represents a KCMLicenseResponse. */ - class KCMLicenseResponse implements IKCMLicenseResponse { + /** Represents a ReportingDailySnapshotResponse. */ + class ReportingDailySnapshotResponse implements IReportingDailySnapshotResponse { /** - * Constructs a new KCMLicenseResponse. + * Constructs a new ReportingDailySnapshotResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IKCMLicenseResponse); + constructor(properties?: BI.IReportingDailySnapshotResponse); - /** KCMLicenseResponse message. */ - public message: string; + /** ReportingDailySnapshotResponse records. */ + public records: BI.ISnapshotRecord[]; + + /** ReportingDailySnapshotResponse mcEnterprises. */ + public mcEnterprises: BI.ISnapshotMcEnterprise[]; /** - * Creates a new KCMLicenseResponse instance using the specified properties. + * Creates a new ReportingDailySnapshotResponse instance using the specified properties. * @param [properties] Properties to set - * @returns KCMLicenseResponse instance + * @returns ReportingDailySnapshotResponse instance */ - public static create(properties?: BI.IKCMLicenseResponse): BI.KCMLicenseResponse; + public static create(properties?: BI.IReportingDailySnapshotResponse): BI.ReportingDailySnapshotResponse; /** - * Encodes the specified KCMLicenseResponse message. Does not implicitly {@link BI.KCMLicenseResponse.verify|verify} messages. - * @param message KCMLicenseResponse message or plain object to encode + * Encodes the specified ReportingDailySnapshotResponse message. Does not implicitly {@link BI.ReportingDailySnapshotResponse.verify|verify} messages. + * @param message ReportingDailySnapshotResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IKCMLicenseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IReportingDailySnapshotResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a KCMLicenseResponse message from the specified reader or buffer. + * Decodes a ReportingDailySnapshotResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns KCMLicenseResponse + * @returns ReportingDailySnapshotResponse * @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.KCMLicenseResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.ReportingDailySnapshotResponse; /** - * Creates a KCMLicenseResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReportingDailySnapshotResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns KCMLicenseResponse + * @returns ReportingDailySnapshotResponse */ - public static fromObject(object: { [k: string]: any }): BI.KCMLicenseResponse; + public static fromObject(object: { [k: string]: any }): BI.ReportingDailySnapshotResponse; /** - * Creates a plain object from a KCMLicenseResponse message. Also converts values to other types if specified. - * @param message KCMLicenseResponse + * Creates a plain object from a ReportingDailySnapshotResponse message. Also converts values to other types if specified. + * @param message ReportingDailySnapshotResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.KCMLicenseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.ReportingDailySnapshotResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this KCMLicenseResponse to JSON. + * Converts this ReportingDailySnapshotResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for KCMLicenseResponse + * Gets the default type url for ReportingDailySnapshotResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** EventType enum. */ - enum EventType { - UNKNOWN_TRACKING_EVENT_TYPE = 0, - TRACKING_POPUP_DISPLAYED = 1, - TRACKING_POPUP_ACCEPTED = 2, - TRACKING_POPUP_DISMISSED = 3, - TRACKING_POPUP_PAID = 4, - TRACKING_PUSH_CLICKED = 5, - CONSOLE_ACTION = 6, - VAULT_ACTION = 7 - } + /** Properties of a SnapshotRecord. */ + interface ISnapshotRecord { - /** Properties of an EventRequest. */ - interface IEventRequest { + /** SnapshotRecord date */ + date?: (number|null); - /** EventRequest eventType */ - eventType?: (BI.EventType|null); + /** SnapshotRecord mcEnterpriseId */ + mcEnterpriseId?: (number|null); - /** EventRequest eventValue */ - eventValue?: (string|null); + /** SnapshotRecord maxLicenseCount */ + maxLicenseCount?: (number|null); - /** EventRequest eventTime */ - eventTime?: (number|null); + /** SnapshotRecord maxFilePlanTypeId */ + maxFilePlanTypeId?: (number|null); - /** EventRequest attributes */ - attributes?: (google.protobuf.IStruct|null); + /** SnapshotRecord maxBasePlanId */ + maxBasePlanId?: (number|null); + + /** SnapshotRecord addons */ + addons?: (BI.SnapshotRecord.IAddon[]|null); } - /** Represents an EventRequest. */ - class EventRequest implements IEventRequest { + /** Represents a SnapshotRecord. */ + class SnapshotRecord implements ISnapshotRecord { /** - * Constructs a new EventRequest. + * Constructs a new SnapshotRecord. * @param [properties] Properties to set */ - constructor(properties?: BI.IEventRequest); + constructor(properties?: BI.ISnapshotRecord); - /** EventRequest eventType. */ - public eventType: BI.EventType; + /** SnapshotRecord date. */ + public date: number; - /** EventRequest eventValue. */ - public eventValue: string; + /** SnapshotRecord mcEnterpriseId. */ + public mcEnterpriseId: number; - /** EventRequest eventTime. */ - public eventTime: number; + /** SnapshotRecord maxLicenseCount. */ + public maxLicenseCount: number; - /** EventRequest attributes. */ - public attributes?: (google.protobuf.IStruct|null); + /** SnapshotRecord maxFilePlanTypeId. */ + public maxFilePlanTypeId: number; + + /** SnapshotRecord maxBasePlanId. */ + public maxBasePlanId: number; + + /** SnapshotRecord addons. */ + public addons: BI.SnapshotRecord.IAddon[]; /** - * Creates a new EventRequest instance using the specified properties. + * Creates a new SnapshotRecord instance using the specified properties. * @param [properties] Properties to set - * @returns EventRequest instance + * @returns SnapshotRecord instance */ - public static create(properties?: BI.IEventRequest): BI.EventRequest; + public static create(properties?: BI.ISnapshotRecord): BI.SnapshotRecord; /** - * Encodes the specified EventRequest message. Does not implicitly {@link BI.EventRequest.verify|verify} messages. - * @param message EventRequest message or plain object to encode + * Encodes the specified SnapshotRecord message. Does not implicitly {@link BI.SnapshotRecord.verify|verify} messages. + * @param message SnapshotRecord message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ISnapshotRecord, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EventRequest message from the specified reader or buffer. + * Decodes a SnapshotRecord message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EventRequest + * @returns SnapshotRecord * @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.EventRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SnapshotRecord; /** - * Creates an EventRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SnapshotRecord message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EventRequest + * @returns SnapshotRecord */ - public static fromObject(object: { [k: string]: any }): BI.EventRequest; + public static fromObject(object: { [k: string]: any }): BI.SnapshotRecord; /** - * Creates a plain object from an EventRequest message. Also converts values to other types if specified. - * @param message EventRequest + * Creates a plain object from a SnapshotRecord message. Also converts values to other types if specified. + * @param message SnapshotRecord * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.EventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.SnapshotRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EventRequest to JSON. + * Converts this SnapshotRecord to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EventRequest + * Gets the default type url for SnapshotRecord * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EventsRequest. */ - interface IEventsRequest { + namespace SnapshotRecord { - /** EventsRequest event */ - event?: (BI.IEventRequest[]|null); + /** Properties of an Addon. */ + interface IAddon { + + /** Addon maxAddonId */ + maxAddonId?: (number|null); + + /** Addon units */ + units?: (number|null); + } + + /** Represents an Addon. */ + class Addon implements IAddon { + + /** + * Constructs a new Addon. + * @param [properties] Properties to set + */ + constructor(properties?: BI.SnapshotRecord.IAddon); + + /** Addon maxAddonId. */ + public maxAddonId: number; + + /** Addon units. */ + public units: number; + + /** + * Creates a new Addon instance using the specified properties. + * @param [properties] Properties to set + * @returns Addon instance + */ + public static create(properties?: BI.SnapshotRecord.IAddon): BI.SnapshotRecord.Addon; + + /** + * Encodes the specified Addon message. Does not implicitly {@link BI.SnapshotRecord.Addon.verify|verify} messages. + * @param message Addon message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.SnapshotRecord.IAddon, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Addon message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Addon + * @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.SnapshotRecord.Addon; + + /** + * Creates an Addon message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Addon + */ + public static fromObject(object: { [k: string]: any }): BI.SnapshotRecord.Addon; + + /** + * Creates a plain object from an Addon message. Also converts values to other types if specified. + * @param message Addon + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.SnapshotRecord.Addon, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Addon to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Addon + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents an EventsRequest. */ - class EventsRequest implements IEventsRequest { + /** Properties of a SnapshotMcEnterprise. */ + interface ISnapshotMcEnterprise { + + /** SnapshotMcEnterprise id */ + id?: (number|null); + + /** SnapshotMcEnterprise name */ + name?: (string|null); + } + + /** Represents a SnapshotMcEnterprise. */ + class SnapshotMcEnterprise implements ISnapshotMcEnterprise { /** - * Constructs a new EventsRequest. + * Constructs a new SnapshotMcEnterprise. * @param [properties] Properties to set */ - constructor(properties?: BI.IEventsRequest); + constructor(properties?: BI.ISnapshotMcEnterprise); - /** EventsRequest event. */ - public event: BI.IEventRequest[]; + /** SnapshotMcEnterprise id. */ + public id: number; + + /** SnapshotMcEnterprise name. */ + public name: string; /** - * Creates a new EventsRequest instance using the specified properties. + * Creates a new SnapshotMcEnterprise instance using the specified properties. * @param [properties] Properties to set - * @returns EventsRequest instance + * @returns SnapshotMcEnterprise instance */ - public static create(properties?: BI.IEventsRequest): BI.EventsRequest; + public static create(properties?: BI.ISnapshotMcEnterprise): BI.SnapshotMcEnterprise; /** - * Encodes the specified EventsRequest message. Does not implicitly {@link BI.EventsRequest.verify|verify} messages. - * @param message EventsRequest message or plain object to encode + * Encodes the specified SnapshotMcEnterprise message. Does not implicitly {@link BI.SnapshotMcEnterprise.verify|verify} messages. + * @param message SnapshotMcEnterprise message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ISnapshotMcEnterprise, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EventsRequest message from the specified reader or buffer. + * Decodes a SnapshotMcEnterprise message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EventsRequest + * @returns SnapshotMcEnterprise * @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.EventsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.SnapshotMcEnterprise; /** - * Creates an EventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SnapshotMcEnterprise message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EventsRequest + * @returns SnapshotMcEnterprise */ - public static fromObject(object: { [k: string]: any }): BI.EventsRequest; + public static fromObject(object: { [k: string]: any }): BI.SnapshotMcEnterprise; /** - * Creates a plain object from an EventsRequest message. Also converts values to other types if specified. - * @param message EventsRequest + * Creates a plain object from a SnapshotMcEnterprise message. Also converts values to other types if specified. + * @param message SnapshotMcEnterprise * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.EventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.SnapshotMcEnterprise, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EventsRequest to JSON. + * Converts this SnapshotMcEnterprise to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EventsRequest + * Gets the default type url for SnapshotMcEnterprise * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EventResponse. */ - interface IEventResponse { - - /** EventResponse index */ - index?: (number|null); - - /** EventResponse status */ - status?: (boolean|null); + /** Properties of a MappingAddonsRequest. */ + interface IMappingAddonsRequest { } - /** Represents an EventResponse. */ - class EventResponse implements IEventResponse { + /** Represents a MappingAddonsRequest. */ + class MappingAddonsRequest implements IMappingAddonsRequest { /** - * Constructs a new EventResponse. + * Constructs a new MappingAddonsRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IEventResponse); - - /** EventResponse index. */ - public index: number; - - /** EventResponse status. */ - public status: boolean; + constructor(properties?: BI.IMappingAddonsRequest); /** - * Creates a new EventResponse instance using the specified properties. + * Creates a new MappingAddonsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns EventResponse instance + * @returns MappingAddonsRequest instance */ - public static create(properties?: BI.IEventResponse): BI.EventResponse; + public static create(properties?: BI.IMappingAddonsRequest): BI.MappingAddonsRequest; /** - * Encodes the specified EventResponse message. Does not implicitly {@link BI.EventResponse.verify|verify} messages. - * @param message EventResponse message or plain object to encode + * Encodes the specified MappingAddonsRequest message. Does not implicitly {@link BI.MappingAddonsRequest.verify|verify} messages. + * @param message MappingAddonsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IMappingAddonsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EventResponse message from the specified reader or buffer. + * Decodes a MappingAddonsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EventResponse + * @returns MappingAddonsRequest * @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.EventResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.MappingAddonsRequest; /** - * Creates an EventResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MappingAddonsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EventResponse + * @returns MappingAddonsRequest */ - public static fromObject(object: { [k: string]: any }): BI.EventResponse; + public static fromObject(object: { [k: string]: any }): BI.MappingAddonsRequest; /** - * Creates a plain object from an EventResponse message. Also converts values to other types if specified. - * @param message EventResponse + * Creates a plain object from a MappingAddonsRequest message. Also converts values to other types if specified. + * @param message MappingAddonsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.EventResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.MappingAddonsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EventResponse to JSON. + * Converts this MappingAddonsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EventResponse + * Gets the default type url for MappingAddonsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EventsResponse. */ - interface IEventsResponse { + /** Properties of a MappingAddonsResponse. */ + interface IMappingAddonsResponse { - /** EventsResponse response */ - response?: (BI.IEventResponse[]|null); + /** MappingAddonsResponse addons */ + addons?: (BI.IMappingItem[]|null); + + /** MappingAddonsResponse filePlans */ + filePlans?: (BI.IMappingItem[]|null); } - /** Represents an EventsResponse. */ - class EventsResponse implements IEventsResponse { + /** Represents a MappingAddonsResponse. */ + class MappingAddonsResponse implements IMappingAddonsResponse { /** - * Constructs a new EventsResponse. + * Constructs a new MappingAddonsResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IEventsResponse); + constructor(properties?: BI.IMappingAddonsResponse); - /** EventsResponse response. */ - public response: BI.IEventResponse[]; + /** MappingAddonsResponse addons. */ + public addons: BI.IMappingItem[]; + + /** MappingAddonsResponse filePlans. */ + public filePlans: BI.IMappingItem[]; /** - * Creates a new EventsResponse instance using the specified properties. + * Creates a new MappingAddonsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns EventsResponse instance + * @returns MappingAddonsResponse instance */ - public static create(properties?: BI.IEventsResponse): BI.EventsResponse; + public static create(properties?: BI.IMappingAddonsResponse): BI.MappingAddonsResponse; /** - * Encodes the specified EventsResponse message. Does not implicitly {@link BI.EventsResponse.verify|verify} messages. - * @param message EventsResponse message or plain object to encode + * Encodes the specified MappingAddonsResponse message. Does not implicitly {@link BI.MappingAddonsResponse.verify|verify} messages. + * @param message MappingAddonsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IMappingAddonsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EventsResponse message from the specified reader or buffer. + * Decodes a MappingAddonsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EventsResponse + * @returns MappingAddonsResponse * @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.EventsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.MappingAddonsResponse; /** - * Creates an EventsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MappingAddonsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EventsResponse + * @returns MappingAddonsResponse */ - public static fromObject(object: { [k: string]: any }): BI.EventsResponse; + public static fromObject(object: { [k: string]: any }): BI.MappingAddonsResponse; /** - * Creates a plain object from an EventsResponse message. Also converts values to other types if specified. - * @param message EventsResponse + * Creates a plain object from a MappingAddonsResponse message. Also converts values to other types if specified. + * @param message MappingAddonsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.EventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.MappingAddonsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EventsResponse to JSON. + * Converts this MappingAddonsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EventsResponse + * Gets the default type url for MappingAddonsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CustomerCaptureRequest. */ - interface ICustomerCaptureRequest { - - /** CustomerCaptureRequest pageUrl */ - pageUrl?: (string|null); - - /** CustomerCaptureRequest tree */ - tree?: (string|null); - - /** CustomerCaptureRequest hash */ - hash?: (string|null); - - /** CustomerCaptureRequest image */ - image?: (string|null); - - /** CustomerCaptureRequest pageLoadTime */ - pageLoadTime?: (string|null); - - /** CustomerCaptureRequest keyId */ - keyId?: (string|null); - - /** CustomerCaptureRequest test */ - test?: (boolean|null); + /** Properties of a MappingItem. */ + interface IMappingItem { - /** CustomerCaptureRequest issueType */ - issueType?: (string|null); + /** MappingItem id */ + id?: (number|null); - /** CustomerCaptureRequest notes */ - notes?: (string|null); + /** MappingItem name */ + name?: (string|null); } - /** Represents a CustomerCaptureRequest. */ - class CustomerCaptureRequest implements ICustomerCaptureRequest { + /** Represents a MappingItem. */ + class MappingItem implements IMappingItem { /** - * Constructs a new CustomerCaptureRequest. + * Constructs a new MappingItem. * @param [properties] Properties to set */ - constructor(properties?: BI.ICustomerCaptureRequest); - - /** CustomerCaptureRequest pageUrl. */ - public pageUrl: string; - - /** CustomerCaptureRequest tree. */ - public tree: string; - - /** CustomerCaptureRequest hash. */ - public hash: string; - - /** CustomerCaptureRequest image. */ - public image: string; - - /** CustomerCaptureRequest pageLoadTime. */ - public pageLoadTime: string; - - /** CustomerCaptureRequest keyId. */ - public keyId: string; - - /** CustomerCaptureRequest test. */ - public test: boolean; + constructor(properties?: BI.IMappingItem); - /** CustomerCaptureRequest issueType. */ - public issueType: string; + /** MappingItem id. */ + public id: number; - /** CustomerCaptureRequest notes. */ - public notes: string; + /** MappingItem name. */ + public name: string; /** - * Creates a new CustomerCaptureRequest instance using the specified properties. + * Creates a new MappingItem instance using the specified properties. * @param [properties] Properties to set - * @returns CustomerCaptureRequest instance + * @returns MappingItem instance */ - public static create(properties?: BI.ICustomerCaptureRequest): BI.CustomerCaptureRequest; + public static create(properties?: BI.IMappingItem): BI.MappingItem; /** - * Encodes the specified CustomerCaptureRequest message. Does not implicitly {@link BI.CustomerCaptureRequest.verify|verify} messages. - * @param message CustomerCaptureRequest message or plain object to encode + * Encodes the specified MappingItem message. Does not implicitly {@link BI.MappingItem.verify|verify} messages. + * @param message MappingItem message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.ICustomerCaptureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IMappingItem, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomerCaptureRequest message from the specified reader or buffer. + * Decodes a MappingItem message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CustomerCaptureRequest + * @returns MappingItem * @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.CustomerCaptureRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.MappingItem; /** - * Creates a CustomerCaptureRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MappingItem message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CustomerCaptureRequest + * @returns MappingItem */ - public static fromObject(object: { [k: string]: any }): BI.CustomerCaptureRequest; + public static fromObject(object: { [k: string]: any }): BI.MappingItem; /** - * Creates a plain object from a CustomerCaptureRequest message. Also converts values to other types if specified. - * @param message CustomerCaptureRequest + * Creates a plain object from a MappingItem message. Also converts values to other types if specified. + * @param message MappingItem * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.CustomerCaptureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.MappingItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomerCaptureRequest to JSON. + * Converts this MappingItem to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CustomerCaptureRequest + * Gets the default type url for MappingItem * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CustomerCaptureResponse. */ - interface ICustomerCaptureResponse { + /** Properties of a GradientValidateKeyRequest. */ + interface IGradientValidateKeyRequest { + + /** GradientValidateKeyRequest gradientKey */ + gradientKey?: (string|null); } - /** Represents a CustomerCaptureResponse. */ - class CustomerCaptureResponse implements ICustomerCaptureResponse { + /** Represents a GradientValidateKeyRequest. */ + class GradientValidateKeyRequest implements IGradientValidateKeyRequest { /** - * Constructs a new CustomerCaptureResponse. + * Constructs a new GradientValidateKeyRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.ICustomerCaptureResponse); + constructor(properties?: BI.IGradientValidateKeyRequest); + + /** GradientValidateKeyRequest gradientKey. */ + public gradientKey: string; /** - * Creates a new CustomerCaptureResponse instance using the specified properties. + * Creates a new GradientValidateKeyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CustomerCaptureResponse instance + * @returns GradientValidateKeyRequest instance */ - public static create(properties?: BI.ICustomerCaptureResponse): BI.CustomerCaptureResponse; + public static create(properties?: BI.IGradientValidateKeyRequest): BI.GradientValidateKeyRequest; /** - * Encodes the specified CustomerCaptureResponse message. Does not implicitly {@link BI.CustomerCaptureResponse.verify|verify} messages. - * @param message CustomerCaptureResponse message or plain object to encode + * Encodes the specified GradientValidateKeyRequest message. Does not implicitly {@link BI.GradientValidateKeyRequest.verify|verify} messages. + * @param message GradientValidateKeyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.ICustomerCaptureResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IGradientValidateKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomerCaptureResponse message from the specified reader or buffer. + * Decodes a GradientValidateKeyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CustomerCaptureResponse + * @returns GradientValidateKeyRequest * @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.CustomerCaptureResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientValidateKeyRequest; /** - * Creates a CustomerCaptureResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GradientValidateKeyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CustomerCaptureResponse + * @returns GradientValidateKeyRequest */ - public static fromObject(object: { [k: string]: any }): BI.CustomerCaptureResponse; + public static fromObject(object: { [k: string]: any }): BI.GradientValidateKeyRequest; /** - * Creates a plain object from a CustomerCaptureResponse message. Also converts values to other types if specified. - * @param message CustomerCaptureResponse + * Creates a plain object from a GradientValidateKeyRequest message. Also converts values to other types if specified. + * @param message GradientValidateKeyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.CustomerCaptureResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.GradientValidateKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomerCaptureResponse to JSON. + * Converts this GradientValidateKeyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CustomerCaptureResponse + * Gets the default type url for GradientValidateKeyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** PurchaseProductType enum. */ - enum PurchaseProductType { - upgradeToEnterprise = 0, - addUsers = 1, - addStorage = 2, - addAudit = 3, - addBreachWatch = 4, - addCompliance = 5, - addChat = 6, - addPAM = 7, - addSilverSupport = 8, - addPlatinumSupport = 9, - addKEPM = 10, - addNhi = 11 - } - - /** Properties of an Error. */ - interface IError { + /** Properties of a GradientValidateKeyResponse. */ + interface IGradientValidateKeyResponse { - /** Error code */ - code?: (string|null); + /** GradientValidateKeyResponse success */ + success?: (boolean|null); - /** Error message */ + /** GradientValidateKeyResponse message */ message?: (string|null); - - /** Error extras */ - extras?: ({ [k: string]: string }|null); } - /** Represents an Error. */ - class Error implements IError { + /** Represents a GradientValidateKeyResponse. */ + class GradientValidateKeyResponse implements IGradientValidateKeyResponse { /** - * Constructs a new Error. + * Constructs a new GradientValidateKeyResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IError); + constructor(properties?: BI.IGradientValidateKeyResponse); - /** Error code. */ - public code: string; + /** GradientValidateKeyResponse success. */ + public success: boolean; - /** Error message. */ + /** GradientValidateKeyResponse message. */ public message: string; - /** Error extras. */ - public extras: { [k: string]: string }; - /** - * Creates a new Error instance using the specified properties. + * Creates a new GradientValidateKeyResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Error instance + * @returns GradientValidateKeyResponse instance */ - public static create(properties?: BI.IError): BI.Error; + public static create(properties?: BI.IGradientValidateKeyResponse): BI.GradientValidateKeyResponse; /** - * Encodes the specified Error message. Does not implicitly {@link BI.Error.verify|verify} messages. - * @param message Error message or plain object to encode + * Encodes the specified GradientValidateKeyResponse message. Does not implicitly {@link BI.GradientValidateKeyResponse.verify|verify} messages. + * @param message GradientValidateKeyResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IGradientValidateKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Error message from the specified reader or buffer. + * Decodes a GradientValidateKeyResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Error + * @returns GradientValidateKeyResponse * @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.Error; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientValidateKeyResponse; /** - * Creates an Error message from a plain object. Also converts values to their respective internal types. + * Creates a GradientValidateKeyResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Error + * @returns GradientValidateKeyResponse */ - public static fromObject(object: { [k: string]: any }): BI.Error; + public static fromObject(object: { [k: string]: any }): BI.GradientValidateKeyResponse; /** - * Creates a plain object from an Error message. Also converts values to other types if specified. - * @param message Error + * Creates a plain object from a GradientValidateKeyResponse message. Also converts values to other types if specified. + * @param message GradientValidateKeyResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.Error, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.GradientValidateKeyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Error to JSON. + * Converts this GradientValidateKeyResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Error + * Gets the default type url for GradientValidateKeyResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a QuotePurchase. */ - interface IQuotePurchase { - - /** QuotePurchase quoteTotal */ - quoteTotal?: (number|null); - - /** QuotePurchase includedTax */ - includedTax?: (boolean|null); - - /** QuotePurchase includedOtherAddons */ - includedOtherAddons?: (boolean|null); - - /** QuotePurchase taxAmount */ - taxAmount?: (number|null); + /** Properties of a GradientSaveRequest. */ + interface IGradientSaveRequest { - /** QuotePurchase taxLabel */ - taxLabel?: (string|null); + /** GradientSaveRequest gradientKey */ + gradientKey?: (string|null); - /** QuotePurchase purchaseIdentifier */ - purchaseIdentifier?: (string|null); + /** GradientSaveRequest enterpriseUserId */ + enterpriseUserId?: (number|null); } - /** Represents a QuotePurchase. */ - class QuotePurchase implements IQuotePurchase { + /** Represents a GradientSaveRequest. */ + class GradientSaveRequest implements IGradientSaveRequest { /** - * Constructs a new QuotePurchase. + * Constructs a new GradientSaveRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IQuotePurchase); - - /** QuotePurchase quoteTotal. */ - public quoteTotal: number; - - /** QuotePurchase includedTax. */ - public includedTax: boolean; - - /** QuotePurchase includedOtherAddons. */ - public includedOtherAddons: boolean; - - /** QuotePurchase taxAmount. */ - public taxAmount: number; + constructor(properties?: BI.IGradientSaveRequest); - /** QuotePurchase taxLabel. */ - public taxLabel: string; + /** GradientSaveRequest gradientKey. */ + public gradientKey: string; - /** QuotePurchase purchaseIdentifier. */ - public purchaseIdentifier: string; + /** GradientSaveRequest enterpriseUserId. */ + public enterpriseUserId: number; /** - * Creates a new QuotePurchase instance using the specified properties. + * Creates a new GradientSaveRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QuotePurchase instance + * @returns GradientSaveRequest instance */ - public static create(properties?: BI.IQuotePurchase): BI.QuotePurchase; + public static create(properties?: BI.IGradientSaveRequest): BI.GradientSaveRequest; /** - * Encodes the specified QuotePurchase message. Does not implicitly {@link BI.QuotePurchase.verify|verify} messages. - * @param message QuotePurchase message or plain object to encode + * Encodes the specified GradientSaveRequest message. Does not implicitly {@link BI.GradientSaveRequest.verify|verify} messages. + * @param message GradientSaveRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IQuotePurchase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IGradientSaveRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QuotePurchase message from the specified reader or buffer. + * Decodes a GradientSaveRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QuotePurchase + * @returns GradientSaveRequest * @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.QuotePurchase; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientSaveRequest; /** - * Creates a QuotePurchase message from a plain object. Also converts values to their respective internal types. + * Creates a GradientSaveRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QuotePurchase + * @returns GradientSaveRequest */ - public static fromObject(object: { [k: string]: any }): BI.QuotePurchase; + public static fromObject(object: { [k: string]: any }): BI.GradientSaveRequest; /** - * Creates a plain object from a QuotePurchase message. Also converts values to other types if specified. - * @param message QuotePurchase + * Creates a plain object from a GradientSaveRequest message. Also converts values to other types if specified. + * @param message GradientSaveRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.QuotePurchase, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.GradientSaveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QuotePurchase to JSON. + * Converts this GradientSaveRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QuotePurchase + * Gets the default type url for GradientSaveRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurchaseOptions. */ - interface IPurchaseOptions { + /** Properties of a GradientSaveResponse. */ + interface IGradientSaveResponse { - /** PurchaseOptions inConsole */ - inConsole?: (boolean|null); + /** GradientSaveResponse success */ + success?: (boolean|null); - /** PurchaseOptions externalCheckout */ - externalCheckout?: (boolean|null); + /** GradientSaveResponse status */ + status?: (BI.GradientIntegrationStatus|null); + + /** GradientSaveResponse message */ + message?: (string|null); } - /** Represents a PurchaseOptions. */ - class PurchaseOptions implements IPurchaseOptions { + /** Represents a GradientSaveResponse. */ + class GradientSaveResponse implements IGradientSaveResponse { /** - * Constructs a new PurchaseOptions. + * Constructs a new GradientSaveResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IPurchaseOptions); + constructor(properties?: BI.IGradientSaveResponse); - /** PurchaseOptions inConsole. */ - public inConsole?: (boolean|null); + /** GradientSaveResponse success. */ + public success: boolean; - /** PurchaseOptions externalCheckout. */ - public externalCheckout?: (boolean|null); + /** GradientSaveResponse status. */ + public status: BI.GradientIntegrationStatus; + + /** GradientSaveResponse message. */ + public message: string; /** - * Creates a new PurchaseOptions instance using the specified properties. + * Creates a new GradientSaveResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PurchaseOptions instance + * @returns GradientSaveResponse instance */ - public static create(properties?: BI.IPurchaseOptions): BI.PurchaseOptions; + public static create(properties?: BI.IGradientSaveResponse): BI.GradientSaveResponse; /** - * Encodes the specified PurchaseOptions message. Does not implicitly {@link BI.PurchaseOptions.verify|verify} messages. - * @param message PurchaseOptions message or plain object to encode + * Encodes the specified GradientSaveResponse message. Does not implicitly {@link BI.GradientSaveResponse.verify|verify} messages. + * @param message GradientSaveResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IPurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IGradientSaveResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurchaseOptions message from the specified reader or buffer. + * Decodes a GradientSaveResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurchaseOptions + * @returns GradientSaveResponse * @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.PurchaseOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientSaveResponse; /** - * Creates a PurchaseOptions message from a plain object. Also converts values to their respective internal types. + * Creates a GradientSaveResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurchaseOptions + * @returns GradientSaveResponse */ - public static fromObject(object: { [k: string]: any }): BI.PurchaseOptions; + public static fromObject(object: { [k: string]: any }): BI.GradientSaveResponse; /** - * Creates a plain object from a PurchaseOptions message. Also converts values to other types if specified. - * @param message PurchaseOptions + * Creates a plain object from a GradientSaveResponse message. Also converts values to other types if specified. + * @param message GradientSaveResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.PurchaseOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.GradientSaveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurchaseOptions to JSON. + * Converts this GradientSaveResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurchaseOptions + * Gets the default type url for GradientSaveResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddonPurchaseOptions. */ - interface IAddonPurchaseOptions { - - /** AddonPurchaseOptions storage */ - storage?: (BI.IPurchaseOptions|null); - - /** AddonPurchaseOptions audit */ - audit?: (BI.IPurchaseOptions|null); - - /** AddonPurchaseOptions breachwatch */ - breachwatch?: (BI.IPurchaseOptions|null); - - /** AddonPurchaseOptions chat */ - chat?: (BI.IPurchaseOptions|null); - - /** AddonPurchaseOptions compliance */ - compliance?: (BI.IPurchaseOptions|null); - - /** AddonPurchaseOptions professionalServicesSilver */ - professionalServicesSilver?: (BI.IPurchaseOptions|null); - - /** AddonPurchaseOptions professionalServicesPlatinum */ - professionalServicesPlatinum?: (BI.IPurchaseOptions|null); - - /** AddonPurchaseOptions pam */ - pam?: (BI.IPurchaseOptions|null); - - /** AddonPurchaseOptions epm */ - epm?: (BI.IPurchaseOptions|null); - - /** AddonPurchaseOptions secretsManager */ - secretsManager?: (BI.IPurchaseOptions|null); + /** Properties of a GradientRemoveRequest. */ + interface IGradientRemoveRequest { - /** AddonPurchaseOptions connectionManager */ - connectionManager?: (BI.IPurchaseOptions|null); + /** GradientRemoveRequest enterpriseUserId */ + enterpriseUserId?: (number|null); + } - /** AddonPurchaseOptions remoteBrowserIsolation */ - remoteBrowserIsolation?: (BI.IPurchaseOptions|null); + /** Represents a GradientRemoveRequest. */ + class GradientRemoveRequest implements IGradientRemoveRequest { - /** AddonPurchaseOptions nhiTier */ - nhiTier?: (BI.IPurchaseOptions|null); - } + /** + * Constructs a new GradientRemoveRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IGradientRemoveRequest); - /** Represents an AddonPurchaseOptions. */ - class AddonPurchaseOptions implements IAddonPurchaseOptions { + /** GradientRemoveRequest enterpriseUserId. */ + public enterpriseUserId: number; /** - * Constructs a new AddonPurchaseOptions. + * Creates a new GradientRemoveRequest instance using the specified properties. * @param [properties] Properties to set + * @returns GradientRemoveRequest instance */ - constructor(properties?: BI.IAddonPurchaseOptions); + public static create(properties?: BI.IGradientRemoveRequest): BI.GradientRemoveRequest; - /** AddonPurchaseOptions storage. */ - public storage?: (BI.IPurchaseOptions|null); + /** + * Encodes the specified GradientRemoveRequest message. Does not implicitly {@link BI.GradientRemoveRequest.verify|verify} messages. + * @param message GradientRemoveRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.IGradientRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** AddonPurchaseOptions audit. */ - public audit?: (BI.IPurchaseOptions|null); + /** + * Decodes a GradientRemoveRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GradientRemoveRequest + * @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.GradientRemoveRequest; - /** AddonPurchaseOptions breachwatch. */ - public breachwatch?: (BI.IPurchaseOptions|null); + /** + * Creates a GradientRemoveRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GradientRemoveRequest + */ + public static fromObject(object: { [k: string]: any }): BI.GradientRemoveRequest; - /** AddonPurchaseOptions chat. */ - public chat?: (BI.IPurchaseOptions|null); + /** + * Creates a plain object from a GradientRemoveRequest message. Also converts values to other types if specified. + * @param message GradientRemoveRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.GradientRemoveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** AddonPurchaseOptions compliance. */ - public compliance?: (BI.IPurchaseOptions|null); + /** + * Converts this GradientRemoveRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** AddonPurchaseOptions professionalServicesSilver. */ - public professionalServicesSilver?: (BI.IPurchaseOptions|null); + /** + * Gets the default type url for GradientRemoveRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** AddonPurchaseOptions professionalServicesPlatinum. */ - public professionalServicesPlatinum?: (BI.IPurchaseOptions|null); + /** Properties of a GradientRemoveResponse. */ + interface IGradientRemoveResponse { - /** AddonPurchaseOptions pam. */ - public pam?: (BI.IPurchaseOptions|null); + /** GradientRemoveResponse success */ + success?: (boolean|null); - /** AddonPurchaseOptions epm. */ - public epm?: (BI.IPurchaseOptions|null); + /** GradientRemoveResponse message */ + message?: (string|null); + } - /** AddonPurchaseOptions secretsManager. */ - public secretsManager?: (BI.IPurchaseOptions|null); + /** Represents a GradientRemoveResponse. */ + class GradientRemoveResponse implements IGradientRemoveResponse { - /** AddonPurchaseOptions connectionManager. */ - public connectionManager?: (BI.IPurchaseOptions|null); + /** + * Constructs a new GradientRemoveResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IGradientRemoveResponse); - /** AddonPurchaseOptions remoteBrowserIsolation. */ - public remoteBrowserIsolation?: (BI.IPurchaseOptions|null); + /** GradientRemoveResponse success. */ + public success: boolean; - /** AddonPurchaseOptions nhiTier. */ - public nhiTier?: (BI.IPurchaseOptions|null); + /** GradientRemoveResponse message. */ + public message: string; /** - * Creates a new AddonPurchaseOptions instance using the specified properties. + * Creates a new GradientRemoveResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AddonPurchaseOptions instance + * @returns GradientRemoveResponse instance */ - public static create(properties?: BI.IAddonPurchaseOptions): BI.AddonPurchaseOptions; + public static create(properties?: BI.IGradientRemoveResponse): BI.GradientRemoveResponse; /** - * Encodes the specified AddonPurchaseOptions message. Does not implicitly {@link BI.AddonPurchaseOptions.verify|verify} messages. - * @param message AddonPurchaseOptions message or plain object to encode + * Encodes the specified GradientRemoveResponse message. Does not implicitly {@link BI.GradientRemoveResponse.verify|verify} messages. + * @param message GradientRemoveResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IAddonPurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IGradientRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddonPurchaseOptions message from the specified reader or buffer. + * Decodes a GradientRemoveResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddonPurchaseOptions + * @returns GradientRemoveResponse * @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.AddonPurchaseOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientRemoveResponse; /** - * Creates an AddonPurchaseOptions message from a plain object. Also converts values to their respective internal types. + * Creates a GradientRemoveResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddonPurchaseOptions + * @returns GradientRemoveResponse */ - public static fromObject(object: { [k: string]: any }): BI.AddonPurchaseOptions; + public static fromObject(object: { [k: string]: any }): BI.GradientRemoveResponse; /** - * Creates a plain object from an AddonPurchaseOptions message. Also converts values to other types if specified. - * @param message AddonPurchaseOptions + * Creates a plain object from a GradientRemoveResponse message. Also converts values to other types if specified. + * @param message GradientRemoveResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.AddonPurchaseOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.GradientRemoveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddonPurchaseOptions to JSON. + * Converts this GradientRemoveResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddonPurchaseOptions + * Gets the default type url for GradientRemoveResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AvailablePurchaseOptions. */ - interface IAvailablePurchaseOptions { - - /** AvailablePurchaseOptions basePlan */ - basePlan?: (BI.IPurchaseOptions|null); - - /** AvailablePurchaseOptions users */ - users?: (BI.IPurchaseOptions|null); + /** Properties of a GradientSyncRequest. */ + interface IGradientSyncRequest { - /** AvailablePurchaseOptions addons */ - addons?: (BI.IAddonPurchaseOptions|null); + /** GradientSyncRequest enterpriseUserId */ + enterpriseUserId?: (number|null); } - /** Represents an AvailablePurchaseOptions. */ - class AvailablePurchaseOptions implements IAvailablePurchaseOptions { + /** Represents a GradientSyncRequest. */ + class GradientSyncRequest implements IGradientSyncRequest { /** - * Constructs a new AvailablePurchaseOptions. + * Constructs a new GradientSyncRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IAvailablePurchaseOptions); - - /** AvailablePurchaseOptions basePlan. */ - public basePlan?: (BI.IPurchaseOptions|null); - - /** AvailablePurchaseOptions users. */ - public users?: (BI.IPurchaseOptions|null); + constructor(properties?: BI.IGradientSyncRequest); - /** AvailablePurchaseOptions addons. */ - public addons?: (BI.IAddonPurchaseOptions|null); + /** GradientSyncRequest enterpriseUserId. */ + public enterpriseUserId: number; /** - * Creates a new AvailablePurchaseOptions instance using the specified properties. + * Creates a new GradientSyncRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AvailablePurchaseOptions instance + * @returns GradientSyncRequest instance */ - public static create(properties?: BI.IAvailablePurchaseOptions): BI.AvailablePurchaseOptions; + public static create(properties?: BI.IGradientSyncRequest): BI.GradientSyncRequest; /** - * Encodes the specified AvailablePurchaseOptions message. Does not implicitly {@link BI.AvailablePurchaseOptions.verify|verify} messages. - * @param message AvailablePurchaseOptions message or plain object to encode + * Encodes the specified GradientSyncRequest message. Does not implicitly {@link BI.GradientSyncRequest.verify|verify} messages. + * @param message GradientSyncRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IAvailablePurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IGradientSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AvailablePurchaseOptions message from the specified reader or buffer. + * Decodes a GradientSyncRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AvailablePurchaseOptions + * @returns GradientSyncRequest * @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.AvailablePurchaseOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientSyncRequest; /** - * Creates an AvailablePurchaseOptions message from a plain object. Also converts values to their respective internal types. + * Creates a GradientSyncRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AvailablePurchaseOptions + * @returns GradientSyncRequest */ - public static fromObject(object: { [k: string]: any }): BI.AvailablePurchaseOptions; + public static fromObject(object: { [k: string]: any }): BI.GradientSyncRequest; /** - * Creates a plain object from an AvailablePurchaseOptions message. Also converts values to other types if specified. - * @param message AvailablePurchaseOptions + * Creates a plain object from a GradientSyncRequest message. Also converts values to other types if specified. + * @param message GradientSyncRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.AvailablePurchaseOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.GradientSyncRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AvailablePurchaseOptions to JSON. + * Converts this GradientSyncRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AvailablePurchaseOptions + * Gets the default type url for GradientSyncRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpgradeLicenseStatusRequest. */ - interface IUpgradeLicenseStatusRequest { + /** Properties of a GradientSyncResponse. */ + interface IGradientSyncResponse { + + /** GradientSyncResponse success */ + success?: (boolean|null); + + /** GradientSyncResponse status */ + status?: (BI.GradientIntegrationStatus|null); + + /** GradientSyncResponse message */ + message?: (string|null); } - /** Represents an UpgradeLicenseStatusRequest. */ - class UpgradeLicenseStatusRequest implements IUpgradeLicenseStatusRequest { + /** Represents a GradientSyncResponse. */ + class GradientSyncResponse implements IGradientSyncResponse { /** - * Constructs a new UpgradeLicenseStatusRequest. + * Constructs a new GradientSyncResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IUpgradeLicenseStatusRequest); + constructor(properties?: BI.IGradientSyncResponse); + + /** GradientSyncResponse success. */ + public success: boolean; + + /** GradientSyncResponse status. */ + public status: BI.GradientIntegrationStatus; + + /** GradientSyncResponse message. */ + public message: string; /** - * Creates a new UpgradeLicenseStatusRequest instance using the specified properties. + * Creates a new GradientSyncResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpgradeLicenseStatusRequest instance + * @returns GradientSyncResponse instance */ - public static create(properties?: BI.IUpgradeLicenseStatusRequest): BI.UpgradeLicenseStatusRequest; + public static create(properties?: BI.IGradientSyncResponse): BI.GradientSyncResponse; /** - * Encodes the specified UpgradeLicenseStatusRequest message. Does not implicitly {@link BI.UpgradeLicenseStatusRequest.verify|verify} messages. - * @param message UpgradeLicenseStatusRequest message or plain object to encode + * Encodes the specified GradientSyncResponse message. Does not implicitly {@link BI.GradientSyncResponse.verify|verify} messages. + * @param message GradientSyncResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IUpgradeLicenseStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IGradientSyncResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpgradeLicenseStatusRequest message from the specified reader or buffer. + * Decodes a GradientSyncResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpgradeLicenseStatusRequest + * @returns GradientSyncResponse * @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.UpgradeLicenseStatusRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.GradientSyncResponse; /** - * Creates an UpgradeLicenseStatusRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GradientSyncResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpgradeLicenseStatusRequest + * @returns GradientSyncResponse */ - public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseStatusRequest; + public static fromObject(object: { [k: string]: any }): BI.GradientSyncResponse; /** - * Creates a plain object from an UpgradeLicenseStatusRequest message. Also converts values to other types if specified. - * @param message UpgradeLicenseStatusRequest + * Creates a plain object from a GradientSyncResponse message. Also converts values to other types if specified. + * @param message GradientSyncResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.UpgradeLicenseStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.GradientSyncResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpgradeLicenseStatusRequest to JSON. + * Converts this GradientSyncResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpgradeLicenseStatusRequest + * Gets the default type url for GradientSyncResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpgradeLicenseStatusResponse. */ - interface IUpgradeLicenseStatusResponse { - - /** UpgradeLicenseStatusResponse allowPurchaseFromConsole */ - allowPurchaseFromConsole?: (boolean|null); + /** GradientIntegrationStatus enum. */ + enum GradientIntegrationStatus { + NOTCONNECTED = 0, + PENDING = 1, + CONNECTED = 2, + NONE = 3 + } + + /** Properties of a NetPromoterScoreSurveySubmissionRequest. */ + interface INetPromoterScoreSurveySubmissionRequest { - /** UpgradeLicenseStatusResponse purchaseOptions */ - purchaseOptions?: (BI.IAvailablePurchaseOptions|null); + /** NetPromoterScoreSurveySubmissionRequest surveyScore */ + surveyScore?: (number|null); - /** UpgradeLicenseStatusResponse error */ - error?: (BI.IError|null); + /** NetPromoterScoreSurveySubmissionRequest notes */ + notes?: (string|null); } - /** Represents an UpgradeLicenseStatusResponse. */ - class UpgradeLicenseStatusResponse implements IUpgradeLicenseStatusResponse { + /** Represents a NetPromoterScoreSurveySubmissionRequest. */ + class NetPromoterScoreSurveySubmissionRequest implements INetPromoterScoreSurveySubmissionRequest { /** - * Constructs a new UpgradeLicenseStatusResponse. + * Constructs a new NetPromoterScoreSurveySubmissionRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IUpgradeLicenseStatusResponse); - - /** UpgradeLicenseStatusResponse allowPurchaseFromConsole. */ - public allowPurchaseFromConsole: boolean; + constructor(properties?: BI.INetPromoterScoreSurveySubmissionRequest); - /** UpgradeLicenseStatusResponse purchaseOptions. */ - public purchaseOptions?: (BI.IAvailablePurchaseOptions|null); + /** NetPromoterScoreSurveySubmissionRequest surveyScore. */ + public surveyScore: number; - /** UpgradeLicenseStatusResponse error. */ - public error?: (BI.IError|null); + /** NetPromoterScoreSurveySubmissionRequest notes. */ + public notes: string; /** - * Creates a new UpgradeLicenseStatusResponse instance using the specified properties. + * Creates a new NetPromoterScoreSurveySubmissionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpgradeLicenseStatusResponse instance + * @returns NetPromoterScoreSurveySubmissionRequest instance */ - public static create(properties?: BI.IUpgradeLicenseStatusResponse): BI.UpgradeLicenseStatusResponse; + public static create(properties?: BI.INetPromoterScoreSurveySubmissionRequest): BI.NetPromoterScoreSurveySubmissionRequest; /** - * Encodes the specified UpgradeLicenseStatusResponse message. Does not implicitly {@link BI.UpgradeLicenseStatusResponse.verify|verify} messages. - * @param message UpgradeLicenseStatusResponse message or plain object to encode + * Encodes the specified NetPromoterScoreSurveySubmissionRequest message. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionRequest.verify|verify} messages. + * @param message NetPromoterScoreSurveySubmissionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IUpgradeLicenseStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.INetPromoterScoreSurveySubmissionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpgradeLicenseStatusResponse message from the specified reader or buffer. + * Decodes a NetPromoterScoreSurveySubmissionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpgradeLicenseStatusResponse + * @returns NetPromoterScoreSurveySubmissionRequest * @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.UpgradeLicenseStatusResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NetPromoterScoreSurveySubmissionRequest; /** - * Creates an UpgradeLicenseStatusResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NetPromoterScoreSurveySubmissionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpgradeLicenseStatusResponse + * @returns NetPromoterScoreSurveySubmissionRequest */ - public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseStatusResponse; + public static fromObject(object: { [k: string]: any }): BI.NetPromoterScoreSurveySubmissionRequest; /** - * Creates a plain object from an UpgradeLicenseStatusResponse message. Also converts values to other types if specified. - * @param message UpgradeLicenseStatusResponse + * Creates a plain object from a NetPromoterScoreSurveySubmissionRequest message. Also converts values to other types if specified. + * @param message NetPromoterScoreSurveySubmissionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.UpgradeLicenseStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.NetPromoterScoreSurveySubmissionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpgradeLicenseStatusResponse to JSON. + * Converts this NetPromoterScoreSurveySubmissionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpgradeLicenseStatusResponse + * Gets the default type url for NetPromoterScoreSurveySubmissionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpgradeLicenseQuotePurchaseRequest. */ - interface IUpgradeLicenseQuotePurchaseRequest { - - /** UpgradeLicenseQuotePurchaseRequest productType */ - productType?: (BI.PurchaseProductType|null); - - /** UpgradeLicenseQuotePurchaseRequest quantity */ - quantity?: (number|null); - - /** UpgradeLicenseQuotePurchaseRequest tier */ - tier?: (number|null); + /** Properties of a NetPromoterScoreSurveySubmissionResponse. */ + interface INetPromoterScoreSurveySubmissionResponse { } - /** Represents an UpgradeLicenseQuotePurchaseRequest. */ - class UpgradeLicenseQuotePurchaseRequest implements IUpgradeLicenseQuotePurchaseRequest { + /** Represents a NetPromoterScoreSurveySubmissionResponse. */ + class NetPromoterScoreSurveySubmissionResponse implements INetPromoterScoreSurveySubmissionResponse { /** - * Constructs a new UpgradeLicenseQuotePurchaseRequest. + * Constructs a new NetPromoterScoreSurveySubmissionResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IUpgradeLicenseQuotePurchaseRequest); - - /** UpgradeLicenseQuotePurchaseRequest productType. */ - public productType: BI.PurchaseProductType; - - /** UpgradeLicenseQuotePurchaseRequest quantity. */ - public quantity: number; - - /** UpgradeLicenseQuotePurchaseRequest tier. */ - public tier: number; + constructor(properties?: BI.INetPromoterScoreSurveySubmissionResponse); /** - * Creates a new UpgradeLicenseQuotePurchaseRequest instance using the specified properties. + * Creates a new NetPromoterScoreSurveySubmissionResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpgradeLicenseQuotePurchaseRequest instance + * @returns NetPromoterScoreSurveySubmissionResponse instance */ - public static create(properties?: BI.IUpgradeLicenseQuotePurchaseRequest): BI.UpgradeLicenseQuotePurchaseRequest; + public static create(properties?: BI.INetPromoterScoreSurveySubmissionResponse): BI.NetPromoterScoreSurveySubmissionResponse; /** - * Encodes the specified UpgradeLicenseQuotePurchaseRequest message. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseRequest.verify|verify} messages. - * @param message UpgradeLicenseQuotePurchaseRequest message or plain object to encode + * Encodes the specified NetPromoterScoreSurveySubmissionResponse message. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionResponse.verify|verify} messages. + * @param message NetPromoterScoreSurveySubmissionResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IUpgradeLicenseQuotePurchaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.INetPromoterScoreSurveySubmissionResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpgradeLicenseQuotePurchaseRequest message from the specified reader or buffer. + * Decodes a NetPromoterScoreSurveySubmissionResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpgradeLicenseQuotePurchaseRequest + * @returns NetPromoterScoreSurveySubmissionResponse * @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.UpgradeLicenseQuotePurchaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NetPromoterScoreSurveySubmissionResponse; /** - * Creates an UpgradeLicenseQuotePurchaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NetPromoterScoreSurveySubmissionResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpgradeLicenseQuotePurchaseRequest + * @returns NetPromoterScoreSurveySubmissionResponse */ - public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseQuotePurchaseRequest; + public static fromObject(object: { [k: string]: any }): BI.NetPromoterScoreSurveySubmissionResponse; /** - * Creates a plain object from an UpgradeLicenseQuotePurchaseRequest message. Also converts values to other types if specified. - * @param message UpgradeLicenseQuotePurchaseRequest + * Creates a plain object from a NetPromoterScoreSurveySubmissionResponse message. Also converts values to other types if specified. + * @param message NetPromoterScoreSurveySubmissionResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.UpgradeLicenseQuotePurchaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.NetPromoterScoreSurveySubmissionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpgradeLicenseQuotePurchaseRequest to JSON. + * Converts this NetPromoterScoreSurveySubmissionResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpgradeLicenseQuotePurchaseRequest + * Gets the default type url for NetPromoterScoreSurveySubmissionResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpgradeLicenseQuotePurchaseResponse. */ - interface IUpgradeLicenseQuotePurchaseResponse { - - /** UpgradeLicenseQuotePurchaseResponse success */ - success?: (boolean|null); - - /** UpgradeLicenseQuotePurchaseResponse quotePurchase */ - quotePurchase?: (BI.IQuotePurchase|null); - - /** UpgradeLicenseQuotePurchaseResponse viewSummaryLink */ - viewSummaryLink?: (string|null); - - /** UpgradeLicenseQuotePurchaseResponse error */ - error?: (BI.IError|null); + /** Properties of a NetPromoterScorePopupScheduleRequest. */ + interface INetPromoterScorePopupScheduleRequest { } - /** Represents an UpgradeLicenseQuotePurchaseResponse. */ - class UpgradeLicenseQuotePurchaseResponse implements IUpgradeLicenseQuotePurchaseResponse { + /** Represents a NetPromoterScorePopupScheduleRequest. */ + class NetPromoterScorePopupScheduleRequest implements INetPromoterScorePopupScheduleRequest { /** - * Constructs a new UpgradeLicenseQuotePurchaseResponse. + * Constructs a new NetPromoterScorePopupScheduleRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IUpgradeLicenseQuotePurchaseResponse); - - /** UpgradeLicenseQuotePurchaseResponse success. */ - public success: boolean; - - /** UpgradeLicenseQuotePurchaseResponse quotePurchase. */ - public quotePurchase?: (BI.IQuotePurchase|null); - - /** UpgradeLicenseQuotePurchaseResponse viewSummaryLink. */ - public viewSummaryLink: string; - - /** UpgradeLicenseQuotePurchaseResponse error. */ - public error?: (BI.IError|null); + constructor(properties?: BI.INetPromoterScorePopupScheduleRequest); /** - * Creates a new UpgradeLicenseQuotePurchaseResponse instance using the specified properties. + * Creates a new NetPromoterScorePopupScheduleRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpgradeLicenseQuotePurchaseResponse instance + * @returns NetPromoterScorePopupScheduleRequest instance */ - public static create(properties?: BI.IUpgradeLicenseQuotePurchaseResponse): BI.UpgradeLicenseQuotePurchaseResponse; + public static create(properties?: BI.INetPromoterScorePopupScheduleRequest): BI.NetPromoterScorePopupScheduleRequest; /** - * Encodes the specified UpgradeLicenseQuotePurchaseResponse message. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseResponse.verify|verify} messages. - * @param message UpgradeLicenseQuotePurchaseResponse message or plain object to encode + * Encodes the specified NetPromoterScorePopupScheduleRequest message. Does not implicitly {@link BI.NetPromoterScorePopupScheduleRequest.verify|verify} messages. + * @param message NetPromoterScorePopupScheduleRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IUpgradeLicenseQuotePurchaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.INetPromoterScorePopupScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpgradeLicenseQuotePurchaseResponse message from the specified reader or buffer. + * Decodes a NetPromoterScorePopupScheduleRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpgradeLicenseQuotePurchaseResponse + * @returns NetPromoterScorePopupScheduleRequest * @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.UpgradeLicenseQuotePurchaseResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NetPromoterScorePopupScheduleRequest; /** - * Creates an UpgradeLicenseQuotePurchaseResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NetPromoterScorePopupScheduleRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpgradeLicenseQuotePurchaseResponse + * @returns NetPromoterScorePopupScheduleRequest */ - public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseQuotePurchaseResponse; + public static fromObject(object: { [k: string]: any }): BI.NetPromoterScorePopupScheduleRequest; /** - * Creates a plain object from an UpgradeLicenseQuotePurchaseResponse message. Also converts values to other types if specified. - * @param message UpgradeLicenseQuotePurchaseResponse + * Creates a plain object from a NetPromoterScorePopupScheduleRequest message. Also converts values to other types if specified. + * @param message NetPromoterScorePopupScheduleRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.UpgradeLicenseQuotePurchaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.NetPromoterScorePopupScheduleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpgradeLicenseQuotePurchaseResponse to JSON. + * Converts this NetPromoterScorePopupScheduleRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpgradeLicenseQuotePurchaseResponse + * Gets the default type url for NetPromoterScorePopupScheduleRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpgradeLicenseCompletePurchaseRequest. */ - interface IUpgradeLicenseCompletePurchaseRequest { - - /** UpgradeLicenseCompletePurchaseRequest productType */ - productType?: (BI.PurchaseProductType|null); - - /** UpgradeLicenseCompletePurchaseRequest quantity */ - quantity?: (number|null); - - /** UpgradeLicenseCompletePurchaseRequest quotePurchase */ - quotePurchase?: (BI.IQuotePurchase|null); + /** Properties of a NetPromoterScorePopupScheduleResponse. */ + interface INetPromoterScorePopupScheduleResponse { - /** UpgradeLicenseCompletePurchaseRequest tier */ - tier?: (number|null); + /** NetPromoterScorePopupScheduleResponse showPopup */ + showPopup?: (boolean|null); } - /** Represents an UpgradeLicenseCompletePurchaseRequest. */ - class UpgradeLicenseCompletePurchaseRequest implements IUpgradeLicenseCompletePurchaseRequest { + /** Represents a NetPromoterScorePopupScheduleResponse. */ + class NetPromoterScorePopupScheduleResponse implements INetPromoterScorePopupScheduleResponse { /** - * Constructs a new UpgradeLicenseCompletePurchaseRequest. + * Constructs a new NetPromoterScorePopupScheduleResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IUpgradeLicenseCompletePurchaseRequest); - - /** UpgradeLicenseCompletePurchaseRequest productType. */ - public productType: BI.PurchaseProductType; - - /** UpgradeLicenseCompletePurchaseRequest quantity. */ - public quantity: number; - - /** UpgradeLicenseCompletePurchaseRequest quotePurchase. */ - public quotePurchase?: (BI.IQuotePurchase|null); + constructor(properties?: BI.INetPromoterScorePopupScheduleResponse); - /** UpgradeLicenseCompletePurchaseRequest tier. */ - public tier: number; + /** NetPromoterScorePopupScheduleResponse showPopup. */ + public showPopup: boolean; /** - * Creates a new UpgradeLicenseCompletePurchaseRequest instance using the specified properties. + * Creates a new NetPromoterScorePopupScheduleResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpgradeLicenseCompletePurchaseRequest instance + * @returns NetPromoterScorePopupScheduleResponse instance */ - public static create(properties?: BI.IUpgradeLicenseCompletePurchaseRequest): BI.UpgradeLicenseCompletePurchaseRequest; + public static create(properties?: BI.INetPromoterScorePopupScheduleResponse): BI.NetPromoterScorePopupScheduleResponse; /** - * Encodes the specified UpgradeLicenseCompletePurchaseRequest message. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseRequest.verify|verify} messages. - * @param message UpgradeLicenseCompletePurchaseRequest message or plain object to encode + * Encodes the specified NetPromoterScorePopupScheduleResponse message. Does not implicitly {@link BI.NetPromoterScorePopupScheduleResponse.verify|verify} messages. + * @param message NetPromoterScorePopupScheduleResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IUpgradeLicenseCompletePurchaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.INetPromoterScorePopupScheduleResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpgradeLicenseCompletePurchaseRequest message from the specified reader or buffer. + * Decodes a NetPromoterScorePopupScheduleResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpgradeLicenseCompletePurchaseRequest + * @returns NetPromoterScorePopupScheduleResponse * @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.UpgradeLicenseCompletePurchaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NetPromoterScorePopupScheduleResponse; /** - * Creates an UpgradeLicenseCompletePurchaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NetPromoterScorePopupScheduleResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpgradeLicenseCompletePurchaseRequest + * @returns NetPromoterScorePopupScheduleResponse */ - public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseCompletePurchaseRequest; + public static fromObject(object: { [k: string]: any }): BI.NetPromoterScorePopupScheduleResponse; /** - * Creates a plain object from an UpgradeLicenseCompletePurchaseRequest message. Also converts values to other types if specified. - * @param message UpgradeLicenseCompletePurchaseRequest + * Creates a plain object from a NetPromoterScorePopupScheduleResponse message. Also converts values to other types if specified. + * @param message NetPromoterScorePopupScheduleResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.UpgradeLicenseCompletePurchaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.NetPromoterScorePopupScheduleResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpgradeLicenseCompletePurchaseRequest to JSON. + * Converts this NetPromoterScorePopupScheduleResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpgradeLicenseCompletePurchaseRequest + * Gets the default type url for NetPromoterScorePopupScheduleResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpgradeLicenseCompletePurchaseResponse. */ - interface IUpgradeLicenseCompletePurchaseResponse { - - /** UpgradeLicenseCompletePurchaseResponse success */ - success?: (boolean|null); - - /** UpgradeLicenseCompletePurchaseResponse invoiceNumber */ - invoiceNumber?: (string|null); - - /** UpgradeLicenseCompletePurchaseResponse error */ - error?: (BI.IError|null); - - /** UpgradeLicenseCompletePurchaseResponse quotePurchase */ - quotePurchase?: (BI.IQuotePurchase|null); + /** Properties of a NetPromoterScorePopupDismissalRequest. */ + interface INetPromoterScorePopupDismissalRequest { } - /** Represents an UpgradeLicenseCompletePurchaseResponse. */ - class UpgradeLicenseCompletePurchaseResponse implements IUpgradeLicenseCompletePurchaseResponse { + /** Represents a NetPromoterScorePopupDismissalRequest. */ + class NetPromoterScorePopupDismissalRequest implements INetPromoterScorePopupDismissalRequest { /** - * Constructs a new UpgradeLicenseCompletePurchaseResponse. + * Constructs a new NetPromoterScorePopupDismissalRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.IUpgradeLicenseCompletePurchaseResponse); - - /** UpgradeLicenseCompletePurchaseResponse success. */ - public success: boolean; - - /** UpgradeLicenseCompletePurchaseResponse invoiceNumber. */ - public invoiceNumber: string; - - /** UpgradeLicenseCompletePurchaseResponse error. */ - public error?: (BI.IError|null); - - /** UpgradeLicenseCompletePurchaseResponse quotePurchase. */ - public quotePurchase?: (BI.IQuotePurchase|null); + constructor(properties?: BI.INetPromoterScorePopupDismissalRequest); /** - * Creates a new UpgradeLicenseCompletePurchaseResponse instance using the specified properties. + * Creates a new NetPromoterScorePopupDismissalRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpgradeLicenseCompletePurchaseResponse instance + * @returns NetPromoterScorePopupDismissalRequest instance */ - public static create(properties?: BI.IUpgradeLicenseCompletePurchaseResponse): BI.UpgradeLicenseCompletePurchaseResponse; + public static create(properties?: BI.INetPromoterScorePopupDismissalRequest): BI.NetPromoterScorePopupDismissalRequest; /** - * Encodes the specified UpgradeLicenseCompletePurchaseResponse message. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseResponse.verify|verify} messages. - * @param message UpgradeLicenseCompletePurchaseResponse message or plain object to encode + * Encodes the specified NetPromoterScorePopupDismissalRequest message. Does not implicitly {@link BI.NetPromoterScorePopupDismissalRequest.verify|verify} messages. + * @param message NetPromoterScorePopupDismissalRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IUpgradeLicenseCompletePurchaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.INetPromoterScorePopupDismissalRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpgradeLicenseCompletePurchaseResponse message from the specified reader or buffer. + * Decodes a NetPromoterScorePopupDismissalRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpgradeLicenseCompletePurchaseResponse + * @returns NetPromoterScorePopupDismissalRequest * @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.UpgradeLicenseCompletePurchaseResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NetPromoterScorePopupDismissalRequest; /** - * Creates an UpgradeLicenseCompletePurchaseResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NetPromoterScorePopupDismissalRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpgradeLicenseCompletePurchaseResponse + * @returns NetPromoterScorePopupDismissalRequest */ - public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseCompletePurchaseResponse; + public static fromObject(object: { [k: string]: any }): BI.NetPromoterScorePopupDismissalRequest; /** - * Creates a plain object from an UpgradeLicenseCompletePurchaseResponse message. Also converts values to other types if specified. - * @param message UpgradeLicenseCompletePurchaseResponse + * Creates a plain object from a NetPromoterScorePopupDismissalRequest message. Also converts values to other types if specified. + * @param message NetPromoterScorePopupDismissalRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.UpgradeLicenseCompletePurchaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.NetPromoterScorePopupDismissalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpgradeLicenseCompletePurchaseResponse to JSON. + * Converts this NetPromoterScorePopupDismissalRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpgradeLicenseCompletePurchaseResponse + * Gets the default type url for NetPromoterScorePopupDismissalRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ 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); + /** Properties of a NetPromoterScorePopupDismissalResponse. */ + interface INetPromoterScorePopupDismissalResponse { } - /** Represents an EnterpriseBasePlan. */ - class EnterpriseBasePlan implements IEnterpriseBasePlan { + /** Represents a NetPromoterScorePopupDismissalResponse. */ + class NetPromoterScorePopupDismissalResponse implements INetPromoterScorePopupDismissalResponse { /** - * Constructs a new EnterpriseBasePlan. + * Constructs a new NetPromoterScorePopupDismissalResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IEnterpriseBasePlan); - - /** EnterpriseBasePlan baseplanVersion. */ - public baseplanVersion: BI.EnterpriseBasePlan.EnterpriseBasePlanVersion; - - /** EnterpriseBasePlan cost. */ - public cost?: (BI.ICost|null); + constructor(properties?: BI.INetPromoterScorePopupDismissalResponse); /** - * Creates a new EnterpriseBasePlan instance using the specified properties. + * Creates a new NetPromoterScorePopupDismissalResponse instance using the specified properties. * @param [properties] Properties to set - * @returns EnterpriseBasePlan instance + * @returns NetPromoterScorePopupDismissalResponse instance */ - public static create(properties?: BI.IEnterpriseBasePlan): BI.EnterpriseBasePlan; + public static create(properties?: BI.INetPromoterScorePopupDismissalResponse): BI.NetPromoterScorePopupDismissalResponse; /** - * Encodes the specified EnterpriseBasePlan message. Does not implicitly {@link BI.EnterpriseBasePlan.verify|verify} messages. - * @param message EnterpriseBasePlan message or plain object to encode + * Encodes the specified NetPromoterScorePopupDismissalResponse message. Does not implicitly {@link BI.NetPromoterScorePopupDismissalResponse.verify|verify} messages. + * @param message NetPromoterScorePopupDismissalResponse 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; + public static encode(message: BI.INetPromoterScorePopupDismissalResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnterpriseBasePlan message from the specified reader or buffer. + * Decodes a NetPromoterScorePopupDismissalResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnterpriseBasePlan + * @returns NetPromoterScorePopupDismissalResponse * @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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.NetPromoterScorePopupDismissalResponse; /** - * Creates an EnterpriseBasePlan message from a plain object. Also converts values to their respective internal types. + * Creates a NetPromoterScorePopupDismissalResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnterpriseBasePlan + * @returns NetPromoterScorePopupDismissalResponse */ - public static fromObject(object: { [k: string]: any }): BI.EnterpriseBasePlan; + public static fromObject(object: { [k: string]: any }): BI.NetPromoterScorePopupDismissalResponse; /** - * Creates a plain object from an EnterpriseBasePlan message. Also converts values to other types if specified. - * @param message EnterpriseBasePlan + * Creates a plain object from a NetPromoterScorePopupDismissalResponse message. Also converts values to other types if specified. + * @param message NetPromoterScorePopupDismissalResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.EnterpriseBasePlan, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.NetPromoterScorePopupDismissalResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnterpriseBasePlan to JSON. + * Converts this NetPromoterScorePopupDismissalResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EnterpriseBasePlan + * Gets the default type url for NetPromoterScorePopupDismissalResponse * @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 KCMLicenseRequest. */ + interface IKCMLicenseRequest { - /** Properties of a SubscriptionEnterprisePricingRequest. */ - interface ISubscriptionEnterprisePricingRequest { + /** KCMLicenseRequest enterpriseUserId */ + enterpriseUserId?: (number|null); } - /** Represents a SubscriptionEnterprisePricingRequest. */ - class SubscriptionEnterprisePricingRequest implements ISubscriptionEnterprisePricingRequest { + /** Represents a KCMLicenseRequest. */ + class KCMLicenseRequest implements IKCMLicenseRequest { /** - * Constructs a new SubscriptionEnterprisePricingRequest. + * Constructs a new KCMLicenseRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.ISubscriptionEnterprisePricingRequest); + constructor(properties?: BI.IKCMLicenseRequest); + + /** KCMLicenseRequest enterpriseUserId. */ + public enterpriseUserId: number; /** - * Creates a new SubscriptionEnterprisePricingRequest instance using the specified properties. + * Creates a new KCMLicenseRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SubscriptionEnterprisePricingRequest instance + * @returns KCMLicenseRequest instance */ - public static create(properties?: BI.ISubscriptionEnterprisePricingRequest): BI.SubscriptionEnterprisePricingRequest; + public static create(properties?: BI.IKCMLicenseRequest): BI.KCMLicenseRequest; /** - * Encodes the specified SubscriptionEnterprisePricingRequest message. Does not implicitly {@link BI.SubscriptionEnterprisePricingRequest.verify|verify} messages. - * @param message SubscriptionEnterprisePricingRequest message or plain object to encode + * Encodes the specified KCMLicenseRequest message. Does not implicitly {@link BI.KCMLicenseRequest.verify|verify} messages. + * @param message KCMLicenseRequest 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; + public static encode(message: BI.IKCMLicenseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SubscriptionEnterprisePricingRequest message from the specified reader or buffer. + * Decodes a KCMLicenseRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SubscriptionEnterprisePricingRequest + * @returns KCMLicenseRequest * @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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.KCMLicenseRequest; /** - * Creates a SubscriptionEnterprisePricingRequest message from a plain object. Also converts values to their respective internal types. + * Creates a KCMLicenseRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SubscriptionEnterprisePricingRequest + * @returns KCMLicenseRequest */ - public static fromObject(object: { [k: string]: any }): BI.SubscriptionEnterprisePricingRequest; + public static fromObject(object: { [k: string]: any }): BI.KCMLicenseRequest; /** - * Creates a plain object from a SubscriptionEnterprisePricingRequest message. Also converts values to other types if specified. - * @param message SubscriptionEnterprisePricingRequest + * Creates a plain object from a KCMLicenseRequest message. Also converts values to other types if specified. + * @param message KCMLicenseRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionEnterprisePricingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.KCMLicenseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SubscriptionEnterprisePricingRequest to JSON. + * Converts this KCMLicenseRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SubscriptionEnterprisePricingRequest + * Gets the default type url for KCMLicenseRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NhiTierPlan. */ - interface INhiTierPlan { - - /** NhiTierPlan tierId */ - tierId?: (number|null); - - /** NhiTierPlan nhiCeiling */ - nhiCeiling?: (number|null); - - /** NhiTierPlan cost */ - cost?: (BI.ICost|null); - - /** NhiTierPlan productId */ - productId?: (number|null); + /** Properties of a KCMLicenseResponse. */ + interface IKCMLicenseResponse { - /** NhiTierPlan nhiFloor */ - nhiFloor?: (number|null); + /** KCMLicenseResponse message */ + message?: (string|null); } - /** Represents a NhiTierPlan. */ - class NhiTierPlan implements INhiTierPlan { + /** Represents a KCMLicenseResponse. */ + class KCMLicenseResponse implements IKCMLicenseResponse { /** - * Constructs a new NhiTierPlan. + * Constructs a new KCMLicenseResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.INhiTierPlan); - - /** NhiTierPlan tierId. */ - public tierId: number; - - /** NhiTierPlan nhiCeiling. */ - public nhiCeiling: number; - - /** NhiTierPlan cost. */ - public cost?: (BI.ICost|null); - - /** NhiTierPlan productId. */ - public productId: number; + constructor(properties?: BI.IKCMLicenseResponse); - /** NhiTierPlan nhiFloor. */ - public nhiFloor: number; + /** KCMLicenseResponse message. */ + public message: string; /** - * Creates a new NhiTierPlan instance using the specified properties. + * Creates a new KCMLicenseResponse instance using the specified properties. * @param [properties] Properties to set - * @returns NhiTierPlan instance + * @returns KCMLicenseResponse instance */ - public static create(properties?: BI.INhiTierPlan): BI.NhiTierPlan; + public static create(properties?: BI.IKCMLicenseResponse): BI.KCMLicenseResponse; /** - * Encodes the specified NhiTierPlan message. Does not implicitly {@link BI.NhiTierPlan.verify|verify} messages. - * @param message NhiTierPlan message or plain object to encode + * Encodes the specified KCMLicenseResponse message. Does not implicitly {@link BI.KCMLicenseResponse.verify|verify} messages. + * @param message KCMLicenseResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.INhiTierPlan, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IKCMLicenseResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NhiTierPlan message from the specified reader or buffer. + * Decodes a KCMLicenseResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NhiTierPlan + * @returns KCMLicenseResponse * @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.NhiTierPlan; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.KCMLicenseResponse; /** - * Creates a NhiTierPlan message from a plain object. Also converts values to their respective internal types. + * Creates a KCMLicenseResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NhiTierPlan + * @returns KCMLicenseResponse */ - public static fromObject(object: { [k: string]: any }): BI.NhiTierPlan; + public static fromObject(object: { [k: string]: any }): BI.KCMLicenseResponse; /** - * Creates a plain object from a NhiTierPlan message. Also converts values to other types if specified. - * @param message NhiTierPlan + * Creates a plain object from a KCMLicenseResponse message. Also converts values to other types if specified. + * @param message KCMLicenseResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NhiTierPlan, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.KCMLicenseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NhiTierPlan to JSON. + * Converts this KCMLicenseResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NhiTierPlan + * Gets the default type url for KCMLicenseResponse * @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 { + /** EventType enum. */ + enum EventType { + UNKNOWN_TRACKING_EVENT_TYPE = 0, + TRACKING_POPUP_DISPLAYED = 1, + TRACKING_POPUP_ACCEPTED = 2, + TRACKING_POPUP_DISMISSED = 3, + TRACKING_POPUP_PAID = 4, + TRACKING_PUSH_CLICKED = 5, + CONSOLE_ACTION = 6, + VAULT_ACTION = 7 + } - /** SubscriptionEnterprisePricingResponse basePlans */ - basePlans?: (BI.IEnterpriseBasePlan[]|null); + /** Properties of an EventRequest. */ + interface IEventRequest { - /** SubscriptionEnterprisePricingResponse addons */ - addons?: (BI.IAddon[]|null); + /** EventRequest eventType */ + eventType?: (BI.EventType|null); - /** SubscriptionEnterprisePricingResponse filePlans */ - filePlans?: (BI.IFilePlan[]|null); + /** EventRequest eventValue */ + eventValue?: (string|null); - /** SubscriptionEnterprisePricingResponse nhiTierPlans */ - nhiTierPlans?: (BI.INhiTierPlan[]|null); + /** EventRequest eventTime */ + eventTime?: (number|null); + + /** EventRequest attributes */ + attributes?: (google.protobuf.IStruct|null); } - /** Represents a SubscriptionEnterprisePricingResponse. */ - class SubscriptionEnterprisePricingResponse implements ISubscriptionEnterprisePricingResponse { + /** Represents an EventRequest. */ + class EventRequest implements IEventRequest { /** - * Constructs a new SubscriptionEnterprisePricingResponse. + * Constructs a new EventRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.ISubscriptionEnterprisePricingResponse); + constructor(properties?: BI.IEventRequest); - /** SubscriptionEnterprisePricingResponse basePlans. */ - public basePlans: BI.IEnterpriseBasePlan[]; + /** EventRequest eventType. */ + public eventType: BI.EventType; - /** SubscriptionEnterprisePricingResponse addons. */ - public addons: BI.IAddon[]; + /** EventRequest eventValue. */ + public eventValue: string; - /** SubscriptionEnterprisePricingResponse filePlans. */ - public filePlans: BI.IFilePlan[]; + /** EventRequest eventTime. */ + public eventTime: number; - /** SubscriptionEnterprisePricingResponse nhiTierPlans. */ - public nhiTierPlans: BI.INhiTierPlan[]; + /** EventRequest attributes. */ + public attributes?: (google.protobuf.IStruct|null); /** - * Creates a new SubscriptionEnterprisePricingResponse instance using the specified properties. + * Creates a new EventRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SubscriptionEnterprisePricingResponse instance + * @returns EventRequest instance */ - public static create(properties?: BI.ISubscriptionEnterprisePricingResponse): BI.SubscriptionEnterprisePricingResponse; + public static create(properties?: BI.IEventRequest): BI.EventRequest; /** - * Encodes the specified SubscriptionEnterprisePricingResponse message. Does not implicitly {@link BI.SubscriptionEnterprisePricingResponse.verify|verify} messages. - * @param message SubscriptionEnterprisePricingResponse message or plain object to encode + * Encodes the specified EventRequest message. Does not implicitly {@link BI.EventRequest.verify|verify} messages. + * @param message EventRequest 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; + public static encode(message: BI.IEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SubscriptionEnterprisePricingResponse message from the specified reader or buffer. + * Decodes an EventRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SubscriptionEnterprisePricingResponse + * @returns EventRequest * @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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.EventRequest; /** - * Creates a SubscriptionEnterprisePricingResponse message from a plain object. Also converts values to their respective internal types. + * Creates an EventRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SubscriptionEnterprisePricingResponse + * @returns EventRequest */ - public static fromObject(object: { [k: string]: any }): BI.SubscriptionEnterprisePricingResponse; + public static fromObject(object: { [k: string]: any }): BI.EventRequest; /** - * Creates a plain object from a SubscriptionEnterprisePricingResponse message. Also converts values to other types if specified. - * @param message SubscriptionEnterprisePricingResponse + * Creates a plain object from an EventRequest message. Also converts values to other types if specified. + * @param message EventRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionEnterprisePricingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.EventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SubscriptionEnterprisePricingResponse to JSON. + * Converts this EventRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SubscriptionEnterprisePricingResponse + * Gets the default type url for EventRequest * @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); + /** Properties of an EventsRequest. */ + interface IEventsRequest { - /** SingularDeviceIdentifier idType */ - idType?: (BI.IdentifierType|null); + /** EventsRequest event */ + event?: (BI.IEventRequest[]|null); } - /** Represents a SingularDeviceIdentifier. */ - class SingularDeviceIdentifier implements ISingularDeviceIdentifier { + /** Represents an EventsRequest. */ + class EventsRequest implements IEventsRequest { /** - * Constructs a new SingularDeviceIdentifier. + * Constructs a new EventsRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.ISingularDeviceIdentifier); - - /** SingularDeviceIdentifier id. */ - public id: string; + constructor(properties?: BI.IEventsRequest); - /** SingularDeviceIdentifier idType. */ - public idType: BI.IdentifierType; + /** EventsRequest event. */ + public event: BI.IEventRequest[]; /** - * Creates a new SingularDeviceIdentifier instance using the specified properties. + * Creates a new EventsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SingularDeviceIdentifier instance + * @returns EventsRequest instance */ - public static create(properties?: BI.ISingularDeviceIdentifier): BI.SingularDeviceIdentifier; + public static create(properties?: BI.IEventsRequest): BI.EventsRequest; /** - * Encodes the specified SingularDeviceIdentifier message. Does not implicitly {@link BI.SingularDeviceIdentifier.verify|verify} messages. - * @param message SingularDeviceIdentifier message or plain object to encode + * Encodes the specified EventsRequest message. Does not implicitly {@link BI.EventsRequest.verify|verify} messages. + * @param message EventsRequest 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; + public static encode(message: BI.IEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SingularDeviceIdentifier message from the specified reader or buffer. + * Decodes an EventsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SingularDeviceIdentifier + * @returns EventsRequest * @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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.EventsRequest; /** - * Creates a SingularDeviceIdentifier message from a plain object. Also converts values to their respective internal types. + * Creates an EventsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SingularDeviceIdentifier + * @returns EventsRequest */ - public static fromObject(object: { [k: string]: any }): BI.SingularDeviceIdentifier; + public static fromObject(object: { [k: string]: any }): BI.EventsRequest; /** - * Creates a plain object from a SingularDeviceIdentifier message. Also converts values to other types if specified. - * @param message SingularDeviceIdentifier + * Creates a plain object from an EventsRequest message. Also converts values to other types if specified. + * @param message EventsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SingularDeviceIdentifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.EventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SingularDeviceIdentifier to JSON. + * Converts this EventsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SingularDeviceIdentifier + * Gets the default type url for EventsRequest * @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); + /** Properties of an EventResponse. */ + interface IEventResponse { - /** SingularSharedData appIdentifier */ - appIdentifier?: (string|null); + /** EventResponse index */ + index?: (number|null); - /** SingularSharedData attAuthorizationStatus */ - attAuthorizationStatus?: (number|null); + /** EventResponse status */ + status?: (boolean|null); } - /** Represents a SingularSharedData. */ - class SingularSharedData implements ISingularSharedData { + /** Represents an EventResponse. */ + class EventResponse implements IEventResponse { /** - * Constructs a new SingularSharedData. + * Constructs a new EventResponse. * @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; + constructor(properties?: BI.IEventResponse); - /** SingularSharedData appIdentifier. */ - public appIdentifier: string; + /** EventResponse index. */ + public index: number; - /** SingularSharedData attAuthorizationStatus. */ - public attAuthorizationStatus: number; + /** EventResponse status. */ + public status: boolean; /** - * Creates a new SingularSharedData instance using the specified properties. + * Creates a new EventResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SingularSharedData instance + * @returns EventResponse instance */ - public static create(properties?: BI.ISingularSharedData): BI.SingularSharedData; + public static create(properties?: BI.IEventResponse): BI.EventResponse; /** - * Encodes the specified SingularSharedData message. Does not implicitly {@link BI.SingularSharedData.verify|verify} messages. - * @param message SingularSharedData message or plain object to encode + * Encodes the specified EventResponse message. Does not implicitly {@link BI.EventResponse.verify|verify} messages. + * @param message EventResponse 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; + public static encode(message: BI.IEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SingularSharedData message from the specified reader or buffer. + * Decodes an EventResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SingularSharedData + * @returns EventResponse * @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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.EventResponse; /** - * Creates a SingularSharedData message from a plain object. Also converts values to their respective internal types. + * Creates an EventResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SingularSharedData + * @returns EventResponse */ - public static fromObject(object: { [k: string]: any }): BI.SingularSharedData; + public static fromObject(object: { [k: string]: any }): BI.EventResponse; /** - * Creates a plain object from a SingularSharedData message. Also converts values to other types if specified. - * @param message SingularSharedData + * Creates a plain object from an EventResponse message. Also converts values to other types if specified. + * @param message EventResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SingularSharedData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.EventResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SingularSharedData to JSON. + * Converts this EventResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SingularSharedData + * Gets the default type url for EventResponse * @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|null); - - /** SingularSessionRequest updateTime */ - updateTime?: (number|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); + /** Properties of an EventsResponse. */ + interface IEventsResponse { - /** SingularSessionRequest attributionToken */ - attributionToken?: (string|null); + /** EventsResponse response */ + response?: (BI.IEventResponse[]|null); } - /** Represents a SingularSessionRequest. */ - class SingularSessionRequest implements ISingularSessionRequest { + /** Represents an EventsResponse. */ + class EventsResponse implements IEventsResponse { /** - * Constructs a new SingularSessionRequest. + * Constructs a new EventsResponse. * @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; - - /** SingularSessionRequest updateTime. */ - public updateTime: number; - - /** 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; + constructor(properties?: BI.IEventsResponse); - /** SingularSessionRequest attributionToken. */ - public attributionToken: string; + /** EventsResponse response. */ + public response: BI.IEventResponse[]; /** - * Creates a new SingularSessionRequest instance using the specified properties. + * Creates a new EventsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SingularSessionRequest instance + * @returns EventsResponse instance */ - public static create(properties?: BI.ISingularSessionRequest): BI.SingularSessionRequest; + public static create(properties?: BI.IEventsResponse): BI.EventsResponse; /** - * Encodes the specified SingularSessionRequest message. Does not implicitly {@link BI.SingularSessionRequest.verify|verify} messages. - * @param message SingularSessionRequest message or plain object to encode + * Encodes the specified EventsResponse message. Does not implicitly {@link BI.EventsResponse.verify|verify} messages. + * @param message EventsResponse 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; + public static encode(message: BI.IEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SingularSessionRequest message from the specified reader or buffer. + * Decodes an EventsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SingularSessionRequest + * @returns EventsResponse * @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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.EventsResponse; /** - * Creates a SingularSessionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EventsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SingularSessionRequest + * @returns EventsResponse */ - public static fromObject(object: { [k: string]: any }): BI.SingularSessionRequest; + public static fromObject(object: { [k: string]: any }): BI.EventsResponse; /** - * Creates a plain object from a SingularSessionRequest message. Also converts values to other types if specified. - * @param message SingularSessionRequest + * Creates a plain object from an EventsResponse message. Also converts values to other types if specified. + * @param message EventsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SingularSessionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.EventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SingularSessionRequest to JSON. + * Converts this EventsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SingularSessionRequest + * Gets the default type url for EventsResponse * @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 { + /** Properties of a CustomerCaptureRequest. */ + interface ICustomerCaptureRequest { - /** SingularEventRequest deviceIdentifiers */ - deviceIdentifiers?: (BI.ISingularDeviceIdentifier[]|null); + /** CustomerCaptureRequest pageUrl */ + pageUrl?: (string|null); - /** SingularEventRequest sharedData */ - sharedData?: (BI.ISingularSharedData|null); + /** CustomerCaptureRequest tree */ + tree?: (string|null); - /** SingularEventRequest eventName */ - eventName?: (string|null); + /** CustomerCaptureRequest hash */ + hash?: (string|null); + + /** CustomerCaptureRequest image */ + image?: (string|null); + + /** CustomerCaptureRequest pageLoadTime */ + pageLoadTime?: (string|null); + + /** CustomerCaptureRequest keyId */ + keyId?: (string|null); + + /** CustomerCaptureRequest test */ + test?: (boolean|null); + + /** CustomerCaptureRequest issueType */ + issueType?: (string|null); + + /** CustomerCaptureRequest notes */ + notes?: (string|null); } - /** Represents a SingularEventRequest. */ - class SingularEventRequest implements ISingularEventRequest { + /** Represents a CustomerCaptureRequest. */ + class CustomerCaptureRequest implements ICustomerCaptureRequest { /** - * Constructs a new SingularEventRequest. + * Constructs a new CustomerCaptureRequest. * @param [properties] Properties to set */ - constructor(properties?: BI.ISingularEventRequest); + constructor(properties?: BI.ICustomerCaptureRequest); - /** SingularEventRequest deviceIdentifiers. */ - public deviceIdentifiers: BI.ISingularDeviceIdentifier[]; + /** CustomerCaptureRequest pageUrl. */ + public pageUrl: string; - /** SingularEventRequest sharedData. */ - public sharedData?: (BI.ISingularSharedData|null); + /** CustomerCaptureRequest tree. */ + public tree: string; - /** SingularEventRequest eventName. */ - public eventName: string; + /** CustomerCaptureRequest hash. */ + public hash: string; + + /** CustomerCaptureRequest image. */ + public image: string; + + /** CustomerCaptureRequest pageLoadTime. */ + public pageLoadTime: string; + + /** CustomerCaptureRequest keyId. */ + public keyId: string; + + /** CustomerCaptureRequest test. */ + public test: boolean; + + /** CustomerCaptureRequest issueType. */ + public issueType: string; + + /** CustomerCaptureRequest notes. */ + public notes: string; /** - * Creates a new SingularEventRequest instance using the specified properties. + * Creates a new CustomerCaptureRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SingularEventRequest instance + * @returns CustomerCaptureRequest instance */ - public static create(properties?: BI.ISingularEventRequest): BI.SingularEventRequest; + public static create(properties?: BI.ICustomerCaptureRequest): BI.CustomerCaptureRequest; /** - * Encodes the specified SingularEventRequest message. Does not implicitly {@link BI.SingularEventRequest.verify|verify} messages. - * @param message SingularEventRequest message or plain object to encode + * Encodes the specified CustomerCaptureRequest message. Does not implicitly {@link BI.CustomerCaptureRequest.verify|verify} messages. + * @param message CustomerCaptureRequest 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; + public static encode(message: BI.ICustomerCaptureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SingularEventRequest message from the specified reader or buffer. + * Decodes a CustomerCaptureRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SingularEventRequest + * @returns CustomerCaptureRequest * @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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.CustomerCaptureRequest; /** - * Creates a SingularEventRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CustomerCaptureRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SingularEventRequest + * @returns CustomerCaptureRequest */ - public static fromObject(object: { [k: string]: any }): BI.SingularEventRequest; + public static fromObject(object: { [k: string]: any }): BI.CustomerCaptureRequest; /** - * Creates a plain object from a SingularEventRequest message. Also converts values to other types if specified. - * @param message SingularEventRequest + * Creates a plain object from a CustomerCaptureRequest message. Also converts values to other types if specified. + * @param message CustomerCaptureRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SingularEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.CustomerCaptureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SingularEventRequest to JSON. + * Converts this CustomerCaptureRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SingularEventRequest + * Gets the default type url for CustomerCaptureRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ActivePamCountRequest. */ - interface IActivePamCountRequest { - - /** ActivePamCountRequest enterpriseId */ - enterpriseId?: (number|null); + /** Properties of a CustomerCaptureResponse. */ + interface ICustomerCaptureResponse { } - /** Represents an ActivePamCountRequest. */ - class ActivePamCountRequest implements IActivePamCountRequest { + /** Represents a CustomerCaptureResponse. */ + class CustomerCaptureResponse implements ICustomerCaptureResponse { /** - * Constructs a new ActivePamCountRequest. + * Constructs a new CustomerCaptureResponse. * @param [properties] Properties to set */ - constructor(properties?: BI.IActivePamCountRequest); - - /** ActivePamCountRequest enterpriseId. */ - public enterpriseId: number; + constructor(properties?: BI.ICustomerCaptureResponse); /** - * Creates a new ActivePamCountRequest instance using the specified properties. + * Creates a new CustomerCaptureResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ActivePamCountRequest instance + * @returns CustomerCaptureResponse instance */ - public static create(properties?: BI.IActivePamCountRequest): BI.ActivePamCountRequest; + public static create(properties?: BI.ICustomerCaptureResponse): BI.CustomerCaptureResponse; /** - * Encodes the specified ActivePamCountRequest message. Does not implicitly {@link BI.ActivePamCountRequest.verify|verify} messages. - * @param message ActivePamCountRequest message or plain object to encode + * Encodes the specified CustomerCaptureResponse message. Does not implicitly {@link BI.CustomerCaptureResponse.verify|verify} messages. + * @param message CustomerCaptureResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IActivePamCountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.ICustomerCaptureResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ActivePamCountRequest message from the specified reader or buffer. + * Decodes a CustomerCaptureResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ActivePamCountRequest + * @returns CustomerCaptureResponse * @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.ActivePamCountRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.CustomerCaptureResponse; /** - * Creates an ActivePamCountRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CustomerCaptureResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ActivePamCountRequest + * @returns CustomerCaptureResponse */ - public static fromObject(object: { [k: string]: any }): BI.ActivePamCountRequest; + public static fromObject(object: { [k: string]: any }): BI.CustomerCaptureResponse; /** - * Creates a plain object from an ActivePamCountRequest message. Also converts values to other types if specified. - * @param message ActivePamCountRequest + * Creates a plain object from a CustomerCaptureResponse message. Also converts values to other types if specified. + * @param message CustomerCaptureResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.ActivePamCountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.CustomerCaptureResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ActivePamCountRequest to JSON. + * Converts this CustomerCaptureResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ActivePamCountRequest + * Gets the default type url for CustomerCaptureResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ActivePamCountResponse. */ - interface IActivePamCountResponse { + /** PurchaseProductType enum. */ + enum PurchaseProductType { + upgradeToEnterprise = 0, + addUsers = 1, + addStorage = 2, + addAudit = 3, + addBreachWatch = 4, + addCompliance = 5, + addChat = 6, + addPAM = 7, + addSilverSupport = 8, + addPlatinumSupport = 9, + addKEPM = 10, + addNhi = 11 + } - /** ActivePamCountResponse pamCount */ - pamCount?: (number|null); + /** Properties of an Error. */ + interface IError { + + /** Error code */ + code?: (string|null); + + /** Error message */ + message?: (string|null); + + /** Error extras */ + extras?: ({ [k: string]: string }|null); } - /** Represents an ActivePamCountResponse. */ - class ActivePamCountResponse implements IActivePamCountResponse { + /** Represents an Error. */ + class Error implements IError { /** - * Constructs a new ActivePamCountResponse. + * Constructs a new Error. * @param [properties] Properties to set */ - constructor(properties?: BI.IActivePamCountResponse); + constructor(properties?: BI.IError); - /** ActivePamCountResponse pamCount. */ - public pamCount: number; + /** Error code. */ + public code: string; + + /** Error message. */ + public message: string; + + /** Error extras. */ + public extras: { [k: string]: string }; /** - * Creates a new ActivePamCountResponse instance using the specified properties. + * Creates a new Error instance using the specified properties. * @param [properties] Properties to set - * @returns ActivePamCountResponse instance + * @returns Error instance */ - public static create(properties?: BI.IActivePamCountResponse): BI.ActivePamCountResponse; + public static create(properties?: BI.IError): BI.Error; /** - * Encodes the specified ActivePamCountResponse message. Does not implicitly {@link BI.ActivePamCountResponse.verify|verify} messages. - * @param message ActivePamCountResponse message or plain object to encode + * Encodes the specified Error message. Does not implicitly {@link BI.Error.verify|verify} messages. + * @param message Error message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IActivePamCountResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ActivePamCountResponse message from the specified reader or buffer. + * Decodes an Error message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ActivePamCountResponse + * @returns Error * @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.ActivePamCountResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.Error; /** - * Creates an ActivePamCountResponse message from a plain object. Also converts values to their respective internal types. + * Creates an Error message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ActivePamCountResponse + * @returns Error */ - public static fromObject(object: { [k: string]: any }): BI.ActivePamCountResponse; + public static fromObject(object: { [k: string]: any }): BI.Error; /** - * Creates a plain object from an ActivePamCountResponse message. Also converts values to other types if specified. - * @param message ActivePamCountResponse + * Creates a plain object from an Error message. Also converts values to other types if specified. + * @param message Error * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.ActivePamCountResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.Error, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ActivePamCountResponse to JSON. + * Converts this Error to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ActivePamCountResponse + * Gets the default type url for Error * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NhiEnterpriseRequest. */ - interface INhiEnterpriseRequest { + /** Properties of a QuotePurchase. */ + interface IQuotePurchase { - /** NhiEnterpriseRequest enterpriseId */ - enterpriseId?: (number|null); + /** QuotePurchase quoteTotal */ + quoteTotal?: (number|null); - /** NhiEnterpriseRequest startTime */ - startTime?: (number|null); + /** QuotePurchase includedTax */ + includedTax?: (boolean|null); - /** NhiEnterpriseRequest endTime */ - endTime?: (number|null); + /** QuotePurchase includedOtherAddons */ + includedOtherAddons?: (boolean|null); + + /** QuotePurchase taxAmount */ + taxAmount?: (number|null); + + /** QuotePurchase taxLabel */ + taxLabel?: (string|null); + + /** QuotePurchase purchaseIdentifier */ + purchaseIdentifier?: (string|null); } - /** Represents a NhiEnterpriseRequest. */ - class NhiEnterpriseRequest implements INhiEnterpriseRequest { + /** Represents a QuotePurchase. */ + class QuotePurchase implements IQuotePurchase { /** - * Constructs a new NhiEnterpriseRequest. + * Constructs a new QuotePurchase. * @param [properties] Properties to set */ - constructor(properties?: BI.INhiEnterpriseRequest); + constructor(properties?: BI.IQuotePurchase); - /** NhiEnterpriseRequest enterpriseId. */ - public enterpriseId: number; + /** QuotePurchase quoteTotal. */ + public quoteTotal: number; - /** NhiEnterpriseRequest startTime. */ - public startTime: number; + /** QuotePurchase includedTax. */ + public includedTax: boolean; - /** NhiEnterpriseRequest endTime. */ - public endTime: number; + /** QuotePurchase includedOtherAddons. */ + public includedOtherAddons: boolean; + + /** QuotePurchase taxAmount. */ + public taxAmount: number; + + /** QuotePurchase taxLabel. */ + public taxLabel: string; + + /** QuotePurchase purchaseIdentifier. */ + public purchaseIdentifier: string; /** - * Creates a new NhiEnterpriseRequest instance using the specified properties. + * Creates a new QuotePurchase instance using the specified properties. * @param [properties] Properties to set - * @returns NhiEnterpriseRequest instance + * @returns QuotePurchase instance */ - public static create(properties?: BI.INhiEnterpriseRequest): BI.NhiEnterpriseRequest; + public static create(properties?: BI.IQuotePurchase): BI.QuotePurchase; /** - * Encodes the specified NhiEnterpriseRequest message. Does not implicitly {@link BI.NhiEnterpriseRequest.verify|verify} messages. - * @param message NhiEnterpriseRequest message or plain object to encode + * Encodes the specified QuotePurchase message. Does not implicitly {@link BI.QuotePurchase.verify|verify} messages. + * @param message QuotePurchase message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.INhiEnterpriseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IQuotePurchase, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NhiEnterpriseRequest message from the specified reader or buffer. + * Decodes a QuotePurchase message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NhiEnterpriseRequest + * @returns QuotePurchase * @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.NhiEnterpriseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.QuotePurchase; /** - * Creates a NhiEnterpriseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QuotePurchase message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NhiEnterpriseRequest + * @returns QuotePurchase */ - public static fromObject(object: { [k: string]: any }): BI.NhiEnterpriseRequest; + public static fromObject(object: { [k: string]: any }): BI.QuotePurchase; /** - * Creates a plain object from a NhiEnterpriseRequest message. Also converts values to other types if specified. - * @param message NhiEnterpriseRequest + * Creates a plain object from a QuotePurchase message. Also converts values to other types if specified. + * @param message QuotePurchase * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NhiEnterpriseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.QuotePurchase, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NhiEnterpriseRequest to JSON. + * Converts this QuotePurchase to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NhiEnterpriseRequest + * Gets the default type url for QuotePurchase * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NhiMetricsRequest. */ - interface INhiMetricsRequest { - - /** NhiMetricsRequest enterpriseIds */ - enterpriseIds?: (number[]|null); - - /** NhiMetricsRequest startTime */ - startTime?: (number|null); + /** Properties of a PurchaseOptions. */ + interface IPurchaseOptions { - /** NhiMetricsRequest endTime */ - endTime?: (number|null); + /** PurchaseOptions inConsole */ + inConsole?: (boolean|null); - /** NhiMetricsRequest enterprises */ - enterprises?: (BI.INhiEnterpriseRequest[]|null); + /** PurchaseOptions externalCheckout */ + externalCheckout?: (boolean|null); } - /** Represents a NhiMetricsRequest. */ - class NhiMetricsRequest implements INhiMetricsRequest { + /** Represents a PurchaseOptions. */ + class PurchaseOptions implements IPurchaseOptions { /** - * Constructs a new NhiMetricsRequest. + * Constructs a new PurchaseOptions. * @param [properties] Properties to set */ - constructor(properties?: BI.INhiMetricsRequest); - - /** NhiMetricsRequest enterpriseIds. */ - public enterpriseIds: number[]; - - /** NhiMetricsRequest startTime. */ - public startTime: number; + constructor(properties?: BI.IPurchaseOptions); - /** NhiMetricsRequest endTime. */ - public endTime: number; + /** PurchaseOptions inConsole. */ + public inConsole?: (boolean|null); - /** NhiMetricsRequest enterprises. */ - public enterprises: BI.INhiEnterpriseRequest[]; + /** PurchaseOptions externalCheckout. */ + public externalCheckout?: (boolean|null); /** - * Creates a new NhiMetricsRequest instance using the specified properties. + * Creates a new PurchaseOptions instance using the specified properties. * @param [properties] Properties to set - * @returns NhiMetricsRequest instance + * @returns PurchaseOptions instance */ - public static create(properties?: BI.INhiMetricsRequest): BI.NhiMetricsRequest; + public static create(properties?: BI.IPurchaseOptions): BI.PurchaseOptions; /** - * Encodes the specified NhiMetricsRequest message. Does not implicitly {@link BI.NhiMetricsRequest.verify|verify} messages. - * @param message NhiMetricsRequest message or plain object to encode + * Encodes the specified PurchaseOptions message. Does not implicitly {@link BI.PurchaseOptions.verify|verify} messages. + * @param message PurchaseOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.INhiMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: BI.IPurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NhiMetricsRequest message from the specified reader or buffer. + * Decodes a PurchaseOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NhiMetricsRequest + * @returns PurchaseOptions * @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.NhiMetricsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BI.PurchaseOptions; /** - * Creates a NhiMetricsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurchaseOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NhiMetricsRequest + * @returns PurchaseOptions */ - public static fromObject(object: { [k: string]: any }): BI.NhiMetricsRequest; + public static fromObject(object: { [k: string]: any }): BI.PurchaseOptions; /** - * Creates a plain object from a NhiMetricsRequest message. Also converts values to other types if specified. - * @param message NhiMetricsRequest + * Creates a plain object from a PurchaseOptions message. Also converts values to other types if specified. + * @param message PurchaseOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NhiMetricsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: BI.PurchaseOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NhiMetricsRequest to JSON. + * Converts this PurchaseOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NhiMetricsRequest + * Gets the default type url for PurchaseOptions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} - -/** Namespace google. */ -export namespace google { - - /** Namespace api. */ - namespace api { - - /** Properties of a Http. */ - interface IHttp { - - /** Http rules */ - rules?: (google.api.IHttpRule[]|null); - } - - /** Represents a Http. */ - class Http implements IHttp { - - /** - * Constructs a new Http. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.IHttp); - - /** Http rules. */ - public rules: google.api.IHttpRule[]; - - /** - * Creates a new Http instance using the specified properties. - * @param [properties] Properties to set - * @returns Http instance - */ - public static create(properties?: google.api.IHttp): google.api.Http; - - /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @param message Http message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Http message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Http - * @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): google.api.Http; - - /** - * Creates a Http message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Http - */ - public static fromObject(object: { [k: string]: any }): google.api.Http; - - /** - * Creates a plain object from a Http message. Also converts values to other types if specified. - * @param message Http - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Http to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Http - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a HttpRule. */ - interface IHttpRule { - - /** HttpRule get */ - get?: (string|null); - - /** HttpRule put */ - put?: (string|null); - - /** HttpRule post */ - post?: (string|null); - - /** HttpRule delete */ - "delete"?: (string|null); - - /** HttpRule patch */ - patch?: (string|null); - - /** HttpRule custom */ - custom?: (google.api.ICustomHttpPattern|null); - - /** HttpRule selector */ - selector?: (string|null); - - /** HttpRule body */ - body?: (string|null); - - /** HttpRule additionalBindings */ - additionalBindings?: (google.api.IHttpRule[]|null); - } - - /** Represents a HttpRule. */ - class HttpRule implements IHttpRule { - - /** - * Constructs a new HttpRule. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.IHttpRule); - - /** HttpRule get. */ - public get?: (string|null); - - /** HttpRule put. */ - public put?: (string|null); - - /** HttpRule post. */ - public post?: (string|null); - - /** HttpRule delete. */ - public delete?: (string|null); - - /** HttpRule patch. */ - public patch?: (string|null); - - /** HttpRule custom. */ - public custom?: (google.api.ICustomHttpPattern|null); - - /** HttpRule selector. */ - public selector: string; - - /** HttpRule body. */ - public body: string; - - /** HttpRule additionalBindings. */ - public additionalBindings: google.api.IHttpRule[]; - /** HttpRule pattern. */ - public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); - - /** - * Creates a new HttpRule instance using the specified properties. - * @param [properties] Properties to set - * @returns HttpRule instance - */ - public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + /** Properties of an AddonPurchaseOptions. */ + interface IAddonPurchaseOptions { - /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @param message HttpRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + /** AddonPurchaseOptions storage */ + storage?: (BI.IPurchaseOptions|null); - /** - * Decodes a HttpRule message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns HttpRule - * @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): google.api.HttpRule; + /** AddonPurchaseOptions audit */ + audit?: (BI.IPurchaseOptions|null); - /** - * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns HttpRule - */ - public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + /** AddonPurchaseOptions breachwatch */ + breachwatch?: (BI.IPurchaseOptions|null); - /** - * Creates a plain object from a HttpRule message. Also converts values to other types if specified. - * @param message HttpRule - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** AddonPurchaseOptions chat */ + chat?: (BI.IPurchaseOptions|null); - /** - * Converts this HttpRule to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** AddonPurchaseOptions compliance */ + compliance?: (BI.IPurchaseOptions|null); - /** - * Gets the default type url for HttpRule - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** AddonPurchaseOptions professionalServicesSilver */ + professionalServicesSilver?: (BI.IPurchaseOptions|null); - /** Properties of a CustomHttpPattern. */ - interface ICustomHttpPattern { + /** AddonPurchaseOptions professionalServicesPlatinum */ + professionalServicesPlatinum?: (BI.IPurchaseOptions|null); - /** CustomHttpPattern kind */ - kind?: (string|null); + /** AddonPurchaseOptions pam */ + pam?: (BI.IPurchaseOptions|null); - /** CustomHttpPattern path */ - path?: (string|null); - } + /** AddonPurchaseOptions epm */ + epm?: (BI.IPurchaseOptions|null); - /** Represents a CustomHttpPattern. */ - class CustomHttpPattern implements ICustomHttpPattern { + /** AddonPurchaseOptions secretsManager */ + secretsManager?: (BI.IPurchaseOptions|null); - /** - * Constructs a new CustomHttpPattern. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.ICustomHttpPattern); + /** AddonPurchaseOptions connectionManager */ + connectionManager?: (BI.IPurchaseOptions|null); - /** CustomHttpPattern kind. */ - public kind: string; + /** AddonPurchaseOptions remoteBrowserIsolation */ + remoteBrowserIsolation?: (BI.IPurchaseOptions|null); - /** CustomHttpPattern path. */ - public path: string; + /** AddonPurchaseOptions nhiTier */ + nhiTier?: (BI.IPurchaseOptions|null); + } - /** - * Creates a new CustomHttpPattern instance using the specified properties. - * @param [properties] Properties to set - * @returns CustomHttpPattern instance - */ - public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + /** Represents an AddonPurchaseOptions. */ + class AddonPurchaseOptions implements IAddonPurchaseOptions { - /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @param message CustomHttpPattern message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new AddonPurchaseOptions. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IAddonPurchaseOptions); - /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CustomHttpPattern - * @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): google.api.CustomHttpPattern; + /** AddonPurchaseOptions storage. */ + public storage?: (BI.IPurchaseOptions|null); - /** - * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CustomHttpPattern - */ - public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; + /** AddonPurchaseOptions audit. */ + public audit?: (BI.IPurchaseOptions|null); - /** - * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. - * @param message CustomHttpPattern - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** AddonPurchaseOptions breachwatch. */ + public breachwatch?: (BI.IPurchaseOptions|null); - /** - * Converts this CustomHttpPattern to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** AddonPurchaseOptions chat. */ + public chat?: (BI.IPurchaseOptions|null); - /** - * Gets the default type url for CustomHttpPattern - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** AddonPurchaseOptions compliance. */ + public compliance?: (BI.IPurchaseOptions|null); - /** Namespace protobuf. */ - namespace protobuf { + /** AddonPurchaseOptions professionalServicesSilver. */ + public professionalServicesSilver?: (BI.IPurchaseOptions|null); - /** Properties of a FileDescriptorSet. */ - interface IFileDescriptorSet { + /** AddonPurchaseOptions professionalServicesPlatinum. */ + public professionalServicesPlatinum?: (BI.IPurchaseOptions|null); - /** FileDescriptorSet file */ - file?: (google.protobuf.IFileDescriptorProto[]|null); - } + /** AddonPurchaseOptions pam. */ + public pam?: (BI.IPurchaseOptions|null); - /** Represents a FileDescriptorSet. */ - class FileDescriptorSet implements IFileDescriptorSet { + /** AddonPurchaseOptions epm. */ + public epm?: (BI.IPurchaseOptions|null); - /** - * Constructs a new FileDescriptorSet. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFileDescriptorSet); + /** AddonPurchaseOptions secretsManager. */ + public secretsManager?: (BI.IPurchaseOptions|null); - /** FileDescriptorSet file. */ - public file: google.protobuf.IFileDescriptorProto[]; + /** AddonPurchaseOptions connectionManager. */ + public connectionManager?: (BI.IPurchaseOptions|null); - /** - * Creates a new FileDescriptorSet instance using the specified properties. - * @param [properties] Properties to set - * @returns FileDescriptorSet instance - */ - public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; + /** AddonPurchaseOptions remoteBrowserIsolation. */ + public remoteBrowserIsolation?: (BI.IPurchaseOptions|null); - /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @param message FileDescriptorSet message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + /** AddonPurchaseOptions nhiTier. */ + public nhiTier?: (BI.IPurchaseOptions|null); - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FileDescriptorSet - * @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): google.protobuf.FileDescriptorSet; + /** + * Creates a new AddonPurchaseOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns AddonPurchaseOptions instance + */ + public static create(properties?: BI.IAddonPurchaseOptions): BI.AddonPurchaseOptions; - /** - * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FileDescriptorSet - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; + /** + * Encodes the specified AddonPurchaseOptions message. Does not implicitly {@link BI.AddonPurchaseOptions.verify|verify} messages. + * @param message AddonPurchaseOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.IAddonPurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. - * @param message FileDescriptorSet - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes an AddonPurchaseOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AddonPurchaseOptions + * @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.AddonPurchaseOptions; - /** - * Converts this FileDescriptorSet to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates an AddonPurchaseOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AddonPurchaseOptions + */ + public static fromObject(object: { [k: string]: any }): BI.AddonPurchaseOptions; - /** - * Gets the default type url for FileDescriptorSet - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from an AddonPurchaseOptions message. Also converts values to other types if specified. + * @param message AddonPurchaseOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.AddonPurchaseOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Edition enum. */ - enum Edition { - EDITION_UNKNOWN = 0, - EDITION_LEGACY = 900, - EDITION_PROTO2 = 998, - EDITION_PROTO3 = 999, - EDITION_2023 = 1000, - EDITION_2024 = 1001, - EDITION_1_TEST_ONLY = 1, - EDITION_2_TEST_ONLY = 2, - EDITION_99997_TEST_ONLY = 99997, - EDITION_99998_TEST_ONLY = 99998, - EDITION_99999_TEST_ONLY = 99999, - EDITION_MAX = 2147483647 - } + /** + * Converts this AddonPurchaseOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AddonPurchaseOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a FileDescriptorProto. */ - interface IFileDescriptorProto { + /** Properties of an AvailablePurchaseOptions. */ + interface IAvailablePurchaseOptions { - /** FileDescriptorProto name */ - name?: (string|null); + /** AvailablePurchaseOptions basePlan */ + basePlan?: (BI.IPurchaseOptions|null); - /** FileDescriptorProto package */ - "package"?: (string|null); + /** AvailablePurchaseOptions users */ + users?: (BI.IPurchaseOptions|null); - /** FileDescriptorProto dependency */ - dependency?: (string[]|null); + /** AvailablePurchaseOptions addons */ + addons?: (BI.IAddonPurchaseOptions|null); + } - /** FileDescriptorProto publicDependency */ - publicDependency?: (number[]|null); + /** Represents an AvailablePurchaseOptions. */ + class AvailablePurchaseOptions implements IAvailablePurchaseOptions { - /** FileDescriptorProto weakDependency */ - weakDependency?: (number[]|null); + /** + * Constructs a new AvailablePurchaseOptions. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IAvailablePurchaseOptions); - /** FileDescriptorProto optionDependency */ - optionDependency?: (string[]|null); + /** AvailablePurchaseOptions basePlan. */ + public basePlan?: (BI.IPurchaseOptions|null); - /** FileDescriptorProto messageType */ - messageType?: (google.protobuf.IDescriptorProto[]|null); + /** AvailablePurchaseOptions users. */ + public users?: (BI.IPurchaseOptions|null); - /** FileDescriptorProto enumType */ - enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + /** AvailablePurchaseOptions addons. */ + public addons?: (BI.IAddonPurchaseOptions|null); - /** FileDescriptorProto service */ - service?: (google.protobuf.IServiceDescriptorProto[]|null); + /** + * Creates a new AvailablePurchaseOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns AvailablePurchaseOptions instance + */ + public static create(properties?: BI.IAvailablePurchaseOptions): BI.AvailablePurchaseOptions; - /** FileDescriptorProto extension */ - extension?: (google.protobuf.IFieldDescriptorProto[]|null); + /** + * Encodes the specified AvailablePurchaseOptions message. Does not implicitly {@link BI.AvailablePurchaseOptions.verify|verify} messages. + * @param message AvailablePurchaseOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.IAvailablePurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** FileDescriptorProto options */ - options?: (google.protobuf.IFileOptions|null); + /** + * Decodes an AvailablePurchaseOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AvailablePurchaseOptions + * @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.AvailablePurchaseOptions; - /** FileDescriptorProto sourceCodeInfo */ - sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + /** + * Creates an AvailablePurchaseOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AvailablePurchaseOptions + */ + public static fromObject(object: { [k: string]: any }): BI.AvailablePurchaseOptions; - /** FileDescriptorProto syntax */ - syntax?: (string|null); + /** + * Creates a plain object from an AvailablePurchaseOptions message. Also converts values to other types if specified. + * @param message AvailablePurchaseOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.AvailablePurchaseOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FileDescriptorProto edition */ - edition?: (google.protobuf.Edition|null); - } + /** + * Converts this AvailablePurchaseOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a FileDescriptorProto. */ - class FileDescriptorProto implements IFileDescriptorProto { + /** + * Gets the default type url for AvailablePurchaseOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new FileDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFileDescriptorProto); + /** Properties of an UpgradeLicenseStatusRequest. */ + interface IUpgradeLicenseStatusRequest { + } - /** FileDescriptorProto name. */ - public name: string; + /** Represents an UpgradeLicenseStatusRequest. */ + class UpgradeLicenseStatusRequest implements IUpgradeLicenseStatusRequest { - /** FileDescriptorProto package. */ - public package: string; + /** + * Constructs a new UpgradeLicenseStatusRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IUpgradeLicenseStatusRequest); - /** FileDescriptorProto dependency. */ - public dependency: string[]; + /** + * Creates a new UpgradeLicenseStatusRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpgradeLicenseStatusRequest instance + */ + public static create(properties?: BI.IUpgradeLicenseStatusRequest): BI.UpgradeLicenseStatusRequest; - /** FileDescriptorProto publicDependency. */ - public publicDependency: number[]; + /** + * Encodes the specified UpgradeLicenseStatusRequest message. Does not implicitly {@link BI.UpgradeLicenseStatusRequest.verify|verify} messages. + * @param message UpgradeLicenseStatusRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.IUpgradeLicenseStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** FileDescriptorProto weakDependency. */ - public weakDependency: number[]; + /** + * Decodes an UpgradeLicenseStatusRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpgradeLicenseStatusRequest + * @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.UpgradeLicenseStatusRequest; - /** FileDescriptorProto optionDependency. */ - public optionDependency: string[]; + /** + * Creates an UpgradeLicenseStatusRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpgradeLicenseStatusRequest + */ + public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseStatusRequest; - /** FileDescriptorProto messageType. */ - public messageType: google.protobuf.IDescriptorProto[]; + /** + * Creates a plain object from an UpgradeLicenseStatusRequest message. Also converts values to other types if specified. + * @param message UpgradeLicenseStatusRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.UpgradeLicenseStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FileDescriptorProto enumType. */ - public enumType: google.protobuf.IEnumDescriptorProto[]; + /** + * Converts this UpgradeLicenseStatusRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** FileDescriptorProto service. */ - public service: google.protobuf.IServiceDescriptorProto[]; + /** + * Gets the default type url for UpgradeLicenseStatusRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** FileDescriptorProto extension. */ - public extension: google.protobuf.IFieldDescriptorProto[]; + /** Properties of an UpgradeLicenseStatusResponse. */ + interface IUpgradeLicenseStatusResponse { - /** FileDescriptorProto options. */ - public options?: (google.protobuf.IFileOptions|null); + /** UpgradeLicenseStatusResponse allowPurchaseFromConsole */ + allowPurchaseFromConsole?: (boolean|null); - /** FileDescriptorProto sourceCodeInfo. */ - public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + /** UpgradeLicenseStatusResponse purchaseOptions */ + purchaseOptions?: (BI.IAvailablePurchaseOptions|null); - /** FileDescriptorProto syntax. */ - public syntax: string; + /** UpgradeLicenseStatusResponse error */ + error?: (BI.IError|null); + } - /** FileDescriptorProto edition. */ - public edition: google.protobuf.Edition; + /** Represents an UpgradeLicenseStatusResponse. */ + class UpgradeLicenseStatusResponse implements IUpgradeLicenseStatusResponse { - /** - * Creates a new FileDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns FileDescriptorProto instance - */ - public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; + /** + * Constructs a new UpgradeLicenseStatusResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IUpgradeLicenseStatusResponse); - /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @param message FileDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** UpgradeLicenseStatusResponse allowPurchaseFromConsole. */ + public allowPurchaseFromConsole: boolean; - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FileDescriptorProto - * @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): google.protobuf.FileDescriptorProto; + /** UpgradeLicenseStatusResponse purchaseOptions. */ + public purchaseOptions?: (BI.IAvailablePurchaseOptions|null); + + /** UpgradeLicenseStatusResponse error. */ + public error?: (BI.IError|null); + + /** + * Creates a new UpgradeLicenseStatusResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UpgradeLicenseStatusResponse instance + */ + public static create(properties?: BI.IUpgradeLicenseStatusResponse): BI.UpgradeLicenseStatusResponse; + + /** + * Encodes the specified UpgradeLicenseStatusResponse message. Does not implicitly {@link BI.UpgradeLicenseStatusResponse.verify|verify} messages. + * @param message UpgradeLicenseStatusResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.IUpgradeLicenseStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpgradeLicenseStatusResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpgradeLicenseStatusResponse + * @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.UpgradeLicenseStatusResponse; - /** - * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FileDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; + /** + * Creates an UpgradeLicenseStatusResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpgradeLicenseStatusResponse + */ + public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseStatusResponse; - /** - * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. - * @param message FileDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an UpgradeLicenseStatusResponse message. Also converts values to other types if specified. + * @param message UpgradeLicenseStatusResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.UpgradeLicenseStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this FileDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this UpgradeLicenseStatusResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for FileDescriptorProto - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for UpgradeLicenseStatusResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a DescriptorProto. */ - interface IDescriptorProto { + /** Properties of an UpgradeLicenseQuotePurchaseRequest. */ + interface IUpgradeLicenseQuotePurchaseRequest { - /** DescriptorProto name */ - name?: (string|null); + /** UpgradeLicenseQuotePurchaseRequest productType */ + productType?: (BI.PurchaseProductType|null); - /** DescriptorProto field */ - field?: (google.protobuf.IFieldDescriptorProto[]|null); + /** UpgradeLicenseQuotePurchaseRequest quantity */ + quantity?: (number|null); - /** DescriptorProto extension */ - extension?: (google.protobuf.IFieldDescriptorProto[]|null); + /** UpgradeLicenseQuotePurchaseRequest tier */ + tier?: (number|null); + } - /** DescriptorProto nestedType */ - nestedType?: (google.protobuf.IDescriptorProto[]|null); + /** Represents an UpgradeLicenseQuotePurchaseRequest. */ + class UpgradeLicenseQuotePurchaseRequest implements IUpgradeLicenseQuotePurchaseRequest { - /** DescriptorProto enumType */ - enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + /** + * Constructs a new UpgradeLicenseQuotePurchaseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IUpgradeLicenseQuotePurchaseRequest); - /** DescriptorProto extensionRange */ - extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); + /** UpgradeLicenseQuotePurchaseRequest productType. */ + public productType: BI.PurchaseProductType; - /** DescriptorProto oneofDecl */ - oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); + /** UpgradeLicenseQuotePurchaseRequest quantity. */ + public quantity: number; - /** DescriptorProto options */ - options?: (google.protobuf.IMessageOptions|null); + /** UpgradeLicenseQuotePurchaseRequest tier. */ + public tier: number; - /** DescriptorProto reservedRange */ - reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + /** + * Creates a new UpgradeLicenseQuotePurchaseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpgradeLicenseQuotePurchaseRequest instance + */ + public static create(properties?: BI.IUpgradeLicenseQuotePurchaseRequest): BI.UpgradeLicenseQuotePurchaseRequest; - /** DescriptorProto reservedName */ - reservedName?: (string[]|null); + /** + * Encodes the specified UpgradeLicenseQuotePurchaseRequest message. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseRequest.verify|verify} messages. + * @param message UpgradeLicenseQuotePurchaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.IUpgradeLicenseQuotePurchaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** DescriptorProto visibility */ - visibility?: (google.protobuf.SymbolVisibility|null); - } + /** + * Decodes an UpgradeLicenseQuotePurchaseRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpgradeLicenseQuotePurchaseRequest + * @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.UpgradeLicenseQuotePurchaseRequest; - /** Represents a DescriptorProto. */ - class DescriptorProto implements IDescriptorProto { + /** + * Creates an UpgradeLicenseQuotePurchaseRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpgradeLicenseQuotePurchaseRequest + */ + public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseQuotePurchaseRequest; - /** - * Constructs a new DescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IDescriptorProto); + /** + * Creates a plain object from an UpgradeLicenseQuotePurchaseRequest message. Also converts values to other types if specified. + * @param message UpgradeLicenseQuotePurchaseRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.UpgradeLicenseQuotePurchaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** DescriptorProto name. */ - public name: string; + /** + * Converts this UpgradeLicenseQuotePurchaseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** DescriptorProto field. */ - public field: google.protobuf.IFieldDescriptorProto[]; + /** + * Gets the default type url for UpgradeLicenseQuotePurchaseRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** DescriptorProto extension. */ - public extension: google.protobuf.IFieldDescriptorProto[]; + /** Properties of an UpgradeLicenseQuotePurchaseResponse. */ + interface IUpgradeLicenseQuotePurchaseResponse { - /** DescriptorProto nestedType. */ - public nestedType: google.protobuf.IDescriptorProto[]; + /** UpgradeLicenseQuotePurchaseResponse success */ + success?: (boolean|null); - /** DescriptorProto enumType. */ - public enumType: google.protobuf.IEnumDescriptorProto[]; + /** UpgradeLicenseQuotePurchaseResponse quotePurchase */ + quotePurchase?: (BI.IQuotePurchase|null); - /** DescriptorProto extensionRange. */ - public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; + /** UpgradeLicenseQuotePurchaseResponse viewSummaryLink */ + viewSummaryLink?: (string|null); - /** DescriptorProto oneofDecl. */ - public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + /** UpgradeLicenseQuotePurchaseResponse error */ + error?: (BI.IError|null); + } - /** DescriptorProto options. */ - public options?: (google.protobuf.IMessageOptions|null); + /** Represents an UpgradeLicenseQuotePurchaseResponse. */ + class UpgradeLicenseQuotePurchaseResponse implements IUpgradeLicenseQuotePurchaseResponse { - /** DescriptorProto reservedRange. */ - public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + /** + * Constructs a new UpgradeLicenseQuotePurchaseResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IUpgradeLicenseQuotePurchaseResponse); - /** DescriptorProto reservedName. */ - public reservedName: string[]; + /** UpgradeLicenseQuotePurchaseResponse success. */ + public success: boolean; - /** DescriptorProto visibility. */ - public visibility: google.protobuf.SymbolVisibility; + /** UpgradeLicenseQuotePurchaseResponse quotePurchase. */ + public quotePurchase?: (BI.IQuotePurchase|null); - /** - * Creates a new DescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns DescriptorProto instance - */ - public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; + /** UpgradeLicenseQuotePurchaseResponse viewSummaryLink. */ + public viewSummaryLink: string; - /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @param message DescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** UpgradeLicenseQuotePurchaseResponse error. */ + public error?: (BI.IError|null); - /** - * Decodes a DescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DescriptorProto - * @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): google.protobuf.DescriptorProto; + /** + * Creates a new UpgradeLicenseQuotePurchaseResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UpgradeLicenseQuotePurchaseResponse instance + */ + public static create(properties?: BI.IUpgradeLicenseQuotePurchaseResponse): BI.UpgradeLicenseQuotePurchaseResponse; - /** - * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; + /** + * Encodes the specified UpgradeLicenseQuotePurchaseResponse message. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseResponse.verify|verify} messages. + * @param message UpgradeLicenseQuotePurchaseResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.IUpgradeLicenseQuotePurchaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpgradeLicenseQuotePurchaseResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpgradeLicenseQuotePurchaseResponse + * @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.UpgradeLicenseQuotePurchaseResponse; - /** - * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. - * @param message DescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates an UpgradeLicenseQuotePurchaseResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpgradeLicenseQuotePurchaseResponse + */ + public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseQuotePurchaseResponse; - /** - * Converts this DescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from an UpgradeLicenseQuotePurchaseResponse message. Also converts values to other types if specified. + * @param message UpgradeLicenseQuotePurchaseResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.UpgradeLicenseQuotePurchaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for DescriptorProto - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this UpgradeLicenseQuotePurchaseResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - namespace DescriptorProto { + /** + * Gets the default type url for UpgradeLicenseQuotePurchaseResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of an ExtensionRange. */ - interface IExtensionRange { + /** Properties of an UpgradeLicenseCompletePurchaseRequest. */ + interface IUpgradeLicenseCompletePurchaseRequest { - /** ExtensionRange start */ - start?: (number|null); + /** UpgradeLicenseCompletePurchaseRequest productType */ + productType?: (BI.PurchaseProductType|null); - /** ExtensionRange end */ - end?: (number|null); + /** UpgradeLicenseCompletePurchaseRequest quantity */ + quantity?: (number|null); - /** ExtensionRange options */ - options?: (google.protobuf.IExtensionRangeOptions|null); - } + /** UpgradeLicenseCompletePurchaseRequest quotePurchase */ + quotePurchase?: (BI.IQuotePurchase|null); - /** Represents an ExtensionRange. */ - class ExtensionRange implements IExtensionRange { + /** UpgradeLicenseCompletePurchaseRequest tier */ + tier?: (number|null); + } - /** - * Constructs a new ExtensionRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + /** Represents an UpgradeLicenseCompletePurchaseRequest. */ + class UpgradeLicenseCompletePurchaseRequest implements IUpgradeLicenseCompletePurchaseRequest { - /** ExtensionRange start. */ - public start: number; + /** + * Constructs a new UpgradeLicenseCompletePurchaseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IUpgradeLicenseCompletePurchaseRequest); - /** ExtensionRange end. */ - public end: number; + /** UpgradeLicenseCompletePurchaseRequest productType. */ + public productType: BI.PurchaseProductType; - /** ExtensionRange options. */ - public options?: (google.protobuf.IExtensionRangeOptions|null); + /** UpgradeLicenseCompletePurchaseRequest quantity. */ + public quantity: number; - /** - * Creates a new ExtensionRange instance using the specified properties. - * @param [properties] Properties to set - * @returns ExtensionRange instance - */ - public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; + /** UpgradeLicenseCompletePurchaseRequest quotePurchase. */ + public quotePurchase?: (BI.IQuotePurchase|null); - /** - * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @param message ExtensionRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** UpgradeLicenseCompletePurchaseRequest tier. */ + public tier: number; - /** - * Decodes an ExtensionRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExtensionRange - * @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): google.protobuf.DescriptorProto.ExtensionRange; + /** + * Creates a new UpgradeLicenseCompletePurchaseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpgradeLicenseCompletePurchaseRequest instance + */ + public static create(properties?: BI.IUpgradeLicenseCompletePurchaseRequest): BI.UpgradeLicenseCompletePurchaseRequest; - /** - * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExtensionRange - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; + /** + * Encodes the specified UpgradeLicenseCompletePurchaseRequest message. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseRequest.verify|verify} messages. + * @param message UpgradeLicenseCompletePurchaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.IUpgradeLicenseCompletePurchaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. - * @param message ExtensionRange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes an UpgradeLicenseCompletePurchaseRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpgradeLicenseCompletePurchaseRequest + * @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.UpgradeLicenseCompletePurchaseRequest; - /** - * Converts this ExtensionRange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates an UpgradeLicenseCompletePurchaseRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpgradeLicenseCompletePurchaseRequest + */ + public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseCompletePurchaseRequest; - /** - * Gets the default type url for ExtensionRange - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from an UpgradeLicenseCompletePurchaseRequest message. Also converts values to other types if specified. + * @param message UpgradeLicenseCompletePurchaseRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.UpgradeLicenseCompletePurchaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a ReservedRange. */ - interface IReservedRange { + /** + * Converts this UpgradeLicenseCompletePurchaseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ReservedRange start */ - start?: (number|null); + /** + * Gets the default type url for UpgradeLicenseCompletePurchaseRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ReservedRange end */ - end?: (number|null); - } + /** Properties of an UpgradeLicenseCompletePurchaseResponse. */ + interface IUpgradeLicenseCompletePurchaseResponse { - /** Represents a ReservedRange. */ - class ReservedRange implements IReservedRange { + /** UpgradeLicenseCompletePurchaseResponse success */ + success?: (boolean|null); - /** - * Constructs a new ReservedRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + /** UpgradeLicenseCompletePurchaseResponse invoiceNumber */ + invoiceNumber?: (string|null); - /** ReservedRange start. */ - public start: number; + /** UpgradeLicenseCompletePurchaseResponse error */ + error?: (BI.IError|null); - /** ReservedRange end. */ - public end: number; + /** UpgradeLicenseCompletePurchaseResponse quotePurchase */ + quotePurchase?: (BI.IQuotePurchase|null); + } - /** - * Creates a new ReservedRange instance using the specified properties. - * @param [properties] Properties to set - * @returns ReservedRange instance - */ - public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; + /** Represents an UpgradeLicenseCompletePurchaseResponse. */ + class UpgradeLicenseCompletePurchaseResponse implements IUpgradeLicenseCompletePurchaseResponse { - /** - * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @param message ReservedRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new UpgradeLicenseCompletePurchaseResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IUpgradeLicenseCompletePurchaseResponse); - /** - * Decodes a ReservedRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReservedRange - * @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): google.protobuf.DescriptorProto.ReservedRange; + /** UpgradeLicenseCompletePurchaseResponse success. */ + public success: boolean; - /** - * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReservedRange - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; + /** UpgradeLicenseCompletePurchaseResponse invoiceNumber. */ + public invoiceNumber: string; + + /** UpgradeLicenseCompletePurchaseResponse error. */ + public error?: (BI.IError|null); - /** - * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. - * @param message ReservedRange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** UpgradeLicenseCompletePurchaseResponse quotePurchase. */ + public quotePurchase?: (BI.IQuotePurchase|null); - /** - * Converts this ReservedRange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new UpgradeLicenseCompletePurchaseResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UpgradeLicenseCompletePurchaseResponse instance + */ + public static create(properties?: BI.IUpgradeLicenseCompletePurchaseResponse): BI.UpgradeLicenseCompletePurchaseResponse; - /** - * Gets the default type url for ReservedRange - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Encodes the specified UpgradeLicenseCompletePurchaseResponse message. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseResponse.verify|verify} messages. + * @param message UpgradeLicenseCompletePurchaseResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.IUpgradeLicenseCompletePurchaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of an ExtensionRangeOptions. */ - interface IExtensionRangeOptions { + /** + * Decodes an UpgradeLicenseCompletePurchaseResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpgradeLicenseCompletePurchaseResponse + * @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.UpgradeLicenseCompletePurchaseResponse; - /** ExtensionRangeOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** + * Creates an UpgradeLicenseCompletePurchaseResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpgradeLicenseCompletePurchaseResponse + */ + public static fromObject(object: { [k: string]: any }): BI.UpgradeLicenseCompletePurchaseResponse; - /** ExtensionRangeOptions declaration */ - declaration?: (google.protobuf.ExtensionRangeOptions.IDeclaration[]|null); + /** + * Creates a plain object from an UpgradeLicenseCompletePurchaseResponse message. Also converts values to other types if specified. + * @param message UpgradeLicenseCompletePurchaseResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.UpgradeLicenseCompletePurchaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ExtensionRangeOptions features */ - features?: (google.protobuf.IFeatureSet|null); + /** + * Converts this UpgradeLicenseCompletePurchaseResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ExtensionRangeOptions verification */ - verification?: (google.protobuf.ExtensionRangeOptions.VerificationState|null); - } + /** + * Gets the default type url for UpgradeLicenseCompletePurchaseResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Represents an ExtensionRangeOptions. */ - class ExtensionRangeOptions implements IExtensionRangeOptions { + /** Properties of an EnterpriseBasePlan. */ + interface IEnterpriseBasePlan { - /** - * Constructs a new ExtensionRangeOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IExtensionRangeOptions); + /** EnterpriseBasePlan baseplanVersion */ + baseplanVersion?: (BI.EnterpriseBasePlan.EnterpriseBasePlanVersion|null); - /** ExtensionRangeOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** EnterpriseBasePlan cost */ + cost?: (BI.ICost|null); + } - /** ExtensionRangeOptions declaration. */ - public declaration: google.protobuf.ExtensionRangeOptions.IDeclaration[]; + /** Represents an EnterpriseBasePlan. */ + class EnterpriseBasePlan implements IEnterpriseBasePlan { - /** ExtensionRangeOptions features. */ - public features?: (google.protobuf.IFeatureSet|null); + /** + * Constructs a new EnterpriseBasePlan. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IEnterpriseBasePlan); - /** ExtensionRangeOptions verification. */ - public verification: google.protobuf.ExtensionRangeOptions.VerificationState; + /** EnterpriseBasePlan baseplanVersion. */ + public baseplanVersion: BI.EnterpriseBasePlan.EnterpriseBasePlanVersion; - /** - * Creates a new ExtensionRangeOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns ExtensionRangeOptions instance - */ - public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; + /** EnterpriseBasePlan cost. */ + public cost?: (BI.ICost|null); - /** - * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. - * @param message ExtensionRangeOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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; - /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExtensionRangeOptions - * @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): google.protobuf.ExtensionRangeOptions; + /** + * 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; - /** - * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExtensionRangeOptions - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; + /** + * 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; - /** - * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. - * @param message ExtensionRangeOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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; - /** - * Converts this ExtensionRangeOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * 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 }; - /** - * Gets the default type url for ExtensionRangeOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this EnterpriseBasePlan to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - namespace ExtensionRangeOptions { + /** + * 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; + } - /** Properties of a Declaration. */ - interface IDeclaration { + namespace EnterpriseBasePlan { - /** Declaration number */ - number?: (number|null); + /** EnterpriseBasePlanVersion enum. */ + enum EnterpriseBasePlanVersion { + UNKNOWN = 0, + BUSINESS_STARTER = 1, + BUSINESS = 2, + ENTERPRISE = 3 + } + } - /** Declaration fullName */ - fullName?: (string|null); + /** Properties of a SubscriptionEnterprisePricingRequest. */ + interface ISubscriptionEnterprisePricingRequest { + } - /** Declaration type */ - type?: (string|null); + /** Represents a SubscriptionEnterprisePricingRequest. */ + class SubscriptionEnterprisePricingRequest implements ISubscriptionEnterprisePricingRequest { - /** Declaration reserved */ - reserved?: (boolean|null); + /** + * Constructs a new SubscriptionEnterprisePricingRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISubscriptionEnterprisePricingRequest); - /** Declaration repeated */ - repeated?: (boolean|null); - } + /** + * 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; - /** Represents a Declaration. */ - class Declaration implements IDeclaration { + /** + * 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; - /** - * Constructs a new Declaration. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration); + /** + * 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; - /** Declaration number. */ - public number: number; + /** + * 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 }; - /** Declaration fullName. */ - public fullName: string; + /** + * Converts this SubscriptionEnterprisePricingRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Declaration type. */ - public type: string; + /** + * 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; + } - /** Declaration reserved. */ - public reserved: boolean; + /** Properties of a NhiTierPlan. */ + interface INhiTierPlan { - /** Declaration repeated. */ - public repeated: boolean; + /** NhiTierPlan tierId */ + tierId?: (number|null); - /** - * Creates a new Declaration instance using the specified properties. - * @param [properties] Properties to set - * @returns Declaration instance - */ - public static create(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration): google.protobuf.ExtensionRangeOptions.Declaration; + /** NhiTierPlan nhiCeiling */ + nhiCeiling?: (number|null); - /** - * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. - * @param message Declaration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer; + /** NhiTierPlan cost */ + cost?: (BI.ICost|null); - /** - * Decodes a Declaration message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Declaration - * @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): google.protobuf.ExtensionRangeOptions.Declaration; + /** NhiTierPlan productId */ + productId?: (number|null); - /** - * Creates a Declaration message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Declaration - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions.Declaration; + /** NhiTierPlan nhiFloor */ + nhiFloor?: (number|null); + } - /** - * Creates a plain object from a Declaration message. Also converts values to other types if specified. - * @param message Declaration - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.ExtensionRangeOptions.Declaration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a NhiTierPlan. */ + class NhiTierPlan implements INhiTierPlan { - /** - * Converts this Declaration to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new NhiTierPlan. + * @param [properties] Properties to set + */ + constructor(properties?: BI.INhiTierPlan); - /** - * Gets the default type url for Declaration - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** NhiTierPlan tierId. */ + public tierId: number; - /** VerificationState enum. */ - enum VerificationState { - DECLARATION = 0, - UNVERIFIED = 1 - } - } + /** NhiTierPlan nhiCeiling. */ + public nhiCeiling: number; - /** Properties of a FieldDescriptorProto. */ - interface IFieldDescriptorProto { + /** NhiTierPlan cost. */ + public cost?: (BI.ICost|null); - /** FieldDescriptorProto name */ - name?: (string|null); + /** NhiTierPlan productId. */ + public productId: number; - /** FieldDescriptorProto number */ - number?: (number|null); + /** NhiTierPlan nhiFloor. */ + public nhiFloor: number; - /** FieldDescriptorProto label */ - label?: (google.protobuf.FieldDescriptorProto.Label|null); + /** + * Creates a new NhiTierPlan instance using the specified properties. + * @param [properties] Properties to set + * @returns NhiTierPlan instance + */ + public static create(properties?: BI.INhiTierPlan): BI.NhiTierPlan; - /** FieldDescriptorProto type */ - type?: (google.protobuf.FieldDescriptorProto.Type|null); + /** + * Encodes the specified NhiTierPlan message. Does not implicitly {@link BI.NhiTierPlan.verify|verify} messages. + * @param message NhiTierPlan message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.INhiTierPlan, writer?: $protobuf.Writer): $protobuf.Writer; - /** FieldDescriptorProto typeName */ - typeName?: (string|null); + /** + * Decodes a NhiTierPlan message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NhiTierPlan + * @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.NhiTierPlan; - /** FieldDescriptorProto extendee */ - extendee?: (string|null); + /** + * Creates a NhiTierPlan message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NhiTierPlan + */ + public static fromObject(object: { [k: string]: any }): BI.NhiTierPlan; - /** FieldDescriptorProto defaultValue */ - defaultValue?: (string|null); + /** + * Creates a plain object from a NhiTierPlan message. Also converts values to other types if specified. + * @param message NhiTierPlan + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.NhiTierPlan, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FieldDescriptorProto oneofIndex */ - oneofIndex?: (number|null); + /** + * Converts this NhiTierPlan to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** FieldDescriptorProto jsonName */ - jsonName?: (string|null); + /** + * Gets the default type url for NhiTierPlan + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** FieldDescriptorProto options */ - options?: (google.protobuf.IFieldOptions|null); + /** Properties of a SubscriptionEnterprisePricingResponse. */ + interface ISubscriptionEnterprisePricingResponse { - /** FieldDescriptorProto proto3Optional */ - proto3Optional?: (boolean|null); - } + /** SubscriptionEnterprisePricingResponse basePlans */ + basePlans?: (BI.IEnterpriseBasePlan[]|null); - /** Represents a FieldDescriptorProto. */ - class FieldDescriptorProto implements IFieldDescriptorProto { + /** SubscriptionEnterprisePricingResponse addons */ + addons?: (BI.IAddon[]|null); - /** - * Constructs a new FieldDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFieldDescriptorProto); + /** SubscriptionEnterprisePricingResponse filePlans */ + filePlans?: (BI.IFilePlan[]|null); - /** FieldDescriptorProto name. */ - public name: string; + /** SubscriptionEnterprisePricingResponse nhiTierPlans */ + nhiTierPlans?: (BI.INhiTierPlan[]|null); + } - /** FieldDescriptorProto number. */ - public number: number; + /** Represents a SubscriptionEnterprisePricingResponse. */ + class SubscriptionEnterprisePricingResponse implements ISubscriptionEnterprisePricingResponse { - /** FieldDescriptorProto label. */ - public label: google.protobuf.FieldDescriptorProto.Label; + /** + * Constructs a new SubscriptionEnterprisePricingResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISubscriptionEnterprisePricingResponse); - /** FieldDescriptorProto type. */ - public type: google.protobuf.FieldDescriptorProto.Type; + /** SubscriptionEnterprisePricingResponse basePlans. */ + public basePlans: BI.IEnterpriseBasePlan[]; - /** FieldDescriptorProto typeName. */ - public typeName: string; + /** SubscriptionEnterprisePricingResponse addons. */ + public addons: BI.IAddon[]; - /** FieldDescriptorProto extendee. */ - public extendee: string; + /** SubscriptionEnterprisePricingResponse filePlans. */ + public filePlans: BI.IFilePlan[]; - /** FieldDescriptorProto defaultValue. */ - public defaultValue: string; + /** SubscriptionEnterprisePricingResponse nhiTierPlans. */ + public nhiTierPlans: BI.INhiTierPlan[]; - /** FieldDescriptorProto oneofIndex. */ - public oneofIndex: number; + /** + * 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; - /** FieldDescriptorProto jsonName. */ - public jsonName: string; + /** + * 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; - /** FieldDescriptorProto options. */ - public options?: (google.protobuf.IFieldOptions|null); + /** + * 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; - /** FieldDescriptorProto proto3Optional. */ - public proto3Optional: boolean; + /** + * 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 new FieldDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns FieldDescriptorProto instance - */ - public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; + /** + * 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 }; - /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @param message FieldDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this SubscriptionEnterprisePricingResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FieldDescriptorProto - * @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): google.protobuf.FieldDescriptorProto; + /** + * 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; + } - /** - * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FieldDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; + /** 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 + } - /** - * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. - * @param message FieldDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a SingularDeviceIdentifier. */ + interface ISingularDeviceIdentifier { - /** - * Converts this FieldDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** SingularDeviceIdentifier id */ + id?: (string|null); - /** - * Gets the default type url for FieldDescriptorProto - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** SingularDeviceIdentifier idType */ + idType?: (BI.IdentifierType|null); + } - namespace FieldDescriptorProto { + /** Represents a SingularDeviceIdentifier. */ + class SingularDeviceIdentifier implements ISingularDeviceIdentifier { - /** Type enum. */ - enum Type { - TYPE_DOUBLE = 1, - TYPE_FLOAT = 2, - TYPE_INT64 = 3, - TYPE_UINT64 = 4, - TYPE_INT32 = 5, - TYPE_FIXED64 = 6, - TYPE_FIXED32 = 7, - TYPE_BOOL = 8, - TYPE_STRING = 9, - TYPE_GROUP = 10, - TYPE_MESSAGE = 11, - TYPE_BYTES = 12, - TYPE_UINT32 = 13, - TYPE_ENUM = 14, - TYPE_SFIXED32 = 15, - TYPE_SFIXED64 = 16, - TYPE_SINT32 = 17, - TYPE_SINT64 = 18 - } + /** + * Constructs a new SingularDeviceIdentifier. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISingularDeviceIdentifier); - /** Label enum. */ - enum Label { - LABEL_OPTIONAL = 1, - LABEL_REPEATED = 3, - LABEL_REQUIRED = 2 - } - } + /** SingularDeviceIdentifier id. */ + public id: string; - /** Properties of an OneofDescriptorProto. */ - interface IOneofDescriptorProto { + /** SingularDeviceIdentifier idType. */ + public idType: BI.IdentifierType; - /** OneofDescriptorProto name */ - name?: (string|null); + /** + * 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; - /** OneofDescriptorProto options */ - options?: (google.protobuf.IOneofOptions|null); - } + /** + * 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; - /** Represents an OneofDescriptorProto. */ - class OneofDescriptorProto implements IOneofDescriptorProto { + /** + * 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; - /** - * Constructs a new OneofDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IOneofDescriptorProto); + /** + * 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; - /** OneofDescriptorProto name. */ - public name: string; + /** + * 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 }; - /** OneofDescriptorProto options. */ - public options?: (google.protobuf.IOneofOptions|null); + /** + * Converts this SingularDeviceIdentifier to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new OneofDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns OneofDescriptorProto instance - */ - public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; + /** + * 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; + } - /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @param message OneofDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a SingularSharedData. */ + interface ISingularSharedData { - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OneofDescriptorProto - * @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): google.protobuf.OneofDescriptorProto; + /** SingularSharedData platform */ + platform?: (string|null); - /** - * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OneofDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; + /** SingularSharedData osVersion */ + osVersion?: (string|null); - /** - * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. - * @param message OneofDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** SingularSharedData make */ + make?: (string|null); - /** - * Converts this OneofDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** SingularSharedData model */ + model?: (string|null); - /** - * Gets the default type url for OneofDescriptorProto - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** SingularSharedData locale */ + locale?: (string|null); - /** Properties of an EnumDescriptorProto. */ - interface IEnumDescriptorProto { + /** SingularSharedData build */ + build?: (string|null); - /** EnumDescriptorProto name */ - name?: (string|null); + /** SingularSharedData appIdentifier */ + appIdentifier?: (string|null); - /** EnumDescriptorProto value */ - value?: (google.protobuf.IEnumValueDescriptorProto[]|null); + /** SingularSharedData attAuthorizationStatus */ + attAuthorizationStatus?: (number|null); + } - /** EnumDescriptorProto options */ - options?: (google.protobuf.IEnumOptions|null); + /** Represents a SingularSharedData. */ + class SingularSharedData implements ISingularSharedData { - /** EnumDescriptorProto reservedRange */ - reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null); + /** + * Constructs a new SingularSharedData. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISingularSharedData); - /** EnumDescriptorProto reservedName */ - reservedName?: (string[]|null); + /** SingularSharedData platform. */ + public platform: string; - /** EnumDescriptorProto visibility */ - visibility?: (google.protobuf.SymbolVisibility|null); - } + /** SingularSharedData osVersion. */ + public osVersion: string; - /** Represents an EnumDescriptorProto. */ - class EnumDescriptorProto implements IEnumDescriptorProto { + /** SingularSharedData make. */ + public make: string; - /** - * Constructs a new EnumDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IEnumDescriptorProto); + /** SingularSharedData model. */ + public model: string; - /** EnumDescriptorProto name. */ - public name: string; + /** SingularSharedData locale. */ + public locale: string; - /** EnumDescriptorProto value. */ - public value: google.protobuf.IEnumValueDescriptorProto[]; + /** SingularSharedData build. */ + public build: string; - /** EnumDescriptorProto options. */ - public options?: (google.protobuf.IEnumOptions|null); + /** SingularSharedData appIdentifier. */ + public appIdentifier: string; - /** EnumDescriptorProto reservedRange. */ - public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[]; + /** SingularSharedData attAuthorizationStatus. */ + public attAuthorizationStatus: number; - /** EnumDescriptorProto reservedName. */ - public reservedName: string[]; + /** + * 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; - /** EnumDescriptorProto visibility. */ - public visibility: google.protobuf.SymbolVisibility; + /** + * 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; - /** - * Creates a new EnumDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumDescriptorProto instance - */ - public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; + /** + * 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; - /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @param message EnumDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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; - /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumDescriptorProto - * @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): google.protobuf.EnumDescriptorProto; + /** + * 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 }; - /** - * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EnumDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; + /** + * Converts this SingularSharedData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. - * @param message EnumDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [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; + } - /** - * Converts this EnumDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a SingularSessionRequest. */ + interface ISingularSessionRequest { - /** - * Gets the default type url for EnumDescriptorProto - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** SingularSessionRequest deviceIdentifiers */ + deviceIdentifiers?: (BI.ISingularDeviceIdentifier[]|null); - namespace EnumDescriptorProto { + /** SingularSessionRequest sharedData */ + sharedData?: (BI.ISingularSharedData|null); - /** Properties of an EnumReservedRange. */ - interface IEnumReservedRange { + /** SingularSessionRequest applicationVersion */ + applicationVersion?: (string|null); - /** EnumReservedRange start */ - start?: (number|null); + /** SingularSessionRequest install */ + install?: (boolean|null); - /** EnumReservedRange end */ - end?: (number|null); - } + /** SingularSessionRequest installTime */ + installTime?: (number|null); - /** Represents an EnumReservedRange. */ - class EnumReservedRange implements IEnumReservedRange { + /** SingularSessionRequest updateTime */ + updateTime?: (number|null); - /** - * Constructs a new EnumReservedRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange); + /** SingularSessionRequest installSource */ + installSource?: (string|null); - /** EnumReservedRange start. */ - public start: number; + /** SingularSessionRequest installReceipt */ + installReceipt?: (string|null); - /** EnumReservedRange end. */ - public end: number; + /** SingularSessionRequest openuri */ + openuri?: (string|null); - /** - * Creates a new EnumReservedRange instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumReservedRange instance - */ - public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange; + /** SingularSessionRequest ddlEnabled */ + ddlEnabled?: (boolean|null); - /** - * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @param message EnumReservedRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** SingularSessionRequest singularLinkResolveRequired */ + singularLinkResolveRequired?: (boolean|null); - /** - * Decodes an EnumReservedRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumReservedRange - * @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): google.protobuf.EnumDescriptorProto.EnumReservedRange; + /** SingularSessionRequest installRef */ + installRef?: (string|null); + + /** SingularSessionRequest metaRef */ + metaRef?: (string|null); + + /** SingularSessionRequest attributionToken */ + attributionToken?: (string|null); + } - /** - * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EnumReservedRange - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange; + /** Represents a SingularSessionRequest. */ + class SingularSessionRequest implements ISingularSessionRequest { - /** - * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. - * @param message EnumReservedRange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new SingularSessionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISingularSessionRequest); - /** - * Converts this EnumReservedRange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** SingularSessionRequest deviceIdentifiers. */ + public deviceIdentifiers: BI.ISingularDeviceIdentifier[]; - /** - * Gets the default type url for EnumReservedRange - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** SingularSessionRequest sharedData. */ + public sharedData?: (BI.ISingularSharedData|null); - /** Properties of an EnumValueDescriptorProto. */ - interface IEnumValueDescriptorProto { + /** SingularSessionRequest applicationVersion. */ + public applicationVersion: string; - /** EnumValueDescriptorProto name */ - name?: (string|null); + /** SingularSessionRequest install. */ + public install: boolean; - /** EnumValueDescriptorProto number */ - number?: (number|null); + /** SingularSessionRequest installTime. */ + public installTime: number; - /** EnumValueDescriptorProto options */ - options?: (google.protobuf.IEnumValueOptions|null); - } + /** SingularSessionRequest updateTime. */ + public updateTime: number; - /** Represents an EnumValueDescriptorProto. */ - class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + /** SingularSessionRequest installSource. */ + public installSource: string; - /** - * Constructs a new EnumValueDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + /** SingularSessionRequest installReceipt. */ + public installReceipt: string; - /** EnumValueDescriptorProto name. */ - public name: string; + /** SingularSessionRequest openuri. */ + public openuri: string; - /** EnumValueDescriptorProto number. */ - public number: number; + /** SingularSessionRequest ddlEnabled. */ + public ddlEnabled: boolean; - /** EnumValueDescriptorProto options. */ - public options?: (google.protobuf.IEnumValueOptions|null); + /** SingularSessionRequest singularLinkResolveRequired. */ + public singularLinkResolveRequired: boolean; - /** - * Creates a new EnumValueDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumValueDescriptorProto instance - */ - public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; + /** SingularSessionRequest installRef. */ + public installRef: string; - /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @param message EnumValueDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** SingularSessionRequest metaRef. */ + public metaRef: string; - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumValueDescriptorProto - * @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): google.protobuf.EnumValueDescriptorProto; + /** SingularSessionRequest attributionToken. */ + public attributionToken: string; - /** - * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EnumValueDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; + /** + * 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; - /** - * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. - * @param message EnumValueDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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; - /** - * Converts this EnumValueDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * 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; - /** - * Gets the default type url for EnumValueDescriptorProto - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * 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; - /** Properties of a ServiceDescriptorProto. */ - interface IServiceDescriptorProto { + /** + * 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 }; - /** ServiceDescriptorProto name */ - name?: (string|null); + /** + * Converts this SingularSessionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ServiceDescriptorProto method */ - method?: (google.protobuf.IMethodDescriptorProto[]|null); + /** + * 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; + } - /** ServiceDescriptorProto options */ - options?: (google.protobuf.IServiceOptions|null); - } + /** Properties of a SingularEventRequest. */ + interface ISingularEventRequest { - /** Represents a ServiceDescriptorProto. */ - class ServiceDescriptorProto implements IServiceDescriptorProto { + /** SingularEventRequest deviceIdentifiers */ + deviceIdentifiers?: (BI.ISingularDeviceIdentifier[]|null); - /** - * Constructs a new ServiceDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IServiceDescriptorProto); + /** SingularEventRequest sharedData */ + sharedData?: (BI.ISingularSharedData|null); - /** ServiceDescriptorProto name. */ - public name: string; + /** SingularEventRequest eventName */ + eventName?: (string|null); + } - /** ServiceDescriptorProto method. */ - public method: google.protobuf.IMethodDescriptorProto[]; + /** Represents a SingularEventRequest. */ + class SingularEventRequest implements ISingularEventRequest { - /** ServiceDescriptorProto options. */ - public options?: (google.protobuf.IServiceOptions|null); + /** + * Constructs a new SingularEventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.ISingularEventRequest); - /** - * Creates a new ServiceDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceDescriptorProto instance - */ - public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; + /** SingularEventRequest deviceIdentifiers. */ + public deviceIdentifiers: BI.ISingularDeviceIdentifier[]; - /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @param message ServiceDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** SingularEventRequest sharedData. */ + public sharedData?: (BI.ISingularSharedData|null); - /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceDescriptorProto - * @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): google.protobuf.ServiceDescriptorProto; + /** SingularEventRequest eventName. */ + public eventName: string; - /** - * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServiceDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; + /** + * 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; - /** - * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. - * @param message ServiceDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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; - /** - * Converts this ServiceDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * 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; - /** - * Gets the default type url for ServiceDescriptorProto - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * 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; - /** Properties of a MethodDescriptorProto. */ - interface IMethodDescriptorProto { + /** + * 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 }; - /** MethodDescriptorProto name */ - name?: (string|null); + /** + * Converts this SingularEventRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** MethodDescriptorProto inputType */ - inputType?: (string|null); + /** + * 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; + } - /** MethodDescriptorProto outputType */ - outputType?: (string|null); + /** Properties of an ActivePamCountRequest. */ + interface IActivePamCountRequest { - /** MethodDescriptorProto options */ - options?: (google.protobuf.IMethodOptions|null); + /** ActivePamCountRequest enterpriseId */ + enterpriseId?: (number|null); + } - /** MethodDescriptorProto clientStreaming */ - clientStreaming?: (boolean|null); + /** Represents an ActivePamCountRequest. */ + class ActivePamCountRequest implements IActivePamCountRequest { - /** MethodDescriptorProto serverStreaming */ - serverStreaming?: (boolean|null); - } + /** + * Constructs a new ActivePamCountRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IActivePamCountRequest); - /** Represents a MethodDescriptorProto. */ - class MethodDescriptorProto implements IMethodDescriptorProto { + /** ActivePamCountRequest enterpriseId. */ + public enterpriseId: number; - /** - * Constructs a new MethodDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IMethodDescriptorProto); + /** + * Creates a new ActivePamCountRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ActivePamCountRequest instance + */ + public static create(properties?: BI.IActivePamCountRequest): BI.ActivePamCountRequest; - /** MethodDescriptorProto name. */ - public name: string; + /** + * Encodes the specified ActivePamCountRequest message. Does not implicitly {@link BI.ActivePamCountRequest.verify|verify} messages. + * @param message ActivePamCountRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.IActivePamCountRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** MethodDescriptorProto inputType. */ - public inputType: string; + /** + * Decodes an ActivePamCountRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ActivePamCountRequest + * @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.ActivePamCountRequest; - /** MethodDescriptorProto outputType. */ - public outputType: string; + /** + * Creates an ActivePamCountRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ActivePamCountRequest + */ + public static fromObject(object: { [k: string]: any }): BI.ActivePamCountRequest; - /** MethodDescriptorProto options. */ - public options?: (google.protobuf.IMethodOptions|null); + /** + * Creates a plain object from an ActivePamCountRequest message. Also converts values to other types if specified. + * @param message ActivePamCountRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.ActivePamCountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** MethodDescriptorProto clientStreaming. */ - public clientStreaming: boolean; + /** + * Converts this ActivePamCountRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** MethodDescriptorProto serverStreaming. */ - public serverStreaming: boolean; + /** + * Gets the default type url for ActivePamCountRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a new MethodDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns MethodDescriptorProto instance - */ - public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; + /** Properties of an ActivePamCountResponse. */ + interface IActivePamCountResponse { - /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @param message MethodDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** ActivePamCountResponse pamCount */ + pamCount?: (number|null); + } - /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MethodDescriptorProto - * @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): google.protobuf.MethodDescriptorProto; + /** Represents an ActivePamCountResponse. */ + class ActivePamCountResponse implements IActivePamCountResponse { - /** - * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MethodDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; + /** + * Constructs a new ActivePamCountResponse. + * @param [properties] Properties to set + */ + constructor(properties?: BI.IActivePamCountResponse); - /** - * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. - * @param message MethodDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ActivePamCountResponse pamCount. */ + public pamCount: number; - /** - * Converts this MethodDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new ActivePamCountResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ActivePamCountResponse instance + */ + public static create(properties?: BI.IActivePamCountResponse): BI.ActivePamCountResponse; - /** - * Gets the default type url for MethodDescriptorProto - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified ActivePamCountResponse message. Does not implicitly {@link BI.ActivePamCountResponse.verify|verify} messages. + * @param message ActivePamCountResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.IActivePamCountResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a FileOptions. */ - interface IFileOptions { + /** + * Decodes an ActivePamCountResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ActivePamCountResponse + * @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.ActivePamCountResponse; - /** FileOptions javaPackage */ - javaPackage?: (string|null); + /** + * Creates an ActivePamCountResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ActivePamCountResponse + */ + public static fromObject(object: { [k: string]: any }): BI.ActivePamCountResponse; + + /** + * Creates a plain object from an ActivePamCountResponse message. Also converts values to other types if specified. + * @param message ActivePamCountResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.ActivePamCountResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FileOptions javaOuterClassname */ - javaOuterClassname?: (string|null); + /** + * Converts this ActivePamCountResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** FileOptions javaMultipleFiles */ - javaMultipleFiles?: (boolean|null); + /** + * Gets the default type url for ActivePamCountResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** FileOptions javaGenerateEqualsAndHash */ - javaGenerateEqualsAndHash?: (boolean|null); + /** Properties of a NhiEnterpriseRequest. */ + interface INhiEnterpriseRequest { - /** FileOptions javaStringCheckUtf8 */ - javaStringCheckUtf8?: (boolean|null); + /** NhiEnterpriseRequest enterpriseId */ + enterpriseId?: (number|null); - /** FileOptions optimizeFor */ - optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|null); + /** NhiEnterpriseRequest startTime */ + startTime?: (number|null); - /** FileOptions goPackage */ - goPackage?: (string|null); + /** NhiEnterpriseRequest endTime */ + endTime?: (number|null); + } - /** FileOptions ccGenericServices */ - ccGenericServices?: (boolean|null); + /** Represents a NhiEnterpriseRequest. */ + class NhiEnterpriseRequest implements INhiEnterpriseRequest { - /** FileOptions javaGenericServices */ - javaGenericServices?: (boolean|null); + /** + * Constructs a new NhiEnterpriseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.INhiEnterpriseRequest); - /** FileOptions pyGenericServices */ - pyGenericServices?: (boolean|null); + /** NhiEnterpriseRequest enterpriseId. */ + public enterpriseId: number; - /** FileOptions deprecated */ - deprecated?: (boolean|null); + /** NhiEnterpriseRequest startTime. */ + public startTime: number; - /** FileOptions ccEnableArenas */ - ccEnableArenas?: (boolean|null); + /** NhiEnterpriseRequest endTime. */ + public endTime: number; - /** FileOptions objcClassPrefix */ - objcClassPrefix?: (string|null); + /** + * Creates a new NhiEnterpriseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NhiEnterpriseRequest instance + */ + public static create(properties?: BI.INhiEnterpriseRequest): BI.NhiEnterpriseRequest; - /** FileOptions csharpNamespace */ - csharpNamespace?: (string|null); + /** + * Encodes the specified NhiEnterpriseRequest message. Does not implicitly {@link BI.NhiEnterpriseRequest.verify|verify} messages. + * @param message NhiEnterpriseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.INhiEnterpriseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** FileOptions swiftPrefix */ - swiftPrefix?: (string|null); + /** + * Decodes a NhiEnterpriseRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NhiEnterpriseRequest + * @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.NhiEnterpriseRequest; - /** FileOptions phpClassPrefix */ - phpClassPrefix?: (string|null); + /** + * Creates a NhiEnterpriseRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NhiEnterpriseRequest + */ + public static fromObject(object: { [k: string]: any }): BI.NhiEnterpriseRequest; - /** FileOptions phpNamespace */ - phpNamespace?: (string|null); + /** + * Creates a plain object from a NhiEnterpriseRequest message. Also converts values to other types if specified. + * @param message NhiEnterpriseRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.NhiEnterpriseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FileOptions phpMetadataNamespace */ - phpMetadataNamespace?: (string|null); + /** + * Converts this NhiEnterpriseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** FileOptions rubyPackage */ - rubyPackage?: (string|null); + /** + * Gets the default type url for NhiEnterpriseRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** FileOptions features */ - features?: (google.protobuf.IFeatureSet|null); + /** Properties of a NhiMetricsRequest. */ + interface INhiMetricsRequest { - /** FileOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } + /** NhiMetricsRequest enterpriseIds */ + enterpriseIds?: (number[]|null); - /** Represents a FileOptions. */ - class FileOptions implements IFileOptions { + /** NhiMetricsRequest startTime */ + startTime?: (number|null); - /** - * Constructs a new FileOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFileOptions); + /** NhiMetricsRequest endTime */ + endTime?: (number|null); - /** FileOptions javaPackage. */ - public javaPackage: string; + /** NhiMetricsRequest enterprises */ + enterprises?: (BI.INhiEnterpriseRequest[]|null); + } - /** FileOptions javaOuterClassname. */ - public javaOuterClassname: string; + /** Represents a NhiMetricsRequest. */ + class NhiMetricsRequest implements INhiMetricsRequest { - /** FileOptions javaMultipleFiles. */ - public javaMultipleFiles: boolean; + /** + * Constructs a new NhiMetricsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: BI.INhiMetricsRequest); - /** FileOptions javaGenerateEqualsAndHash. */ - public javaGenerateEqualsAndHash: boolean; + /** NhiMetricsRequest enterpriseIds. */ + public enterpriseIds: number[]; - /** FileOptions javaStringCheckUtf8. */ - public javaStringCheckUtf8: boolean; + /** NhiMetricsRequest startTime. */ + public startTime: number; - /** FileOptions optimizeFor. */ - public optimizeFor: google.protobuf.FileOptions.OptimizeMode; + /** NhiMetricsRequest endTime. */ + public endTime: number; - /** FileOptions goPackage. */ - public goPackage: string; + /** NhiMetricsRequest enterprises. */ + public enterprises: BI.INhiEnterpriseRequest[]; - /** FileOptions ccGenericServices. */ - public ccGenericServices: boolean; + /** + * Creates a new NhiMetricsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NhiMetricsRequest instance + */ + public static create(properties?: BI.INhiMetricsRequest): BI.NhiMetricsRequest; - /** FileOptions javaGenericServices. */ - public javaGenericServices: boolean; + /** + * Encodes the specified NhiMetricsRequest message. Does not implicitly {@link BI.NhiMetricsRequest.verify|verify} messages. + * @param message NhiMetricsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: BI.INhiMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** FileOptions pyGenericServices. */ - public pyGenericServices: boolean; + /** + * Decodes a NhiMetricsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NhiMetricsRequest + * @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.NhiMetricsRequest; - /** FileOptions deprecated. */ - public deprecated: boolean; + /** + * Creates a NhiMetricsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NhiMetricsRequest + */ + public static fromObject(object: { [k: string]: any }): BI.NhiMetricsRequest; - /** FileOptions ccEnableArenas. */ - public ccEnableArenas: boolean; + /** + * Creates a plain object from a NhiMetricsRequest message. Also converts values to other types if specified. + * @param message NhiMetricsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: BI.NhiMetricsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FileOptions objcClassPrefix. */ - public objcClassPrefix: string; + /** + * Converts this NhiMetricsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** FileOptions csharpNamespace. */ - public csharpNamespace: string; + /** + * Gets the default type url for NhiMetricsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } +} - /** FileOptions swiftPrefix. */ - public swiftPrefix: string; +/** Namespace google. */ +export namespace google { - /** FileOptions phpClassPrefix. */ - public phpClassPrefix: string; + /** Namespace api. */ + namespace api { - /** FileOptions phpNamespace. */ - public phpNamespace: string; + /** Properties of a Http. */ + interface IHttp { - /** FileOptions phpMetadataNamespace. */ - public phpMetadataNamespace: string; + /** Http rules */ + rules?: (google.api.IHttpRule[]|null); + } - /** FileOptions rubyPackage. */ - public rubyPackage: string; + /** Represents a Http. */ + class Http implements IHttp { - /** FileOptions features. */ - public features?: (google.protobuf.IFeatureSet|null); + /** + * Constructs a new Http. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttp); - /** FileOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** Http rules. */ + public rules: google.api.IHttpRule[]; /** - * Creates a new FileOptions instance using the specified properties. + * Creates a new Http instance using the specified properties. * @param [properties] Properties to set - * @returns FileOptions instance + * @returns Http instance */ - public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; + public static create(properties?: google.api.IHttp): google.api.Http; /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @param message FileOptions message or plain object to encode + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FileOptions message from the specified reader or buffer. + * Decodes a Http message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FileOptions + * @returns Http * @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): google.protobuf.FileOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http; /** - * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * Creates a Http message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FileOptions + * @returns Http */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; + public static fromObject(object: { [k: string]: any }): google.api.Http; /** - * Creates a plain object from a FileOptions message. Also converts values to other types if specified. - * @param message FileOptions + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @param message Http * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FileOptions to JSON. + * Converts this Http to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FileOptions + * Gets the default type url for Http * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace FileOptions { + /** Properties of a HttpRule. */ + interface IHttpRule { - /** OptimizeMode enum. */ - enum OptimizeMode { - SPEED = 1, - CODE_SIZE = 2, - LITE_RUNTIME = 3 - } - } + /** HttpRule get */ + get?: (string|null); - /** Properties of a MessageOptions. */ - interface IMessageOptions { + /** HttpRule put */ + put?: (string|null); - /** MessageOptions messageSetWireFormat */ - messageSetWireFormat?: (boolean|null); + /** HttpRule post */ + post?: (string|null); - /** MessageOptions noStandardDescriptorAccessor */ - noStandardDescriptorAccessor?: (boolean|null); + /** HttpRule delete */ + "delete"?: (string|null); - /** MessageOptions deprecated */ - deprecated?: (boolean|null); + /** HttpRule patch */ + patch?: (string|null); - /** MessageOptions mapEntry */ - mapEntry?: (boolean|null); + /** HttpRule custom */ + custom?: (google.api.ICustomHttpPattern|null); - /** MessageOptions deprecatedLegacyJsonFieldConflicts */ - deprecatedLegacyJsonFieldConflicts?: (boolean|null); + /** HttpRule selector */ + selector?: (string|null); - /** MessageOptions features */ - features?: (google.protobuf.IFeatureSet|null); + /** HttpRule body */ + body?: (string|null); - /** MessageOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** HttpRule additionalBindings */ + additionalBindings?: (google.api.IHttpRule[]|null); } - /** Represents a MessageOptions. */ - class MessageOptions implements IMessageOptions { + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { /** - * Constructs a new MessageOptions. + * Constructs a new HttpRule. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IMessageOptions); + constructor(properties?: google.api.IHttpRule); - /** MessageOptions messageSetWireFormat. */ - public messageSetWireFormat: boolean; + /** HttpRule get. */ + public get?: (string|null); - /** MessageOptions noStandardDescriptorAccessor. */ - public noStandardDescriptorAccessor: boolean; + /** HttpRule put. */ + public put?: (string|null); - /** MessageOptions deprecated. */ - public deprecated: boolean; + /** HttpRule post. */ + public post?: (string|null); - /** MessageOptions mapEntry. */ - public mapEntry: boolean; + /** HttpRule delete. */ + public delete?: (string|null); - /** MessageOptions deprecatedLegacyJsonFieldConflicts. */ - public deprecatedLegacyJsonFieldConflicts: boolean; + /** HttpRule patch. */ + public patch?: (string|null); - /** MessageOptions features. */ - public features?: (google.protobuf.IFeatureSet|null); + /** HttpRule custom. */ + public custom?: (google.api.ICustomHttpPattern|null); - /** MessageOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** HttpRule selector. */ + public selector: string; + + /** HttpRule body. */ + public body: string; + + /** HttpRule additionalBindings. */ + public additionalBindings: google.api.IHttpRule[]; + + /** HttpRule pattern. */ + public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); /** - * Creates a new MessageOptions instance using the specified properties. + * Creates a new HttpRule instance using the specified properties. * @param [properties] Properties to set - * @returns MessageOptions instance + * @returns HttpRule instance */ - public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; + public static create(properties?: google.api.IHttpRule): google.api.HttpRule; /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @param message MessageOptions message or plain object to encode + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MessageOptions message from the specified reader or buffer. + * Decodes a HttpRule message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MessageOptions + * @returns HttpRule * @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): google.protobuf.MessageOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule; /** - * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MessageOptions + * @returns HttpRule */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; + public static fromObject(object: { [k: string]: any }): google.api.HttpRule; /** - * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. - * @param message MessageOptions + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @param message HttpRule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MessageOptions to JSON. + * Converts this HttpRule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MessageOptions + * Gets the default type url for HttpRule * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FieldOptions. */ - interface IFieldOptions { - - /** FieldOptions ctype */ - ctype?: (google.protobuf.FieldOptions.CType|null); - - /** FieldOptions packed */ - packed?: (boolean|null); - - /** FieldOptions jstype */ - jstype?: (google.protobuf.FieldOptions.JSType|null); - - /** FieldOptions lazy */ - lazy?: (boolean|null); - - /** FieldOptions unverifiedLazy */ - unverifiedLazy?: (boolean|null); - - /** FieldOptions deprecated */ - deprecated?: (boolean|null); - - /** FieldOptions weak */ - weak?: (boolean|null); - - /** FieldOptions debugRedact */ - debugRedact?: (boolean|null); - - /** FieldOptions retention */ - retention?: (google.protobuf.FieldOptions.OptionRetention|null); - - /** FieldOptions targets */ - targets?: (google.protobuf.FieldOptions.OptionTargetType[]|null); - - /** FieldOptions editionDefaults */ - editionDefaults?: (google.protobuf.FieldOptions.IEditionDefault[]|null); - - /** FieldOptions features */ - features?: (google.protobuf.IFeatureSet|null); + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { - /** FieldOptions featureSupport */ - featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null); + /** CustomHttpPattern kind */ + kind?: (string|null); - /** FieldOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** CustomHttpPattern path */ + path?: (string|null); } - /** Represents a FieldOptions. */ - class FieldOptions implements IFieldOptions { + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { /** - * Constructs a new FieldOptions. + * Constructs a new CustomHttpPattern. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFieldOptions); - - /** FieldOptions ctype. */ - public ctype: google.protobuf.FieldOptions.CType; - - /** FieldOptions packed. */ - public packed: boolean; - - /** FieldOptions jstype. */ - public jstype: google.protobuf.FieldOptions.JSType; - - /** FieldOptions lazy. */ - public lazy: boolean; - - /** FieldOptions unverifiedLazy. */ - public unverifiedLazy: boolean; - - /** FieldOptions deprecated. */ - public deprecated: boolean; - - /** FieldOptions weak. */ - public weak: boolean; - - /** FieldOptions debugRedact. */ - public debugRedact: boolean; - - /** FieldOptions retention. */ - public retention: google.protobuf.FieldOptions.OptionRetention; - - /** FieldOptions targets. */ - public targets: google.protobuf.FieldOptions.OptionTargetType[]; - - /** FieldOptions editionDefaults. */ - public editionDefaults: google.protobuf.FieldOptions.IEditionDefault[]; - - /** FieldOptions features. */ - public features?: (google.protobuf.IFeatureSet|null); + constructor(properties?: google.api.ICustomHttpPattern); - /** FieldOptions featureSupport. */ - public featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null); + /** CustomHttpPattern kind. */ + public kind: string; - /** FieldOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** CustomHttpPattern path. */ + public path: string; /** - * Creates a new FieldOptions instance using the specified properties. + * Creates a new CustomHttpPattern instance using the specified properties. * @param [properties] Properties to set - * @returns FieldOptions instance + * @returns CustomHttpPattern instance */ - public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; + public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @param message FieldOptions message or plain object to encode + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FieldOptions message from the specified reader or buffer. + * Decodes a CustomHttpPattern message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FieldOptions + * @returns CustomHttpPattern * @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): google.protobuf.FieldOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern; /** - * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FieldOptions + * @returns CustomHttpPattern */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; + public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; /** - * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. - * @param message FieldOptions + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @param message CustomHttpPattern * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FieldOptions to JSON. + * Converts this CustomHttpPattern to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FieldOptions + * Gets the default type url for CustomHttpPattern * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - namespace FieldOptions { + /** Namespace protobuf. */ + namespace protobuf { - /** CType enum. */ - enum CType { - STRING = 0, - CORD = 1, - STRING_PIECE = 2 - } + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { - /** JSType enum. */ - enum JSType { - JS_NORMAL = 0, - JS_STRING = 1, - JS_NUMBER = 2 - } + /** FileDescriptorSet file */ + file?: (google.protobuf.IFileDescriptorProto[]|null); + } - /** OptionRetention enum. */ - enum OptionRetention { - RETENTION_UNKNOWN = 0, - RETENTION_RUNTIME = 1, - RETENTION_SOURCE = 2 - } + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { - /** OptionTargetType enum. */ - enum OptionTargetType { - TARGET_TYPE_UNKNOWN = 0, - TARGET_TYPE_FILE = 1, - TARGET_TYPE_EXTENSION_RANGE = 2, - TARGET_TYPE_MESSAGE = 3, - TARGET_TYPE_FIELD = 4, - TARGET_TYPE_ONEOF = 5, - TARGET_TYPE_ENUM = 6, - TARGET_TYPE_ENUM_ENTRY = 7, - TARGET_TYPE_SERVICE = 8, - TARGET_TYPE_METHOD = 9 - } + /** + * Constructs a new FileDescriptorSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorSet); - /** Properties of an EditionDefault. */ - interface IEditionDefault { + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; - /** EditionDefault edition */ - edition?: (google.protobuf.Edition|null); + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorSet instance + */ + public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; - /** EditionDefault value */ - value?: (string|null); - } + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents an EditionDefault. */ - class EditionDefault implements IEditionDefault { + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorSet + * @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): google.protobuf.FileDescriptorSet; - /** - * Constructs a new EditionDefault. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.FieldOptions.IEditionDefault); + /** + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorSet + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; - /** EditionDefault edition. */ - public edition: google.protobuf.Edition; + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @param message FileDescriptorSet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** EditionDefault value. */ - public value: string; + /** + * Converts this FileDescriptorSet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new EditionDefault instance using the specified properties. - * @param [properties] Properties to set - * @returns EditionDefault instance - */ - public static create(properties?: google.protobuf.FieldOptions.IEditionDefault): google.protobuf.FieldOptions.EditionDefault; + /** + * Gets the default type url for FileDescriptorSet + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. - * @param message EditionDefault message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer; + /** Edition enum. */ + enum Edition { + EDITION_UNKNOWN = 0, + EDITION_LEGACY = 900, + EDITION_PROTO2 = 998, + EDITION_PROTO3 = 999, + EDITION_2023 = 1000, + EDITION_2024 = 1001, + EDITION_1_TEST_ONLY = 1, + EDITION_2_TEST_ONLY = 2, + EDITION_99997_TEST_ONLY = 99997, + EDITION_99998_TEST_ONLY = 99998, + EDITION_99999_TEST_ONLY = 99999, + EDITION_MAX = 2147483647 + } - /** - * Decodes an EditionDefault message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EditionDefault - * @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): google.protobuf.FieldOptions.EditionDefault; + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { - /** - * Creates an EditionDefault message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EditionDefault - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.EditionDefault; + /** FileDescriptorProto name */ + name?: (string|null); - /** - * Creates a plain object from an EditionDefault message. Also converts values to other types if specified. - * @param message EditionDefault - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FieldOptions.EditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** FileDescriptorProto package */ + "package"?: (string|null); - /** - * Converts this EditionDefault to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** FileDescriptorProto dependency */ + dependency?: (string[]|null); - /** - * Gets the default type url for EditionDefault - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** FileDescriptorProto publicDependency */ + publicDependency?: (number[]|null); - /** Properties of a FeatureSupport. */ - interface IFeatureSupport { + /** FileDescriptorProto weakDependency */ + weakDependency?: (number[]|null); - /** FeatureSupport editionIntroduced */ - editionIntroduced?: (google.protobuf.Edition|null); + /** FileDescriptorProto optionDependency */ + optionDependency?: (string[]|null); - /** FeatureSupport editionDeprecated */ - editionDeprecated?: (google.protobuf.Edition|null); + /** FileDescriptorProto messageType */ + messageType?: (google.protobuf.IDescriptorProto[]|null); - /** FeatureSupport deprecationWarning */ - deprecationWarning?: (string|null); + /** FileDescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); - /** FeatureSupport editionRemoved */ - editionRemoved?: (google.protobuf.Edition|null); - } + /** FileDescriptorProto service */ + service?: (google.protobuf.IServiceDescriptorProto[]|null); - /** Represents a FeatureSupport. */ - class FeatureSupport implements IFeatureSupport { + /** FileDescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** FileDescriptorProto options */ + options?: (google.protobuf.IFileOptions|null); - /** - * Constructs a new FeatureSupport. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.FieldOptions.IFeatureSupport); + /** FileDescriptorProto sourceCodeInfo */ + sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); - /** FeatureSupport editionIntroduced. */ - public editionIntroduced: google.protobuf.Edition; + /** FileDescriptorProto syntax */ + syntax?: (string|null); - /** FeatureSupport editionDeprecated. */ - public editionDeprecated: google.protobuf.Edition; + /** FileDescriptorProto edition */ + edition?: (google.protobuf.Edition|null); + } - /** FeatureSupport deprecationWarning. */ - public deprecationWarning: string; + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { - /** FeatureSupport editionRemoved. */ - public editionRemoved: google.protobuf.Edition; + /** + * Constructs a new FileDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorProto); - /** - * Creates a new FeatureSupport instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureSupport instance - */ - public static create(properties?: google.protobuf.FieldOptions.IFeatureSupport): google.protobuf.FieldOptions.FeatureSupport; + /** FileDescriptorProto name. */ + public name: string; - /** - * Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages. - * @param message FeatureSupport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.FieldOptions.IFeatureSupport, writer?: $protobuf.Writer): $protobuf.Writer; + /** FileDescriptorProto package. */ + public package: string; - /** - * Decodes a FeatureSupport message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureSupport - * @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): google.protobuf.FieldOptions.FeatureSupport; + /** FileDescriptorProto dependency. */ + public dependency: string[]; - /** - * Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureSupport - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.FeatureSupport; + /** FileDescriptorProto publicDependency. */ + public publicDependency: number[]; - /** - * Creates a plain object from a FeatureSupport message. Also converts values to other types if specified. - * @param message FeatureSupport - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FieldOptions.FeatureSupport, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** FileDescriptorProto weakDependency. */ + public weakDependency: number[]; - /** - * Converts this FeatureSupport to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** FileDescriptorProto optionDependency. */ + public optionDependency: string[]; - /** - * Gets the default type url for FeatureSupport - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** FileDescriptorProto messageType. */ + public messageType: google.protobuf.IDescriptorProto[]; - /** Properties of an OneofOptions. */ - interface IOneofOptions { + /** FileDescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; - /** OneofOptions features */ - features?: (google.protobuf.IFeatureSet|null); + /** FileDescriptorProto service. */ + public service: google.protobuf.IServiceDescriptorProto[]; - /** OneofOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } + /** FileDescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; - /** Represents an OneofOptions. */ - class OneofOptions implements IOneofOptions { + /** FileDescriptorProto options. */ + public options?: (google.protobuf.IFileOptions|null); - /** - * Constructs a new OneofOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IOneofOptions); + /** FileDescriptorProto sourceCodeInfo. */ + public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); - /** OneofOptions features. */ - public features?: (google.protobuf.IFeatureSet|null); + /** FileDescriptorProto syntax. */ + public syntax: string; - /** OneofOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** FileDescriptorProto edition. */ + public edition: google.protobuf.Edition; /** - * Creates a new OneofOptions instance using the specified properties. + * Creates a new FileDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns OneofOptions instance + * @returns FileDescriptorProto instance */ - public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; + public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @param message OneofOptions message or plain object to encode + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OneofOptions message from the specified reader or buffer. + * Decodes a FileDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OneofOptions + * @returns FileDescriptorProto * @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): google.protobuf.OneofOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto; /** - * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OneofOptions + * @returns FileDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; /** - * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. - * @param message OneofOptions + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @param message FileDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OneofOptions to JSON. + * Converts this FileDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OneofOptions + * Gets the default type url for FileDescriptorProto * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EnumOptions. */ - interface IEnumOptions { + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { - /** EnumOptions allowAlias */ - allowAlias?: (boolean|null); + /** DescriptorProto name */ + name?: (string|null); - /** EnumOptions deprecated */ - deprecated?: (boolean|null); + /** DescriptorProto field */ + field?: (google.protobuf.IFieldDescriptorProto[]|null); - /** EnumOptions deprecatedLegacyJsonFieldConflicts */ - deprecatedLegacyJsonFieldConflicts?: (boolean|null); + /** DescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); - /** EnumOptions features */ - features?: (google.protobuf.IFeatureSet|null); + /** DescriptorProto nestedType */ + nestedType?: (google.protobuf.IDescriptorProto[]|null); - /** EnumOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** DescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** DescriptorProto extensionRange */ + extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); + + /** DescriptorProto oneofDecl */ + oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); + + /** DescriptorProto options */ + options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange */ + reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + + /** DescriptorProto reservedName */ + reservedName?: (string[]|null); + + /** DescriptorProto visibility */ + visibility?: (google.protobuf.SymbolVisibility|null); } - /** Represents an EnumOptions. */ - class EnumOptions implements IEnumOptions { + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { /** - * Constructs a new EnumOptions. + * Constructs a new DescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumOptions); + constructor(properties?: google.protobuf.IDescriptorProto); - /** EnumOptions allowAlias. */ - public allowAlias: boolean; + /** DescriptorProto name. */ + public name: string; - /** EnumOptions deprecated. */ - public deprecated: boolean; + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; - /** EnumOptions deprecatedLegacyJsonFieldConflicts. */ - public deprecatedLegacyJsonFieldConflicts: boolean; + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; - /** EnumOptions features. */ - public features?: (google.protobuf.IFeatureSet|null); + /** DescriptorProto nestedType. */ + public nestedType: google.protobuf.IDescriptorProto[]; - /** EnumOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** DescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** DescriptorProto extensionRange. */ + public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; + + /** DescriptorProto oneofDecl. */ + public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + + /** DescriptorProto options. */ + public options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange. */ + public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + + /** DescriptorProto reservedName. */ + public reservedName: string[]; + + /** DescriptorProto visibility. */ + public visibility: google.protobuf.SymbolVisibility; /** - * Creates a new EnumOptions instance using the specified properties. + * Creates a new DescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns EnumOptions instance + * @returns DescriptorProto instance */ - public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; + public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @param message EnumOptions message or plain object to encode + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumOptions message from the specified reader or buffer. + * Decodes a DescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnumOptions + * @returns DescriptorProto * @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): google.protobuf.EnumOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto; /** - * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnumOptions + * @returns DescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; /** - * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. - * @param message EnumOptions + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @param message DescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumOptions to JSON. + * Converts this DescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EnumOptions + * Gets the default type url for DescriptorProto * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EnumValueOptions. */ - interface IEnumValueOptions { + namespace DescriptorProto { - /** EnumValueOptions deprecated */ - deprecated?: (boolean|null); + /** Properties of an ExtensionRange. */ + interface IExtensionRange { - /** EnumValueOptions features */ - features?: (google.protobuf.IFeatureSet|null); + /** ExtensionRange start */ + start?: (number|null); - /** EnumValueOptions debugRedact */ - debugRedact?: (boolean|null); + /** ExtensionRange end */ + end?: (number|null); - /** EnumValueOptions featureSupport */ - featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null); + /** ExtensionRange options */ + options?: (google.protobuf.IExtensionRangeOptions|null); + } - /** EnumValueOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } + /** Represents an ExtensionRange. */ + class ExtensionRange implements IExtensionRange { - /** Represents an EnumValueOptions. */ - class EnumValueOptions implements IEnumValueOptions { + /** + * Constructs a new ExtensionRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); - /** - * Constructs a new EnumValueOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IEnumValueOptions); + /** ExtensionRange start. */ + public start: number; - /** EnumValueOptions deprecated. */ - public deprecated: boolean; + /** ExtensionRange end. */ + public end: number; - /** EnumValueOptions features. */ - public features?: (google.protobuf.IFeatureSet|null); + /** ExtensionRange options. */ + public options?: (google.protobuf.IExtensionRangeOptions|null); - /** EnumValueOptions debugRedact. */ - public debugRedact: boolean; + /** + * Creates a new ExtensionRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; - /** EnumValueOptions featureSupport. */ - public featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null); + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; - /** EnumValueOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRange + * @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): google.protobuf.DescriptorProto.ExtensionRange; - /** - * Creates a new EnumValueOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumValueOptions instance - */ - public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; - /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @param message EnumValueOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @param message ExtensionRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes an EnumValueOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumValueOptions - * @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): google.protobuf.EnumValueOptions; + /** + * Converts this ExtensionRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EnumValueOptions - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; + /** + * Gets the default type url for ExtensionRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. - * @param message EnumValueOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a ReservedRange. */ + interface IReservedRange { - /** - * Converts this EnumValueOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ReservedRange start */ + start?: (number|null); - /** - * Gets the default type url for EnumValueOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** ReservedRange end */ + end?: (number|null); + } + + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { + + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + + /** ReservedRange start. */ + public start: number; + + /** ReservedRange end. */ + public end: number; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservedRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservedRange + * @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): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @param message ReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservedRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a ServiceOptions. */ - interface IServiceOptions { + /** Properties of an ExtensionRangeOptions. */ + interface IExtensionRangeOptions { - /** ServiceOptions features */ + /** ExtensionRangeOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** ExtensionRangeOptions declaration */ + declaration?: (google.protobuf.ExtensionRangeOptions.IDeclaration[]|null); + + /** ExtensionRangeOptions features */ features?: (google.protobuf.IFeatureSet|null); - /** ServiceOptions deprecated */ - deprecated?: (boolean|null); - - /** ServiceOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** ExtensionRangeOptions verification */ + verification?: (google.protobuf.ExtensionRangeOptions.VerificationState|null); } - /** Represents a ServiceOptions. */ - class ServiceOptions implements IServiceOptions { + /** Represents an ExtensionRangeOptions. */ + class ExtensionRangeOptions implements IExtensionRangeOptions { /** - * Constructs a new ServiceOptions. + * Constructs a new ExtensionRangeOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IServiceOptions); + constructor(properties?: google.protobuf.IExtensionRangeOptions); - /** ServiceOptions features. */ - public features?: (google.protobuf.IFeatureSet|null); + /** ExtensionRangeOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - /** ServiceOptions deprecated. */ - public deprecated: boolean; + /** ExtensionRangeOptions declaration. */ + public declaration: google.protobuf.ExtensionRangeOptions.IDeclaration[]; - /** ServiceOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** ExtensionRangeOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); + + /** ExtensionRangeOptions verification. */ + public verification: google.protobuf.ExtensionRangeOptions.VerificationState; /** - * Creates a new ServiceOptions instance using the specified properties. + * Creates a new ExtensionRangeOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceOptions instance + * @returns ExtensionRangeOptions instance */ - public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; + public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @param message ServiceOptions message or plain object to encode + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceOptions message from the specified reader or buffer. + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceOptions + * @returns ExtensionRangeOptions * @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): google.protobuf.ServiceOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions; /** - * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceOptions + * @returns ExtensionRangeOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; /** - * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. - * @param message ServiceOptions + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @param message ExtensionRangeOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceOptions to JSON. + * Converts this ExtensionRangeOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ServiceOptions + * Gets the default type url for ExtensionRangeOptions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MethodOptions. */ - interface IMethodOptions { + namespace ExtensionRangeOptions { - /** MethodOptions deprecated */ - deprecated?: (boolean|null); + /** Properties of a Declaration. */ + interface IDeclaration { - /** MethodOptions idempotencyLevel */ - idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|null); + /** Declaration number */ + number?: (number|null); - /** MethodOptions features */ - features?: (google.protobuf.IFeatureSet|null); + /** Declaration fullName */ + fullName?: (string|null); - /** MethodOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** Declaration type */ + type?: (string|null); - /** MethodOptions .google.api.http */ - ".google.api.http"?: (google.api.IHttpRule|null); - } + /** Declaration reserved */ + reserved?: (boolean|null); - /** Represents a MethodOptions. */ - class MethodOptions implements IMethodOptions { + /** Declaration repeated */ + repeated?: (boolean|null); + } - /** - * Constructs a new MethodOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IMethodOptions); + /** Represents a Declaration. */ + class Declaration implements IDeclaration { - /** MethodOptions deprecated. */ - public deprecated: boolean; + /** + * Constructs a new Declaration. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration); - /** MethodOptions idempotencyLevel. */ - public idempotencyLevel: google.protobuf.MethodOptions.IdempotencyLevel; + /** Declaration number. */ + public number: number; - /** MethodOptions features. */ - public features?: (google.protobuf.IFeatureSet|null); + /** Declaration fullName. */ + public fullName: string; - /** MethodOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** Declaration type. */ + public type: string; - /** - * Creates a new MethodOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns MethodOptions instance - */ - public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; + /** Declaration reserved. */ + public reserved: boolean; - /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @param message MethodOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** Declaration repeated. */ + public repeated: boolean; - /** - * Decodes a MethodOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MethodOptions - * @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): google.protobuf.MethodOptions; + /** + * Creates a new Declaration instance using the specified properties. + * @param [properties] Properties to set + * @returns Declaration instance + */ + public static create(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration): google.protobuf.ExtensionRangeOptions.Declaration; - /** - * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MethodOptions - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; + /** + * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. + * @param message Declaration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. - * @param message MethodOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a Declaration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Declaration + * @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): google.protobuf.ExtensionRangeOptions.Declaration; - /** - * Converts this MethodOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a Declaration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Declaration + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions.Declaration; - /** - * Gets the default type url for MethodOptions - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from a Declaration message. Also converts values to other types if specified. + * @param message Declaration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ExtensionRangeOptions.Declaration, options?: $protobuf.IConversionOptions): { [k: string]: any }; - namespace MethodOptions { + /** + * Converts this Declaration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** IdempotencyLevel enum. */ - enum IdempotencyLevel { - IDEMPOTENCY_UNKNOWN = 0, - NO_SIDE_EFFECTS = 1, - IDEMPOTENT = 2 + /** + * Gets the default type url for Declaration + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** VerificationState enum. */ + enum VerificationState { + DECLARATION = 0, + UNVERIFIED = 1 } } - /** Properties of an UninterpretedOption. */ - interface IUninterpretedOption { + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { - /** UninterpretedOption name */ - name?: (google.protobuf.UninterpretedOption.INamePart[]|null); + /** FieldDescriptorProto name */ + name?: (string|null); - /** UninterpretedOption identifierValue */ - identifierValue?: (string|null); + /** FieldDescriptorProto number */ + number?: (number|null); - /** UninterpretedOption positiveIntValue */ - positiveIntValue?: (number|null); + /** FieldDescriptorProto label */ + label?: (google.protobuf.FieldDescriptorProto.Label|null); + + /** FieldDescriptorProto type */ + type?: (google.protobuf.FieldDescriptorProto.Type|null); + + /** FieldDescriptorProto typeName */ + typeName?: (string|null); + + /** FieldDescriptorProto extendee */ + extendee?: (string|null); + + /** FieldDescriptorProto defaultValue */ + defaultValue?: (string|null); - /** UninterpretedOption negativeIntValue */ - negativeIntValue?: (number|null); + /** FieldDescriptorProto oneofIndex */ + oneofIndex?: (number|null); - /** UninterpretedOption doubleValue */ - doubleValue?: (number|null); + /** FieldDescriptorProto jsonName */ + jsonName?: (string|null); - /** UninterpretedOption stringValue */ - stringValue?: (Uint8Array|null); + /** FieldDescriptorProto options */ + options?: (google.protobuf.IFieldOptions|null); - /** UninterpretedOption aggregateValue */ - aggregateValue?: (string|null); + /** FieldDescriptorProto proto3Optional */ + proto3Optional?: (boolean|null); } - /** Represents an UninterpretedOption. */ - class UninterpretedOption implements IUninterpretedOption { + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { /** - * Constructs a new UninterpretedOption. + * Constructs a new FieldDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IUninterpretedOption); + constructor(properties?: google.protobuf.IFieldDescriptorProto); - /** UninterpretedOption name. */ - public name: google.protobuf.UninterpretedOption.INamePart[]; + /** FieldDescriptorProto name. */ + public name: string; - /** UninterpretedOption identifierValue. */ - public identifierValue: string; + /** FieldDescriptorProto number. */ + public number: number; - /** UninterpretedOption positiveIntValue. */ - public positiveIntValue: number; + /** FieldDescriptorProto label. */ + public label: google.protobuf.FieldDescriptorProto.Label; - /** UninterpretedOption negativeIntValue. */ - public negativeIntValue: number; + /** FieldDescriptorProto type. */ + public type: google.protobuf.FieldDescriptorProto.Type; - /** UninterpretedOption doubleValue. */ - public doubleValue: number; + /** FieldDescriptorProto typeName. */ + public typeName: string; - /** UninterpretedOption stringValue. */ - public stringValue: Uint8Array; + /** FieldDescriptorProto extendee. */ + public extendee: string; - /** UninterpretedOption aggregateValue. */ - public aggregateValue: string; + /** FieldDescriptorProto defaultValue. */ + public defaultValue: string; + + /** FieldDescriptorProto oneofIndex. */ + public oneofIndex: number; + + /** FieldDescriptorProto jsonName. */ + public jsonName: string; + + /** FieldDescriptorProto options. */ + public options?: (google.protobuf.IFieldOptions|null); + + /** FieldDescriptorProto proto3Optional. */ + public proto3Optional: boolean; /** - * Creates a new UninterpretedOption instance using the specified properties. + * Creates a new FieldDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns UninterpretedOption instance + * @returns FieldDescriptorProto instance */ - public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; + public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @param message UninterpretedOption message or plain object to encode + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UninterpretedOption message from the specified reader or buffer. + * Decodes a FieldDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UninterpretedOption + * @returns FieldDescriptorProto * @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): google.protobuf.UninterpretedOption; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; /** - * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UninterpretedOption + * @returns FieldDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; /** - * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. - * @param message UninterpretedOption + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @param message FieldDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UninterpretedOption to JSON. + * Converts this FieldDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UninterpretedOption + * Gets the default type url for FieldDescriptorProto * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace UninterpretedOption { - - /** Properties of a NamePart. */ - interface INamePart { - - /** NamePart namePart */ - namePart: string; + namespace FieldDescriptorProto { - /** NamePart isExtension */ - isExtension: boolean; + /** Type enum. */ + enum Type { + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + TYPE_SINT32 = 17, + TYPE_SINT64 = 18 } - /** Represents a NamePart. */ - class NamePart implements INamePart { - - /** - * Constructs a new NamePart. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.UninterpretedOption.INamePart); - - /** NamePart namePart. */ - public namePart: string; - - /** NamePart isExtension. */ - public isExtension: boolean; - - /** - * Creates a new NamePart instance using the specified properties. - * @param [properties] Properties to set - * @returns NamePart instance - */ - public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; - - /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @param message NamePart message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamePart message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamePart - * @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): google.protobuf.UninterpretedOption.NamePart; - - /** - * Creates a NamePart message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NamePart - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; - - /** - * Creates a plain object from a NamePart message. Also converts values to other types if specified. - * @param message NamePart - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NamePart to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for NamePart - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REPEATED = 3, + LABEL_REQUIRED = 2 } } - /** Properties of a FeatureSet. */ - interface IFeatureSet { - - /** FeatureSet fieldPresence */ - fieldPresence?: (google.protobuf.FeatureSet.FieldPresence|null); - - /** FeatureSet enumType */ - enumType?: (google.protobuf.FeatureSet.EnumType|null); - - /** FeatureSet repeatedFieldEncoding */ - repeatedFieldEncoding?: (google.protobuf.FeatureSet.RepeatedFieldEncoding|null); - - /** FeatureSet utf8Validation */ - utf8Validation?: (google.protobuf.FeatureSet.Utf8Validation|null); - - /** FeatureSet messageEncoding */ - messageEncoding?: (google.protobuf.FeatureSet.MessageEncoding|null); - - /** FeatureSet jsonFormat */ - jsonFormat?: (google.protobuf.FeatureSet.JsonFormat|null); + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { - /** FeatureSet enforceNamingStyle */ - enforceNamingStyle?: (google.protobuf.FeatureSet.EnforceNamingStyle|null); + /** OneofDescriptorProto name */ + name?: (string|null); - /** FeatureSet defaultSymbolVisibility */ - defaultSymbolVisibility?: (google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|null); + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); } - /** Represents a FeatureSet. */ - class FeatureSet implements IFeatureSet { + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { /** - * Constructs a new FeatureSet. + * Constructs a new OneofDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFeatureSet); - - /** FeatureSet fieldPresence. */ - public fieldPresence: google.protobuf.FeatureSet.FieldPresence; - - /** FeatureSet enumType. */ - public enumType: google.protobuf.FeatureSet.EnumType; - - /** FeatureSet repeatedFieldEncoding. */ - public repeatedFieldEncoding: google.protobuf.FeatureSet.RepeatedFieldEncoding; - - /** FeatureSet utf8Validation. */ - public utf8Validation: google.protobuf.FeatureSet.Utf8Validation; - - /** FeatureSet messageEncoding. */ - public messageEncoding: google.protobuf.FeatureSet.MessageEncoding; - - /** FeatureSet jsonFormat. */ - public jsonFormat: google.protobuf.FeatureSet.JsonFormat; + constructor(properties?: google.protobuf.IOneofDescriptorProto); - /** FeatureSet enforceNamingStyle. */ - public enforceNamingStyle: google.protobuf.FeatureSet.EnforceNamingStyle; + /** OneofDescriptorProto name. */ + public name: string; - /** FeatureSet defaultSymbolVisibility. */ - public defaultSymbolVisibility: google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility; + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|null); /** - * Creates a new FeatureSet instance using the specified properties. + * Creates a new OneofDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureSet instance + * @returns OneofDescriptorProto instance */ - public static create(properties?: google.protobuf.IFeatureSet): google.protobuf.FeatureSet; + public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; /** - * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. - * @param message FeatureSet message or plain object to encode + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureSet message from the specified reader or buffer. + * Decodes an OneofDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureSet + * @returns OneofDescriptorProto * @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): google.protobuf.FeatureSet; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; /** - * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types. + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureSet + * @returns OneofDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet; + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; /** - * Creates a plain object from a FeatureSet message. Also converts values to other types if specified. - * @param message FeatureSet + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @param message OneofDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FeatureSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureSet to JSON. + * Converts this OneofDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeatureSet + * Gets the default type url for OneofDescriptorProto * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace FeatureSet { - - /** FieldPresence enum. */ - enum FieldPresence { - FIELD_PRESENCE_UNKNOWN = 0, - EXPLICIT = 1, - IMPLICIT = 2, - LEGACY_REQUIRED = 3 - } - - /** EnumType enum. */ - enum EnumType { - ENUM_TYPE_UNKNOWN = 0, - OPEN = 1, - CLOSED = 2 - } - - /** RepeatedFieldEncoding enum. */ - enum RepeatedFieldEncoding { - REPEATED_FIELD_ENCODING_UNKNOWN = 0, - PACKED = 1, - EXPANDED = 2 - } - - /** Utf8Validation enum. */ - enum Utf8Validation { - UTF8_VALIDATION_UNKNOWN = 0, - VERIFY = 2, - NONE = 3 - } - - /** MessageEncoding enum. */ - enum MessageEncoding { - MESSAGE_ENCODING_UNKNOWN = 0, - LENGTH_PREFIXED = 1, - DELIMITED = 2 - } - - /** JsonFormat enum. */ - enum JsonFormat { - JSON_FORMAT_UNKNOWN = 0, - ALLOW = 1, - LEGACY_BEST_EFFORT = 2 - } - - /** EnforceNamingStyle enum. */ - enum EnforceNamingStyle { - ENFORCE_NAMING_STYLE_UNKNOWN = 0, - STYLE2024 = 1, - STYLE_LEGACY = 2 - } - - /** Properties of a VisibilityFeature. */ - interface IVisibilityFeature { - } - - /** Represents a VisibilityFeature. */ - class VisibilityFeature implements IVisibilityFeature { - - /** - * Constructs a new VisibilityFeature. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.FeatureSet.IVisibilityFeature); - - /** - * Creates a new VisibilityFeature instance using the specified properties. - * @param [properties] Properties to set - * @returns VisibilityFeature instance - */ - public static create(properties?: google.protobuf.FeatureSet.IVisibilityFeature): google.protobuf.FeatureSet.VisibilityFeature; - - /** - * Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages. - * @param message VisibilityFeature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.FeatureSet.IVisibilityFeature, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VisibilityFeature message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VisibilityFeature - * @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): google.protobuf.FeatureSet.VisibilityFeature; - - /** - * Creates a VisibilityFeature message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VisibilityFeature - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet.VisibilityFeature; - - /** - * Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified. - * @param message VisibilityFeature - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FeatureSet.VisibilityFeature, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VisibilityFeature to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VisibilityFeature - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { - namespace VisibilityFeature { + /** EnumDescriptorProto name */ + name?: (string|null); - /** DefaultSymbolVisibility enum. */ - enum DefaultSymbolVisibility { - DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0, - EXPORT_ALL = 1, - EXPORT_TOP_LEVEL = 2, - LOCAL_ALL = 3, - STRICT = 4 - } - } - } + /** EnumDescriptorProto value */ + value?: (google.protobuf.IEnumValueDescriptorProto[]|null); - /** Properties of a FeatureSetDefaults. */ - interface IFeatureSetDefaults { + /** EnumDescriptorProto options */ + options?: (google.protobuf.IEnumOptions|null); - /** FeatureSetDefaults defaults */ - defaults?: (google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]|null); + /** EnumDescriptorProto reservedRange */ + reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null); - /** FeatureSetDefaults minimumEdition */ - minimumEdition?: (google.protobuf.Edition|null); + /** EnumDescriptorProto reservedName */ + reservedName?: (string[]|null); - /** FeatureSetDefaults maximumEdition */ - maximumEdition?: (google.protobuf.Edition|null); + /** EnumDescriptorProto visibility */ + visibility?: (google.protobuf.SymbolVisibility|null); } - /** Represents a FeatureSetDefaults. */ - class FeatureSetDefaults implements IFeatureSetDefaults { + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { /** - * Constructs a new FeatureSetDefaults. + * Constructs a new EnumDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFeatureSetDefaults); + constructor(properties?: google.protobuf.IEnumDescriptorProto); - /** FeatureSetDefaults defaults. */ - public defaults: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]; + /** EnumDescriptorProto name. */ + public name: string; - /** FeatureSetDefaults minimumEdition. */ - public minimumEdition: google.protobuf.Edition; + /** EnumDescriptorProto value. */ + public value: google.protobuf.IEnumValueDescriptorProto[]; - /** FeatureSetDefaults maximumEdition. */ - public maximumEdition: google.protobuf.Edition; + /** EnumDescriptorProto options. */ + public options?: (google.protobuf.IEnumOptions|null); + + /** EnumDescriptorProto reservedRange. */ + public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[]; + + /** EnumDescriptorProto reservedName. */ + public reservedName: string[]; + + /** EnumDescriptorProto visibility. */ + public visibility: google.protobuf.SymbolVisibility; /** - * Creates a new FeatureSetDefaults instance using the specified properties. + * Creates a new EnumDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureSetDefaults instance + * @returns EnumDescriptorProto instance */ - public static create(properties?: google.protobuf.IFeatureSetDefaults): google.protobuf.FeatureSetDefaults; + public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; /** - * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. - * @param message FeatureSetDefaults message or plain object to encode + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureSetDefaults message from the specified reader or buffer. + * Decodes an EnumDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureSetDefaults + * @returns EnumDescriptorProto * @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): google.protobuf.FeatureSetDefaults; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; /** - * Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types. + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureSetDefaults + * @returns EnumDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; /** - * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified. - * @param message FeatureSetDefaults + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @param message EnumDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FeatureSetDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureSetDefaults to JSON. + * Converts this EnumDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeatureSetDefaults + * Gets the default type url for EnumDescriptorProto * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace FeatureSetDefaults { - - /** Properties of a FeatureSetEditionDefault. */ - interface IFeatureSetEditionDefault { + namespace EnumDescriptorProto { - /** FeatureSetEditionDefault edition */ - edition?: (google.protobuf.Edition|null); + /** Properties of an EnumReservedRange. */ + interface IEnumReservedRange { - /** FeatureSetEditionDefault overridableFeatures */ - overridableFeatures?: (google.protobuf.IFeatureSet|null); + /** EnumReservedRange start */ + start?: (number|null); - /** FeatureSetEditionDefault fixedFeatures */ - fixedFeatures?: (google.protobuf.IFeatureSet|null); + /** EnumReservedRange end */ + end?: (number|null); } - /** Represents a FeatureSetEditionDefault. */ - class FeatureSetEditionDefault implements IFeatureSetEditionDefault { + /** Represents an EnumReservedRange. */ + class EnumReservedRange implements IEnumReservedRange { /** - * Constructs a new FeatureSetEditionDefault. + * Constructs a new EnumReservedRange. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault); - - /** FeatureSetEditionDefault edition. */ - public edition: google.protobuf.Edition; + constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange); - /** FeatureSetEditionDefault overridableFeatures. */ - public overridableFeatures?: (google.protobuf.IFeatureSet|null); + /** EnumReservedRange start. */ + public start: number; - /** FeatureSetEditionDefault fixedFeatures. */ - public fixedFeatures?: (google.protobuf.IFeatureSet|null); + /** EnumReservedRange end. */ + public end: number; /** - * Creates a new FeatureSetEditionDefault instance using the specified properties. + * Creates a new EnumReservedRange instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureSetEditionDefault instance + * @returns EnumReservedRange instance */ - public static create(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault; + public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange; /** - * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. - * @param message FeatureSetEditionDefault message or plain object to encode + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureSetEditionDefault message from the specified reader or buffer. + * Decodes an EnumReservedRange message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureSetEditionDefault + * @returns EnumReservedRange * @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): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange; /** - * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types. + * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureSetEditionDefault + * @returns EnumReservedRange */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange; /** - * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified. - * @param message FeatureSetEditionDefault + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @param message EnumReservedRange * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureSetEditionDefault to JSON. + * Converts this EnumReservedRange to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeatureSetEditionDefault + * Gets the default type url for EnumReservedRange * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -80933,10347 +82122,10633 @@ export namespace google { } } - /** Properties of a SourceCodeInfo. */ - interface ISourceCodeInfo { + /** Properties of an EnumValueDescriptorProto. */ + interface IEnumValueDescriptorProto { - /** SourceCodeInfo location */ - location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + /** EnumValueDescriptorProto name */ + name?: (string|null); + + /** EnumValueDescriptorProto number */ + number?: (number|null); + + /** EnumValueDescriptorProto options */ + options?: (google.protobuf.IEnumValueOptions|null); } - /** Represents a SourceCodeInfo. */ - class SourceCodeInfo implements ISourceCodeInfo { + /** Represents an EnumValueDescriptorProto. */ + class EnumValueDescriptorProto implements IEnumValueDescriptorProto { /** - * Constructs a new SourceCodeInfo. + * Constructs a new EnumValueDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.ISourceCodeInfo); + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); - /** SourceCodeInfo location. */ - public location: google.protobuf.SourceCodeInfo.ILocation[]; + /** EnumValueDescriptorProto name. */ + public name: string; + + /** EnumValueDescriptorProto number. */ + public number: number; + + /** EnumValueDescriptorProto options. */ + public options?: (google.protobuf.IEnumValueOptions|null); /** - * Creates a new SourceCodeInfo instance using the specified properties. + * Creates a new EnumValueDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns SourceCodeInfo instance + * @returns EnumValueDescriptorProto instance */ - public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; + public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @param message SourceCodeInfo message or plain object to encode + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SourceCodeInfo + * @returns EnumValueDescriptorProto * @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): google.protobuf.SourceCodeInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto; /** - * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SourceCodeInfo + * @returns EnumValueDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; /** - * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. - * @param message SourceCodeInfo + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @param message EnumValueDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SourceCodeInfo to JSON. + * Converts this EnumValueDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SourceCodeInfo + * Gets the default type url for EnumValueDescriptorProto * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace SourceCodeInfo { - - /** Properties of a Location. */ - interface ILocation { + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { - /** Location path */ - path?: (number[]|null); + /** ServiceDescriptorProto name */ + name?: (string|null); - /** Location span */ - span?: (number[]|null); + /** ServiceDescriptorProto method */ + method?: (google.protobuf.IMethodDescriptorProto[]|null); - /** Location leadingComments */ - leadingComments?: (string|null); + /** ServiceDescriptorProto options */ + options?: (google.protobuf.IServiceOptions|null); + } - /** Location trailingComments */ - trailingComments?: (string|null); + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { - /** Location leadingDetachedComments */ - leadingDetachedComments?: (string[]|null); - } + /** + * Constructs a new ServiceDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceDescriptorProto); - /** Represents a Location. */ - class Location implements ILocation { + /** ServiceDescriptorProto name. */ + public name: string; - /** - * Constructs a new Location. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; - /** Location path. */ - public path: number[]; + /** ServiceDescriptorProto options. */ + public options?: (google.protobuf.IServiceOptions|null); - /** Location span. */ - public span: number[]; + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceDescriptorProto instance + */ + public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; - /** Location leadingComments. */ - public leadingComments: string; + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** Location trailingComments. */ - public trailingComments: string; + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceDescriptorProto + * @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): google.protobuf.ServiceDescriptorProto; - /** Location leadingDetachedComments. */ - public leadingDetachedComments: string[]; + /** + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; - /** - * Creates a new Location instance using the specified properties. - * @param [properties] Properties to set - * @returns Location instance - */ - public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @param message ServiceDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @param message Location message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ServiceDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a Location message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Location - * @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): google.protobuf.SourceCodeInfo.Location; + /** + * Gets the default type url for ServiceDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a Location message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Location - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { - /** - * Creates a plain object from a Location message. Also converts values to other types if specified. - * @param message Location - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** MethodDescriptorProto name */ + name?: (string|null); - /** - * Converts this Location to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** MethodDescriptorProto inputType */ + inputType?: (string|null); - /** - * Gets the default type url for Location - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** MethodDescriptorProto outputType */ + outputType?: (string|null); - /** Properties of a GeneratedCodeInfo. */ - interface IGeneratedCodeInfo { + /** MethodDescriptorProto options */ + options?: (google.protobuf.IMethodOptions|null); - /** GeneratedCodeInfo annotation */ - annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + /** MethodDescriptorProto clientStreaming */ + clientStreaming?: (boolean|null); + + /** MethodDescriptorProto serverStreaming */ + serverStreaming?: (boolean|null); } - /** Represents a GeneratedCodeInfo. */ - class GeneratedCodeInfo implements IGeneratedCodeInfo { + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { /** - * Constructs a new GeneratedCodeInfo. + * Constructs a new MethodDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IGeneratedCodeInfo); + constructor(properties?: google.protobuf.IMethodDescriptorProto); - /** GeneratedCodeInfo annotation. */ - public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + /** MethodDescriptorProto name. */ + public name: string; + + /** MethodDescriptorProto inputType. */ + public inputType: string; + + /** MethodDescriptorProto outputType. */ + public outputType: string; + + /** MethodDescriptorProto options. */ + public options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming. */ + public clientStreaming: boolean; + + /** MethodDescriptorProto serverStreaming. */ + public serverStreaming: boolean; /** - * Creates a new GeneratedCodeInfo instance using the specified properties. + * Creates a new MethodDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns GeneratedCodeInfo instance + * @returns MethodDescriptorProto instance */ - public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; + public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @param message GeneratedCodeInfo message or plain object to encode + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * Decodes a MethodDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GeneratedCodeInfo + * @returns MethodDescriptorProto * @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): google.protobuf.GeneratedCodeInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; /** - * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GeneratedCodeInfo + * @returns MethodDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; /** - * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. - * @param message GeneratedCodeInfo + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @param message MethodDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GeneratedCodeInfo to JSON. + * Converts this MethodDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GeneratedCodeInfo + * Gets the default type url for MethodDescriptorProto * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace GeneratedCodeInfo { - - /** Properties of an Annotation. */ - interface IAnnotation { - - /** Annotation path */ - path?: (number[]|null); - - /** Annotation sourceFile */ - sourceFile?: (string|null); - - /** Annotation begin */ - begin?: (number|null); - - /** Annotation end */ - end?: (number|null); - - /** Annotation semantic */ - semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null); - } - - /** Represents an Annotation. */ - class Annotation implements IAnnotation { + /** Properties of a FileOptions. */ + interface IFileOptions { - /** - * Constructs a new Annotation. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + /** FileOptions javaPackage */ + javaPackage?: (string|null); - /** Annotation path. */ - public path: number[]; + /** FileOptions javaOuterClassname */ + javaOuterClassname?: (string|null); - /** Annotation sourceFile. */ - public sourceFile: string; + /** FileOptions javaMultipleFiles */ + javaMultipleFiles?: (boolean|null); - /** Annotation begin. */ - public begin: number; + /** FileOptions javaGenerateEqualsAndHash */ + javaGenerateEqualsAndHash?: (boolean|null); - /** Annotation end. */ - public end: number; + /** FileOptions javaStringCheckUtf8 */ + javaStringCheckUtf8?: (boolean|null); - /** Annotation semantic. */ - public semantic: google.protobuf.GeneratedCodeInfo.Annotation.Semantic; + /** FileOptions optimizeFor */ + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|null); - /** - * Creates a new Annotation instance using the specified properties. - * @param [properties] Properties to set - * @returns Annotation instance - */ - public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; + /** FileOptions goPackage */ + goPackage?: (string|null); - /** - * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @param message Annotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + /** FileOptions ccGenericServices */ + ccGenericServices?: (boolean|null); - /** - * Decodes an Annotation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Annotation - * @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): google.protobuf.GeneratedCodeInfo.Annotation; + /** FileOptions javaGenericServices */ + javaGenericServices?: (boolean|null); - /** - * Creates an Annotation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Annotation - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; + /** FileOptions pyGenericServices */ + pyGenericServices?: (boolean|null); - /** - * Creates a plain object from an Annotation message. Also converts values to other types if specified. - * @param message Annotation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** FileOptions deprecated */ + deprecated?: (boolean|null); - /** - * Converts this Annotation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** FileOptions ccEnableArenas */ + ccEnableArenas?: (boolean|null); - /** - * Gets the default type url for Annotation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** FileOptions objcClassPrefix */ + objcClassPrefix?: (string|null); - namespace Annotation { + /** FileOptions csharpNamespace */ + csharpNamespace?: (string|null); - /** Semantic enum. */ - enum Semantic { - NONE = 0, - SET = 1, - ALIAS = 2 - } - } - } + /** FileOptions swiftPrefix */ + swiftPrefix?: (string|null); - /** SymbolVisibility enum. */ - enum SymbolVisibility { - VISIBILITY_UNSET = 0, - VISIBILITY_LOCAL = 1, - VISIBILITY_EXPORT = 2 - } + /** FileOptions phpClassPrefix */ + phpClassPrefix?: (string|null); - /** Properties of a Struct. */ - interface IStruct { + /** FileOptions phpNamespace */ + phpNamespace?: (string|null); - /** Struct fields */ - fields?: ({ [k: string]: google.protobuf.IValue }|null); - } + /** FileOptions phpMetadataNamespace */ + phpMetadataNamespace?: (string|null); - /** Represents a Struct. */ - class Struct implements IStruct { + /** FileOptions rubyPackage */ + rubyPackage?: (string|null); - /** - * Constructs a new Struct. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IStruct); + /** FileOptions features */ + features?: (google.protobuf.IFeatureSet|null); - /** Struct fields. */ - public fields: { [k: string]: google.protobuf.IValue }; + /** FileOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } - /** - * Creates a new Struct instance using the specified properties. - * @param [properties] Properties to set - * @returns Struct instance - */ - public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct; + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { /** - * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. - * @param message Struct message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Constructs a new FileOptions. + * @param [properties] Properties to set */ - public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; + constructor(properties?: google.protobuf.IFileOptions); - /** - * Decodes a Struct message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Struct - * @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): google.protobuf.Struct; + /** FileOptions javaPackage. */ + public javaPackage: string; - /** - * Creates a Struct message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Struct - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Struct; + /** FileOptions javaOuterClassname. */ + public javaOuterClassname: string; - /** - * Creates a plain object from a Struct message. Also converts values to other types if specified. - * @param message Struct - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** FileOptions javaMultipleFiles. */ + public javaMultipleFiles: boolean; - /** - * Converts this Struct to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** FileOptions javaGenerateEqualsAndHash. */ + public javaGenerateEqualsAndHash: boolean; - /** - * Gets the default type url for Struct - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** FileOptions javaStringCheckUtf8. */ + public javaStringCheckUtf8: boolean; - /** Properties of a Value. */ - interface IValue { + /** FileOptions optimizeFor. */ + public optimizeFor: google.protobuf.FileOptions.OptimizeMode; - /** Value nullValue */ - nullValue?: (google.protobuf.NullValue|null); + /** FileOptions goPackage. */ + public goPackage: string; - /** Value numberValue */ - numberValue?: (number|null); + /** FileOptions ccGenericServices. */ + public ccGenericServices: boolean; - /** Value stringValue */ - stringValue?: (string|null); + /** FileOptions javaGenericServices. */ + public javaGenericServices: boolean; - /** Value boolValue */ - boolValue?: (boolean|null); + /** FileOptions pyGenericServices. */ + public pyGenericServices: boolean; - /** Value structValue */ - structValue?: (google.protobuf.IStruct|null); + /** FileOptions deprecated. */ + public deprecated: boolean; - /** Value listValue */ - listValue?: (google.protobuf.IListValue|null); - } + /** FileOptions ccEnableArenas. */ + public ccEnableArenas: boolean; - /** Represents a Value. */ - class Value implements IValue { + /** FileOptions objcClassPrefix. */ + public objcClassPrefix: string; - /** - * Constructs a new Value. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IValue); + /** FileOptions csharpNamespace. */ + public csharpNamespace: string; - /** Value nullValue. */ - public nullValue?: (google.protobuf.NullValue|null); + /** FileOptions swiftPrefix. */ + public swiftPrefix: string; - /** Value numberValue. */ - public numberValue?: (number|null); + /** FileOptions phpClassPrefix. */ + public phpClassPrefix: string; - /** Value stringValue. */ - public stringValue?: (string|null); + /** FileOptions phpNamespace. */ + public phpNamespace: string; - /** Value boolValue. */ - public boolValue?: (boolean|null); + /** FileOptions phpMetadataNamespace. */ + public phpMetadataNamespace: string; - /** Value structValue. */ - public structValue?: (google.protobuf.IStruct|null); + /** FileOptions rubyPackage. */ + public rubyPackage: string; - /** Value listValue. */ - public listValue?: (google.protobuf.IListValue|null); + /** FileOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); - /** Value kind. */ - public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"); + /** FileOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new Value instance using the specified properties. + * Creates a new FileOptions instance using the specified properties. * @param [properties] Properties to set - * @returns Value instance + * @returns FileOptions instance */ - public static create(properties?: google.protobuf.IValue): google.protobuf.Value; + public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; /** - * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. - * @param message Value message or plain object to encode + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Value message from the specified reader or buffer. + * Decodes a FileOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Value + * @returns FileOptions * @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): google.protobuf.Value; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Value + * @returns FileOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Value; + public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; /** - * Creates a plain object from a Value message. Also converts values to other types if specified. - * @param message Value + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @param message FileOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Value to JSON. + * Converts this FileOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Value + * Gets the default type url for FileOptions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** NullValue enum. */ - enum NullValue { - NULL_VALUE = 0 + namespace FileOptions { + + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3 + } } - /** Properties of a ListValue. */ - interface IListValue { + /** Properties of a MessageOptions. */ + interface IMessageOptions { - /** ListValue values */ - values?: (google.protobuf.IValue[]|null); + /** MessageOptions messageSetWireFormat */ + messageSetWireFormat?: (boolean|null); + + /** MessageOptions noStandardDescriptorAccessor */ + noStandardDescriptorAccessor?: (boolean|null); + + /** MessageOptions deprecated */ + deprecated?: (boolean|null); + + /** MessageOptions mapEntry */ + mapEntry?: (boolean|null); + + /** MessageOptions deprecatedLegacyJsonFieldConflicts */ + deprecatedLegacyJsonFieldConflicts?: (boolean|null); + + /** MessageOptions features */ + features?: (google.protobuf.IFeatureSet|null); + + /** MessageOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } - /** Represents a ListValue. */ - class ListValue implements IListValue { + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { /** - * Constructs a new ListValue. + * Constructs a new MessageOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IListValue); + constructor(properties?: google.protobuf.IMessageOptions); - /** ListValue values. */ - public values: google.protobuf.IValue[]; + /** MessageOptions messageSetWireFormat. */ + public messageSetWireFormat: boolean; + + /** MessageOptions noStandardDescriptorAccessor. */ + public noStandardDescriptorAccessor: boolean; + + /** MessageOptions deprecated. */ + public deprecated: boolean; + + /** MessageOptions mapEntry. */ + public mapEntry: boolean; + + /** MessageOptions deprecatedLegacyJsonFieldConflicts. */ + public deprecatedLegacyJsonFieldConflicts: boolean; + + /** MessageOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); + + /** MessageOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new ListValue instance using the specified properties. + * Creates a new MessageOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ListValue instance + * @returns MessageOptions instance */ - public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue; + public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; /** - * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. - * @param message ListValue message or plain object to encode + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListValue message from the specified reader or buffer. + * Decodes a MessageOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListValue + * @returns MessageOptions * @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): google.protobuf.ListValue; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; /** - * Creates a ListValue message from a plain object. Also converts values to their respective internal types. + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListValue + * @returns MessageOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue; + public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; /** - * Creates a plain object from a ListValue message. Also converts values to other types if specified. - * @param message ListValue + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @param message MessageOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListValue to JSON. + * Converts this MessageOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListValue + * Gets the default type url for MessageOptions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } -} -/** Namespace Router. */ -export namespace Router { + /** Properties of a FieldOptions. */ + interface IFieldOptions { - /** RouterResponseCode enum. */ - enum RouterResponseCode { - RRC_OK = 0, - RRC_GENERAL_ERROR = 1, - RRC_NOT_ALLOWED = 2, - RRC_BAD_REQUEST = 3, - RRC_TIMEOUT = 4, - RRC_BAD_STATE = 5, - RRC_CONTROLLER_DOWN = 6, - RRC_WRONG_INSTANCE = 7, - RRC_NOT_ALLOWED_ENFORCEMENT_NOT_ENABLED = 8, - RRC_NOT_ALLOWED_PAM_CONFIG_FEATURES_NOT_ENABLED = 9 - } + /** FieldOptions ctype */ + ctype?: (google.protobuf.FieldOptions.CType|null); - /** Properties of a RouterResponse. */ - interface IRouterResponse { + /** FieldOptions packed */ + packed?: (boolean|null); - /** RouterResponse responseCode */ - responseCode?: (Router.RouterResponseCode|null); + /** FieldOptions jstype */ + jstype?: (google.protobuf.FieldOptions.JSType|null); - /** RouterResponse errorMessage */ - errorMessage?: (string|null); + /** FieldOptions lazy */ + lazy?: (boolean|null); - /** RouterResponse encryptedPayload */ - encryptedPayload?: (Uint8Array|null); - } + /** FieldOptions unverifiedLazy */ + unverifiedLazy?: (boolean|null); - /** Represents a RouterResponse. */ - class RouterResponse implements IRouterResponse { + /** FieldOptions deprecated */ + deprecated?: (boolean|null); - /** - * Constructs a new RouterResponse. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IRouterResponse); + /** FieldOptions weak */ + weak?: (boolean|null); - /** RouterResponse responseCode. */ - public responseCode: Router.RouterResponseCode; + /** FieldOptions debugRedact */ + debugRedact?: (boolean|null); - /** RouterResponse errorMessage. */ - public errorMessage: string; + /** FieldOptions retention */ + retention?: (google.protobuf.FieldOptions.OptionRetention|null); - /** RouterResponse encryptedPayload. */ - public encryptedPayload: Uint8Array; + /** FieldOptions targets */ + targets?: (google.protobuf.FieldOptions.OptionTargetType[]|null); - /** - * Creates a new RouterResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RouterResponse instance - */ - public static create(properties?: Router.IRouterResponse): Router.RouterResponse; + /** FieldOptions editionDefaults */ + editionDefaults?: (google.protobuf.FieldOptions.IEditionDefault[]|null); - /** - * Encodes the specified RouterResponse message. Does not implicitly {@link Router.RouterResponse.verify|verify} messages. - * @param message RouterResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IRouterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** FieldOptions features */ + features?: (google.protobuf.IFeatureSet|null); - /** - * Decodes a RouterResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RouterResponse - * @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): Router.RouterResponse; + /** FieldOptions featureSupport */ + featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null); - /** - * Creates a RouterResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RouterResponse - */ - public static fromObject(object: { [k: string]: any }): Router.RouterResponse; + /** FieldOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } - /** - * Creates a plain object from a RouterResponse message. Also converts values to other types if specified. - * @param message RouterResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.RouterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { - /** - * Converts this RouterResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new FieldOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldOptions); - /** - * Gets the default type url for RouterResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** FieldOptions ctype. */ + public ctype: google.protobuf.FieldOptions.CType; - /** Properties of a RouterControllerMessage. */ - interface IRouterControllerMessage { + /** FieldOptions packed. */ + public packed: boolean; - /** RouterControllerMessage messageType */ - messageType?: (PAM.ControllerMessageType|null); + /** FieldOptions jstype. */ + public jstype: google.protobuf.FieldOptions.JSType; - /** RouterControllerMessage messageUid */ - messageUid?: (Uint8Array|null); + /** FieldOptions lazy. */ + public lazy: boolean; - /** RouterControllerMessage controllerUid */ - controllerUid?: (Uint8Array|null); + /** FieldOptions unverifiedLazy. */ + public unverifiedLazy: boolean; - /** RouterControllerMessage streamResponse */ - streamResponse?: (boolean|null); + /** FieldOptions deprecated. */ + public deprecated: boolean; - /** RouterControllerMessage payload */ - payload?: (Uint8Array|null); + /** FieldOptions weak. */ + public weak: boolean; - /** RouterControllerMessage timeout */ - timeout?: (number|null); - } + /** FieldOptions debugRedact. */ + public debugRedact: boolean; - /** Represents a RouterControllerMessage. */ - class RouterControllerMessage implements IRouterControllerMessage { + /** FieldOptions retention. */ + public retention: google.protobuf.FieldOptions.OptionRetention; - /** - * Constructs a new RouterControllerMessage. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IRouterControllerMessage); + /** FieldOptions targets. */ + public targets: google.protobuf.FieldOptions.OptionTargetType[]; - /** RouterControllerMessage messageType. */ - public messageType: PAM.ControllerMessageType; + /** FieldOptions editionDefaults. */ + public editionDefaults: google.protobuf.FieldOptions.IEditionDefault[]; - /** RouterControllerMessage messageUid. */ - public messageUid: Uint8Array; + /** FieldOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); - /** RouterControllerMessage controllerUid. */ - public controllerUid: Uint8Array; + /** FieldOptions featureSupport. */ + public featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null); - /** RouterControllerMessage streamResponse. */ - public streamResponse: boolean; + /** FieldOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - /** RouterControllerMessage payload. */ - public payload: Uint8Array; + /** + * Creates a new FieldOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldOptions instance + */ + public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; - /** RouterControllerMessage timeout. */ - public timeout: number; + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new RouterControllerMessage instance using the specified properties. - * @param [properties] Properties to set - * @returns RouterControllerMessage instance - */ - public static create(properties?: Router.IRouterControllerMessage): Router.RouterControllerMessage; + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldOptions + * @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): google.protobuf.FieldOptions; - /** - * Encodes the specified RouterControllerMessage message. Does not implicitly {@link Router.RouterControllerMessage.verify|verify} messages. - * @param message RouterControllerMessage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IRouterControllerMessage, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; + + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @param message FieldOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a RouterControllerMessage message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RouterControllerMessage - * @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): Router.RouterControllerMessage; + /** + * Gets the default type url for FieldOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a RouterControllerMessage message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RouterControllerMessage - */ - public static fromObject(object: { [k: string]: any }): Router.RouterControllerMessage; + namespace FieldOptions { - /** - * Creates a plain object from a RouterControllerMessage message. Also converts values to other types if specified. - * @param message RouterControllerMessage - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.RouterControllerMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2 + } - /** - * Converts this RouterControllerMessage to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** JSType enum. */ + enum JSType { + JS_NORMAL = 0, + JS_STRING = 1, + JS_NUMBER = 2 + } - /** - * Gets the default type url for RouterControllerMessage - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** OptionRetention enum. */ + enum OptionRetention { + RETENTION_UNKNOWN = 0, + RETENTION_RUNTIME = 1, + RETENTION_SOURCE = 2 + } - /** Properties of a RouterUserAuth. */ - interface IRouterUserAuth { + /** OptionTargetType enum. */ + enum OptionTargetType { + TARGET_TYPE_UNKNOWN = 0, + TARGET_TYPE_FILE = 1, + TARGET_TYPE_EXTENSION_RANGE = 2, + TARGET_TYPE_MESSAGE = 3, + TARGET_TYPE_FIELD = 4, + TARGET_TYPE_ONEOF = 5, + TARGET_TYPE_ENUM = 6, + TARGET_TYPE_ENUM_ENTRY = 7, + TARGET_TYPE_SERVICE = 8, + TARGET_TYPE_METHOD = 9 + } - /** RouterUserAuth transmissionKey */ - transmissionKey?: (Uint8Array|null); + /** Properties of an EditionDefault. */ + interface IEditionDefault { - /** RouterUserAuth sessionToken */ - sessionToken?: (Uint8Array|null); + /** EditionDefault edition */ + edition?: (google.protobuf.Edition|null); - /** RouterUserAuth userId */ - userId?: (number|null); + /** EditionDefault value */ + value?: (string|null); + } - /** RouterUserAuth enterpriseUserId */ - enterpriseUserId?: (number|null); + /** Represents an EditionDefault. */ + class EditionDefault implements IEditionDefault { - /** RouterUserAuth deviceName */ - deviceName?: (string|null); + /** + * Constructs a new EditionDefault. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.FieldOptions.IEditionDefault); - /** RouterUserAuth deviceToken */ - deviceToken?: (Uint8Array|null); + /** EditionDefault edition. */ + public edition: google.protobuf.Edition; - /** RouterUserAuth clientVersionId */ - clientVersionId?: (number|null); + /** EditionDefault value. */ + public value: string; - /** RouterUserAuth needUsername */ - needUsername?: (boolean|null); + /** + * Creates a new EditionDefault instance using the specified properties. + * @param [properties] Properties to set + * @returns EditionDefault instance + */ + public static create(properties?: google.protobuf.FieldOptions.IEditionDefault): google.protobuf.FieldOptions.EditionDefault; - /** RouterUserAuth username */ - username?: (string|null); + /** + * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. + * @param message EditionDefault message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer; - /** RouterUserAuth mspEnterpriseId */ - mspEnterpriseId?: (number|null); + /** + * Decodes an EditionDefault message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EditionDefault + * @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): google.protobuf.FieldOptions.EditionDefault; - /** RouterUserAuth isPedmAdmin */ - isPedmAdmin?: (boolean|null); + /** + * Creates an EditionDefault message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EditionDefault + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.EditionDefault; - /** RouterUserAuth mcEnterpriseId */ - mcEnterpriseId?: (number|null); + /** + * Creates a plain object from an EditionDefault message. Also converts values to other types if specified. + * @param message EditionDefault + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldOptions.EditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** RouterUserAuth deviceId */ - deviceId?: (number|null); - } + /** + * Converts this EditionDefault to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a RouterUserAuth. */ - class RouterUserAuth implements IRouterUserAuth { + /** + * Gets the default type url for EditionDefault + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new RouterUserAuth. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IRouterUserAuth); + /** Properties of a FeatureSupport. */ + interface IFeatureSupport { - /** RouterUserAuth transmissionKey. */ - public transmissionKey: Uint8Array; + /** FeatureSupport editionIntroduced */ + editionIntroduced?: (google.protobuf.Edition|null); - /** RouterUserAuth sessionToken. */ - public sessionToken: Uint8Array; + /** FeatureSupport editionDeprecated */ + editionDeprecated?: (google.protobuf.Edition|null); - /** RouterUserAuth userId. */ - public userId: number; + /** FeatureSupport deprecationWarning */ + deprecationWarning?: (string|null); - /** RouterUserAuth enterpriseUserId. */ - public enterpriseUserId: number; + /** FeatureSupport editionRemoved */ + editionRemoved?: (google.protobuf.Edition|null); + } - /** RouterUserAuth deviceName. */ - public deviceName: string; + /** Represents a FeatureSupport. */ + class FeatureSupport implements IFeatureSupport { - /** RouterUserAuth deviceToken. */ - public deviceToken: Uint8Array; + /** + * Constructs a new FeatureSupport. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.FieldOptions.IFeatureSupport); - /** RouterUserAuth clientVersionId. */ - public clientVersionId: number; + /** FeatureSupport editionIntroduced. */ + public editionIntroduced: google.protobuf.Edition; - /** RouterUserAuth needUsername. */ - public needUsername: boolean; + /** FeatureSupport editionDeprecated. */ + public editionDeprecated: google.protobuf.Edition; - /** RouterUserAuth username. */ - public username: string; + /** FeatureSupport deprecationWarning. */ + public deprecationWarning: string; - /** RouterUserAuth mspEnterpriseId. */ - public mspEnterpriseId: number; + /** FeatureSupport editionRemoved. */ + public editionRemoved: google.protobuf.Edition; - /** RouterUserAuth isPedmAdmin. */ - public isPedmAdmin: boolean; + /** + * Creates a new FeatureSupport instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureSupport instance + */ + public static create(properties?: google.protobuf.FieldOptions.IFeatureSupport): google.protobuf.FieldOptions.FeatureSupport; - /** RouterUserAuth mcEnterpriseId. */ - public mcEnterpriseId: number; + /** + * Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages. + * @param message FeatureSupport message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.FieldOptions.IFeatureSupport, writer?: $protobuf.Writer): $protobuf.Writer; - /** RouterUserAuth deviceId. */ - public deviceId?: (number|null); + /** + * Decodes a FeatureSupport message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureSupport + * @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): google.protobuf.FieldOptions.FeatureSupport; + + /** + * Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureSupport + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.FeatureSupport; - /** - * Creates a new RouterUserAuth instance using the specified properties. - * @param [properties] Properties to set - * @returns RouterUserAuth instance - */ - public static create(properties?: Router.IRouterUserAuth): Router.RouterUserAuth; + /** + * Creates a plain object from a FeatureSupport message. Also converts values to other types if specified. + * @param message FeatureSupport + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldOptions.FeatureSupport, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified RouterUserAuth message. Does not implicitly {@link Router.RouterUserAuth.verify|verify} messages. - * @param message RouterUserAuth message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IRouterUserAuth, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this FeatureSupport to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a RouterUserAuth message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RouterUserAuth - * @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): Router.RouterUserAuth; + /** + * Gets the default type url for FeatureSupport + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** - * Creates a RouterUserAuth message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RouterUserAuth - */ - public static fromObject(object: { [k: string]: any }): Router.RouterUserAuth; + /** Properties of an OneofOptions. */ + interface IOneofOptions { - /** - * Creates a plain object from a RouterUserAuth message. Also converts values to other types if specified. - * @param message RouterUserAuth - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.RouterUserAuth, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** OneofOptions features */ + features?: (google.protobuf.IFeatureSet|null); - /** - * Converts this RouterUserAuth to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** OneofOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } - /** - * Gets the default type url for RouterUserAuth - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { - /** Properties of a RouterDeviceAuth. */ - interface IRouterDeviceAuth { + /** + * Constructs a new OneofOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofOptions); - /** RouterDeviceAuth clientId */ - clientId?: (string|null); + /** OneofOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); - /** RouterDeviceAuth clientVersion */ - clientVersion?: (string|null); + /** OneofOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - /** RouterDeviceAuth signature */ - signature?: (Uint8Array|null); + /** + * Creates a new OneofOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofOptions instance + */ + public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; - /** RouterDeviceAuth enterpriseId */ - enterpriseId?: (number|null); + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** RouterDeviceAuth nodeId */ - nodeId?: (number|null); + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofOptions + * @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): google.protobuf.OneofOptions; - /** RouterDeviceAuth deviceName */ - deviceName?: (string|null); + /** + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; - /** RouterDeviceAuth deviceToken */ - deviceToken?: (Uint8Array|null); + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @param message OneofOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** RouterDeviceAuth controllerName */ - controllerName?: (string|null); + /** + * Converts this OneofOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** RouterDeviceAuth controllerUid */ - controllerUid?: (Uint8Array|null); + /** + * Gets the default type url for OneofOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** RouterDeviceAuth ownerUser */ - ownerUser?: (string|null); + /** Properties of an EnumOptions. */ + interface IEnumOptions { - /** RouterDeviceAuth challenge */ - challenge?: (string|null); + /** EnumOptions allowAlias */ + allowAlias?: (boolean|null); - /** RouterDeviceAuth ownerId */ - ownerId?: (number|null); + /** EnumOptions deprecated */ + deprecated?: (boolean|null); - /** RouterDeviceAuth maxInstanceCount */ - maxInstanceCount?: (number|null); - } + /** EnumOptions deprecatedLegacyJsonFieldConflicts */ + deprecatedLegacyJsonFieldConflicts?: (boolean|null); - /** Represents a RouterDeviceAuth. */ - class RouterDeviceAuth implements IRouterDeviceAuth { + /** EnumOptions features */ + features?: (google.protobuf.IFeatureSet|null); - /** - * Constructs a new RouterDeviceAuth. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IRouterDeviceAuth); + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } - /** RouterDeviceAuth clientId. */ - public clientId: string; + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { - /** RouterDeviceAuth clientVersion. */ - public clientVersion: string; + /** + * Constructs a new EnumOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumOptions); - /** RouterDeviceAuth signature. */ - public signature: Uint8Array; + /** EnumOptions allowAlias. */ + public allowAlias: boolean; - /** RouterDeviceAuth enterpriseId. */ - public enterpriseId: number; + /** EnumOptions deprecated. */ + public deprecated: boolean; - /** RouterDeviceAuth nodeId. */ - public nodeId: number; + /** EnumOptions deprecatedLegacyJsonFieldConflicts. */ + public deprecatedLegacyJsonFieldConflicts: boolean; - /** RouterDeviceAuth deviceName. */ - public deviceName: string; + /** EnumOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); - /** RouterDeviceAuth deviceToken. */ - public deviceToken: Uint8Array; + /** EnumOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - /** RouterDeviceAuth controllerName. */ - public controllerName: string; + /** + * Creates a new EnumOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumOptions instance + */ + public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; - /** RouterDeviceAuth controllerUid. */ - public controllerUid: Uint8Array; + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** RouterDeviceAuth ownerUser. */ - public ownerUser: string; + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumOptions + * @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): google.protobuf.EnumOptions; - /** RouterDeviceAuth challenge. */ - public challenge: string; + /** + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; - /** RouterDeviceAuth ownerId. */ - public ownerId: number; + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @param message EnumOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** RouterDeviceAuth maxInstanceCount. */ - public maxInstanceCount: number; + /** + * Converts this EnumOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new RouterDeviceAuth instance using the specified properties. - * @param [properties] Properties to set - * @returns RouterDeviceAuth instance - */ - public static create(properties?: Router.IRouterDeviceAuth): Router.RouterDeviceAuth; + /** + * Gets the default type url for EnumOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified RouterDeviceAuth message. Does not implicitly {@link Router.RouterDeviceAuth.verify|verify} messages. - * @param message RouterDeviceAuth message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IRouterDeviceAuth, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { - /** - * Decodes a RouterDeviceAuth message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RouterDeviceAuth - * @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): Router.RouterDeviceAuth; + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); - /** - * Creates a RouterDeviceAuth message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RouterDeviceAuth - */ - public static fromObject(object: { [k: string]: any }): Router.RouterDeviceAuth; + /** EnumValueOptions features */ + features?: (google.protobuf.IFeatureSet|null); - /** - * Creates a plain object from a RouterDeviceAuth message. Also converts values to other types if specified. - * @param message RouterDeviceAuth - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.RouterDeviceAuth, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** EnumValueOptions debugRedact */ + debugRedact?: (boolean|null); - /** - * Converts this RouterDeviceAuth to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** EnumValueOptions featureSupport */ + featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null); - /** - * Gets the default type url for RouterDeviceAuth - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } - /** Properties of a RouterRecordRotation. */ - interface IRouterRecordRotation { + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { - /** RouterRecordRotation recordUid */ - recordUid?: (Uint8Array|null); + /** + * Constructs a new EnumValueOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueOptions); - /** RouterRecordRotation configurationUid */ - configurationUid?: (Uint8Array|null); + /** EnumValueOptions deprecated. */ + public deprecated: boolean; - /** RouterRecordRotation controllerUid */ - controllerUid?: (Uint8Array|null); + /** EnumValueOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); - /** RouterRecordRotation resourceUid */ - resourceUid?: (Uint8Array|null); + /** EnumValueOptions debugRedact. */ + public debugRedact: boolean; - /** RouterRecordRotation noSchedule */ - noSchedule?: (boolean|null); - } + /** EnumValueOptions featureSupport. */ + public featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null); - /** Represents a RouterRecordRotation. */ - class RouterRecordRotation implements IRouterRecordRotation { + /** EnumValueOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - /** - * Constructs a new RouterRecordRotation. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IRouterRecordRotation); + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueOptions instance + */ + public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; - /** RouterRecordRotation recordUid. */ - public recordUid: Uint8Array; + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** RouterRecordRotation configurationUid. */ - public configurationUid: Uint8Array; + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueOptions + * @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): google.protobuf.EnumValueOptions; - /** RouterRecordRotation controllerUid. */ - public controllerUid: Uint8Array; + /** + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; - /** RouterRecordRotation resourceUid. */ - public resourceUid: Uint8Array; + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @param message EnumValueOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** RouterRecordRotation noSchedule. */ - public noSchedule: boolean; + /** + * Converts this EnumValueOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new RouterRecordRotation instance using the specified properties. - * @param [properties] Properties to set - * @returns RouterRecordRotation instance - */ - public static create(properties?: Router.IRouterRecordRotation): Router.RouterRecordRotation; + /** + * Gets the default type url for EnumValueOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified RouterRecordRotation message. Does not implicitly {@link Router.RouterRecordRotation.verify|verify} messages. - * @param message RouterRecordRotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IRouterRecordRotation, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a ServiceOptions. */ + interface IServiceOptions { - /** - * Decodes a RouterRecordRotation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RouterRecordRotation - * @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): Router.RouterRecordRotation; + /** ServiceOptions features */ + features?: (google.protobuf.IFeatureSet|null); - /** - * Creates a RouterRecordRotation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RouterRecordRotation - */ - public static fromObject(object: { [k: string]: any }): Router.RouterRecordRotation; + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); - /** - * Creates a plain object from a RouterRecordRotation message. Also converts values to other types if specified. - * @param message RouterRecordRotation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.RouterRecordRotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ServiceOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } - /** - * Converts this RouterRecordRotation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { - /** - * Gets the default type url for RouterRecordRotation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new ServiceOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceOptions); - /** Properties of a RouterRecordRotationsRequest. */ - interface IRouterRecordRotationsRequest { + /** ServiceOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); - /** RouterRecordRotationsRequest enterpriseId */ - enterpriseId?: (number|null); + /** ServiceOptions deprecated. */ + public deprecated: boolean; - /** RouterRecordRotationsRequest records */ - records?: (Uint8Array[]|null); - } + /** ServiceOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - /** Represents a RouterRecordRotationsRequest. */ - class RouterRecordRotationsRequest implements IRouterRecordRotationsRequest { + /** + * Creates a new ServiceOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceOptions instance + */ + public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; - /** - * Constructs a new RouterRecordRotationsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IRouterRecordRotationsRequest); + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** RouterRecordRotationsRequest enterpriseId. */ - public enterpriseId: number; + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceOptions + * @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): google.protobuf.ServiceOptions; - /** RouterRecordRotationsRequest records. */ - public records: Uint8Array[]; + /** + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; - /** - * Creates a new RouterRecordRotationsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RouterRecordRotationsRequest instance - */ - public static create(properties?: Router.IRouterRecordRotationsRequest): Router.RouterRecordRotationsRequest; + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @param message ServiceOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified RouterRecordRotationsRequest message. Does not implicitly {@link Router.RouterRecordRotationsRequest.verify|verify} messages. - * @param message RouterRecordRotationsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IRouterRecordRotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ServiceOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a RouterRecordRotationsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RouterRecordRotationsRequest - * @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): Router.RouterRecordRotationsRequest; + /** + * Gets the default type url for ServiceOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a RouterRecordRotationsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RouterRecordRotationsRequest - */ - public static fromObject(object: { [k: string]: any }): Router.RouterRecordRotationsRequest; + /** Properties of a MethodOptions. */ + interface IMethodOptions { - /** - * Creates a plain object from a RouterRecordRotationsRequest message. Also converts values to other types if specified. - * @param message RouterRecordRotationsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.RouterRecordRotationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** MethodOptions deprecated */ + deprecated?: (boolean|null); - /** - * Converts this RouterRecordRotationsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** MethodOptions idempotencyLevel */ + idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|null); - /** - * Gets the default type url for RouterRecordRotationsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** MethodOptions features */ + features?: (google.protobuf.IFeatureSet|null); - /** Properties of a RouterRecordRotationsResponse. */ - interface IRouterRecordRotationsResponse { + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - /** RouterRecordRotationsResponse rotations */ - rotations?: (Router.IRouterRecordRotation[]|null); + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); + } - /** RouterRecordRotationsResponse hasMore */ - hasMore?: (boolean|null); - } + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { - /** Represents a RouterRecordRotationsResponse. */ - class RouterRecordRotationsResponse implements IRouterRecordRotationsResponse { + /** + * Constructs a new MethodOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodOptions); - /** - * Constructs a new RouterRecordRotationsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IRouterRecordRotationsResponse); + /** MethodOptions deprecated. */ + public deprecated: boolean; - /** RouterRecordRotationsResponse rotations. */ - public rotations: Router.IRouterRecordRotation[]; + /** MethodOptions idempotencyLevel. */ + public idempotencyLevel: google.protobuf.MethodOptions.IdempotencyLevel; - /** RouterRecordRotationsResponse hasMore. */ - public hasMore: boolean; + /** MethodOptions features. */ + public features?: (google.protobuf.IFeatureSet|null); - /** - * Creates a new RouterRecordRotationsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RouterRecordRotationsResponse instance - */ - public static create(properties?: Router.IRouterRecordRotationsResponse): Router.RouterRecordRotationsResponse; + /** MethodOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - /** - * Encodes the specified RouterRecordRotationsResponse message. Does not implicitly {@link Router.RouterRecordRotationsResponse.verify|verify} messages. - * @param message RouterRecordRotationsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IRouterRecordRotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new MethodOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodOptions instance + */ + public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; - /** - * Decodes a RouterRecordRotationsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RouterRecordRotationsResponse - * @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): Router.RouterRecordRotationsResponse; + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a RouterRecordRotationsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RouterRecordRotationsResponse - */ - public static fromObject(object: { [k: string]: any }): Router.RouterRecordRotationsResponse; + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodOptions + * @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): google.protobuf.MethodOptions; - /** - * Creates a plain object from a RouterRecordRotationsResponse message. Also converts values to other types if specified. - * @param message RouterRecordRotationsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.RouterRecordRotationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; - /** - * Converts this RouterRecordRotationsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @param message MethodOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for RouterRecordRotationsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this MethodOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** RouterRotationStatus enum. */ - enum RouterRotationStatus { - RRS_ONLINE = 0, - RRS_NO_ROTATION = 1, - RRS_NO_CONTROLLER = 2, - RRS_CONTROLLER_DOWN = 3 - } + /** + * Gets the default type url for MethodOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a RouterRotationInfo. */ - interface IRouterRotationInfo { + namespace MethodOptions { - /** RouterRotationInfo status */ - status?: (Router.RouterRotationStatus|null); + /** IdempotencyLevel enum. */ + enum IdempotencyLevel { + IDEMPOTENCY_UNKNOWN = 0, + NO_SIDE_EFFECTS = 1, + IDEMPOTENT = 2 + } + } - /** RouterRotationInfo configurationUid */ - configurationUid?: (Uint8Array|null); + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { - /** RouterRotationInfo resourceUid */ - resourceUid?: (Uint8Array|null); + /** UninterpretedOption name */ + name?: (google.protobuf.UninterpretedOption.INamePart[]|null); - /** RouterRotationInfo nodeId */ - nodeId?: (number|null); + /** UninterpretedOption identifierValue */ + identifierValue?: (string|null); - /** RouterRotationInfo controllerUid */ - controllerUid?: (Uint8Array|null); + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: (number|null); - /** RouterRotationInfo controllerName */ - controllerName?: (string|null); + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: (number|null); - /** RouterRotationInfo scriptName */ - scriptName?: (string|null); + /** UninterpretedOption doubleValue */ + doubleValue?: (number|null); - /** RouterRotationInfo pwdComplexity */ - pwdComplexity?: (string|null); + /** UninterpretedOption stringValue */ + stringValue?: (Uint8Array|null); - /** RouterRotationInfo disabled */ - disabled?: (boolean|null); - } + /** UninterpretedOption aggregateValue */ + aggregateValue?: (string|null); + } - /** Represents a RouterRotationInfo. */ - class RouterRotationInfo implements IRouterRotationInfo { + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { - /** - * Constructs a new RouterRotationInfo. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IRouterRotationInfo); + /** + * Constructs a new UninterpretedOption. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUninterpretedOption); - /** RouterRotationInfo status. */ - public status: Router.RouterRotationStatus; + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; - /** RouterRotationInfo configurationUid. */ - public configurationUid: Uint8Array; + /** UninterpretedOption identifierValue. */ + public identifierValue: string; - /** RouterRotationInfo resourceUid. */ - public resourceUid: Uint8Array; + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: number; - /** RouterRotationInfo nodeId. */ - public nodeId: number; + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: number; - /** RouterRotationInfo controllerUid. */ - public controllerUid: Uint8Array; + /** UninterpretedOption doubleValue. */ + public doubleValue: number; - /** RouterRotationInfo controllerName. */ - public controllerName: string; + /** UninterpretedOption stringValue. */ + public stringValue: Uint8Array; - /** RouterRotationInfo scriptName. */ - public scriptName: string; + /** UninterpretedOption aggregateValue. */ + public aggregateValue: string; - /** RouterRotationInfo pwdComplexity. */ - public pwdComplexity: string; + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @param [properties] Properties to set + * @returns UninterpretedOption instance + */ + public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; - /** RouterRotationInfo disabled. */ - public disabled: boolean; + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new RouterRotationInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns RouterRotationInfo instance - */ - public static create(properties?: Router.IRouterRotationInfo): Router.RouterRotationInfo; + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UninterpretedOption + * @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): google.protobuf.UninterpretedOption; - /** - * Encodes the specified RouterRotationInfo message. Does not implicitly {@link Router.RouterRotationInfo.verify|verify} messages. - * @param message RouterRotationInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IRouterRotationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UninterpretedOption + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; - /** - * Decodes a RouterRotationInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RouterRotationInfo - * @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): Router.RouterRotationInfo; + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @param message UninterpretedOption + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a RouterRotationInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RouterRotationInfo - */ - public static fromObject(object: { [k: string]: any }): Router.RouterRotationInfo; + /** + * Converts this UninterpretedOption to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a RouterRotationInfo message. Also converts values to other types if specified. - * @param message RouterRotationInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.RouterRotationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for UninterpretedOption + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this RouterRotationInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + namespace UninterpretedOption { - /** - * Gets the default type url for RouterRotationInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of a NamePart. */ + interface INamePart { - /** Properties of a RouterRecordRotationRequest. */ - interface IRouterRecordRotationRequest { + /** NamePart namePart */ + namePart: string; - /** RouterRecordRotationRequest recordUid */ - recordUid?: (Uint8Array|null); + /** NamePart isExtension */ + isExtension: boolean; + } - /** RouterRecordRotationRequest revision */ - revision?: (number|null); + /** Represents a NamePart. */ + class NamePart implements INamePart { - /** RouterRecordRotationRequest configurationUid */ - configurationUid?: (Uint8Array|null); + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); - /** RouterRecordRotationRequest resourceUid */ - resourceUid?: (Uint8Array|null); + /** NamePart namePart. */ + public namePart: string; - /** RouterRecordRotationRequest schedule */ - schedule?: (string|null); + /** NamePart isExtension. */ + public isExtension: boolean; - /** RouterRecordRotationRequest enterpriseUserId */ - enterpriseUserId?: (number|null); + /** + * Creates a new NamePart instance using the specified properties. + * @param [properties] Properties to set + * @returns NamePart instance + */ + public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; - /** RouterRecordRotationRequest pwdComplexity */ - pwdComplexity?: (Uint8Array|null); + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; - /** RouterRecordRotationRequest disabled */ - disabled?: (boolean|null); + /** + * Decodes a NamePart message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamePart + * @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): google.protobuf.UninterpretedOption.NamePart; - /** RouterRecordRotationRequest remoteAddress */ - remoteAddress?: (string|null); + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NamePart + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; - /** RouterRecordRotationRequest clientVersionId */ - clientVersionId?: (number|null); + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @param message NamePart + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NamePart to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** RouterRecordRotationRequest noop */ - noop?: (boolean|null); + /** + * Gets the default type url for NamePart + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** RouterRecordRotationRequest saasConfiguration */ - saasConfiguration?: (Uint8Array|null); + /** Properties of a FeatureSet. */ + interface IFeatureSet { - /** RouterRecordRotationRequest updateServices */ - updateServices?: (boolean|null); + /** FeatureSet fieldPresence */ + fieldPresence?: (google.protobuf.FeatureSet.FieldPresence|null); - /** RouterRecordRotationRequest serviceResources */ - serviceResources?: (PAM.IUidList|null); - } + /** FeatureSet enumType */ + enumType?: (google.protobuf.FeatureSet.EnumType|null); - /** Represents a RouterRecordRotationRequest. */ - class RouterRecordRotationRequest implements IRouterRecordRotationRequest { + /** FeatureSet repeatedFieldEncoding */ + repeatedFieldEncoding?: (google.protobuf.FeatureSet.RepeatedFieldEncoding|null); - /** - * Constructs a new RouterRecordRotationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IRouterRecordRotationRequest); + /** FeatureSet utf8Validation */ + utf8Validation?: (google.protobuf.FeatureSet.Utf8Validation|null); - /** RouterRecordRotationRequest recordUid. */ - public recordUid: Uint8Array; + /** FeatureSet messageEncoding */ + messageEncoding?: (google.protobuf.FeatureSet.MessageEncoding|null); - /** RouterRecordRotationRequest revision. */ - public revision: number; + /** FeatureSet jsonFormat */ + jsonFormat?: (google.protobuf.FeatureSet.JsonFormat|null); - /** RouterRecordRotationRequest configurationUid. */ - public configurationUid: Uint8Array; + /** FeatureSet enforceNamingStyle */ + enforceNamingStyle?: (google.protobuf.FeatureSet.EnforceNamingStyle|null); - /** RouterRecordRotationRequest resourceUid. */ - public resourceUid: Uint8Array; + /** FeatureSet defaultSymbolVisibility */ + defaultSymbolVisibility?: (google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|null); + } - /** RouterRecordRotationRequest schedule. */ - public schedule: string; + /** Represents a FeatureSet. */ + class FeatureSet implements IFeatureSet { - /** RouterRecordRotationRequest enterpriseUserId. */ - public enterpriseUserId: number; + /** + * Constructs a new FeatureSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFeatureSet); - /** RouterRecordRotationRequest pwdComplexity. */ - public pwdComplexity: Uint8Array; + /** FeatureSet fieldPresence. */ + public fieldPresence: google.protobuf.FeatureSet.FieldPresence; - /** RouterRecordRotationRequest disabled. */ - public disabled: boolean; + /** FeatureSet enumType. */ + public enumType: google.protobuf.FeatureSet.EnumType; - /** RouterRecordRotationRequest remoteAddress. */ - public remoteAddress: string; + /** FeatureSet repeatedFieldEncoding. */ + public repeatedFieldEncoding: google.protobuf.FeatureSet.RepeatedFieldEncoding; - /** RouterRecordRotationRequest clientVersionId. */ - public clientVersionId: number; + /** FeatureSet utf8Validation. */ + public utf8Validation: google.protobuf.FeatureSet.Utf8Validation; - /** RouterRecordRotationRequest noop. */ - public noop: boolean; + /** FeatureSet messageEncoding. */ + public messageEncoding: google.protobuf.FeatureSet.MessageEncoding; - /** RouterRecordRotationRequest saasConfiguration. */ - public saasConfiguration?: (Uint8Array|null); + /** FeatureSet jsonFormat. */ + public jsonFormat: google.protobuf.FeatureSet.JsonFormat; - /** RouterRecordRotationRequest updateServices. */ - public updateServices?: (boolean|null); + /** FeatureSet enforceNamingStyle. */ + public enforceNamingStyle: google.protobuf.FeatureSet.EnforceNamingStyle; - /** RouterRecordRotationRequest serviceResources. */ - public serviceResources?: (PAM.IUidList|null); + /** FeatureSet defaultSymbolVisibility. */ + public defaultSymbolVisibility: google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility; - /** - * Creates a new RouterRecordRotationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RouterRecordRotationRequest instance - */ - public static create(properties?: Router.IRouterRecordRotationRequest): Router.RouterRecordRotationRequest; + /** + * Creates a new FeatureSet instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureSet instance + */ + public static create(properties?: google.protobuf.IFeatureSet): google.protobuf.FeatureSet; - /** - * Encodes the specified RouterRecordRotationRequest message. Does not implicitly {@link Router.RouterRecordRotationRequest.verify|verify} messages. - * @param message RouterRecordRotationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IRouterRecordRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. + * @param message FeatureSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a RouterRecordRotationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RouterRecordRotationRequest - * @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): Router.RouterRecordRotationRequest; + /** + * Decodes a FeatureSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureSet + * @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): google.protobuf.FeatureSet; - /** - * Creates a RouterRecordRotationRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RouterRecordRotationRequest - */ - public static fromObject(object: { [k: string]: any }): Router.RouterRecordRotationRequest; + /** + * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureSet + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet; - /** - * Creates a plain object from a RouterRecordRotationRequest message. Also converts values to other types if specified. - * @param message RouterRecordRotationRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.RouterRecordRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a FeatureSet message. Also converts values to other types if specified. + * @param message FeatureSet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FeatureSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this RouterRecordRotationRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this FeatureSet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for RouterRecordRotationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for FeatureSet + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a UserRecordAccessRequest. */ - interface IUserRecordAccessRequest { + namespace FeatureSet { - /** UserRecordAccessRequest userId */ - userId?: (number|null); + /** FieldPresence enum. */ + enum FieldPresence { + FIELD_PRESENCE_UNKNOWN = 0, + EXPLICIT = 1, + IMPLICIT = 2, + LEGACY_REQUIRED = 3 + } - /** UserRecordAccessRequest recordUid */ - recordUid?: (Uint8Array|null); - } + /** EnumType enum. */ + enum EnumType { + ENUM_TYPE_UNKNOWN = 0, + OPEN = 1, + CLOSED = 2 + } - /** Represents a UserRecordAccessRequest. */ - class UserRecordAccessRequest implements IUserRecordAccessRequest { + /** RepeatedFieldEncoding enum. */ + enum RepeatedFieldEncoding { + REPEATED_FIELD_ENCODING_UNKNOWN = 0, + PACKED = 1, + EXPANDED = 2 + } - /** - * Constructs a new UserRecordAccessRequest. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IUserRecordAccessRequest); + /** Utf8Validation enum. */ + enum Utf8Validation { + UTF8_VALIDATION_UNKNOWN = 0, + VERIFY = 2, + NONE = 3 + } - /** UserRecordAccessRequest userId. */ - public userId: number; + /** MessageEncoding enum. */ + enum MessageEncoding { + MESSAGE_ENCODING_UNKNOWN = 0, + LENGTH_PREFIXED = 1, + DELIMITED = 2 + } - /** UserRecordAccessRequest recordUid. */ - public recordUid: Uint8Array; + /** JsonFormat enum. */ + enum JsonFormat { + JSON_FORMAT_UNKNOWN = 0, + ALLOW = 1, + LEGACY_BEST_EFFORT = 2 + } - /** - * Creates a new UserRecordAccessRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UserRecordAccessRequest instance - */ - public static create(properties?: Router.IUserRecordAccessRequest): Router.UserRecordAccessRequest; + /** EnforceNamingStyle enum. */ + enum EnforceNamingStyle { + ENFORCE_NAMING_STYLE_UNKNOWN = 0, + STYLE2024 = 1, + STYLE_LEGACY = 2 + } - /** - * Encodes the specified UserRecordAccessRequest message. Does not implicitly {@link Router.UserRecordAccessRequest.verify|verify} messages. - * @param message UserRecordAccessRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IUserRecordAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a VisibilityFeature. */ + interface IVisibilityFeature { + } - /** - * Decodes a UserRecordAccessRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserRecordAccessRequest - * @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): Router.UserRecordAccessRequest; + /** Represents a VisibilityFeature. */ + class VisibilityFeature implements IVisibilityFeature { - /** - * Creates a UserRecordAccessRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UserRecordAccessRequest - */ - public static fromObject(object: { [k: string]: any }): Router.UserRecordAccessRequest; + /** + * Constructs a new VisibilityFeature. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.FeatureSet.IVisibilityFeature); - /** - * Creates a plain object from a UserRecordAccessRequest message. Also converts values to other types if specified. - * @param message UserRecordAccessRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.UserRecordAccessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new VisibilityFeature instance using the specified properties. + * @param [properties] Properties to set + * @returns VisibilityFeature instance + */ + public static create(properties?: google.protobuf.FeatureSet.IVisibilityFeature): google.protobuf.FeatureSet.VisibilityFeature; - /** - * Converts this UserRecordAccessRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages. + * @param message VisibilityFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.FeatureSet.IVisibilityFeature, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for UserRecordAccessRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a VisibilityFeature message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VisibilityFeature + * @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): google.protobuf.FeatureSet.VisibilityFeature; - /** UserRecordAccessLevel enum. */ - enum UserRecordAccessLevel { - RRAL_NONE = 0, - RRAL_READ = 1, - RRAL_SHARE = 2, - RRAL_EDIT = 3, - RRAL_EDIT_AND_SHARE = 4, - RRAL_OWNER = 5 - } + /** + * Creates a VisibilityFeature message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VisibilityFeature + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet.VisibilityFeature; - /** Properties of a UserRecordAccessResponse. */ - interface IUserRecordAccessResponse { + /** + * Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified. + * @param message VisibilityFeature + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FeatureSet.VisibilityFeature, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** UserRecordAccessResponse recordUid */ - recordUid?: (Uint8Array|null); + /** + * Converts this VisibilityFeature to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** UserRecordAccessResponse accessLevel */ - accessLevel?: (Router.UserRecordAccessLevel|null); + /** + * Gets the default type url for VisibilityFeature + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** UserRecordAccessResponse isShareAdmin */ - isShareAdmin?: (boolean|null); - } + namespace VisibilityFeature { - /** Represents a UserRecordAccessResponse. */ - class UserRecordAccessResponse implements IUserRecordAccessResponse { + /** DefaultSymbolVisibility enum. */ + enum DefaultSymbolVisibility { + DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0, + EXPORT_ALL = 1, + EXPORT_TOP_LEVEL = 2, + LOCAL_ALL = 3, + STRICT = 4 + } + } + } - /** - * Constructs a new UserRecordAccessResponse. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IUserRecordAccessResponse); + /** Properties of a FeatureSetDefaults. */ + interface IFeatureSetDefaults { - /** UserRecordAccessResponse recordUid. */ - public recordUid: Uint8Array; + /** FeatureSetDefaults defaults */ + defaults?: (google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]|null); - /** UserRecordAccessResponse accessLevel. */ - public accessLevel: Router.UserRecordAccessLevel; + /** FeatureSetDefaults minimumEdition */ + minimumEdition?: (google.protobuf.Edition|null); - /** UserRecordAccessResponse isShareAdmin. */ - public isShareAdmin: boolean; + /** FeatureSetDefaults maximumEdition */ + maximumEdition?: (google.protobuf.Edition|null); + } - /** - * Creates a new UserRecordAccessResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UserRecordAccessResponse instance - */ - public static create(properties?: Router.IUserRecordAccessResponse): Router.UserRecordAccessResponse; + /** Represents a FeatureSetDefaults. */ + class FeatureSetDefaults implements IFeatureSetDefaults { - /** - * Encodes the specified UserRecordAccessResponse message. Does not implicitly {@link Router.UserRecordAccessResponse.verify|verify} messages. - * @param message UserRecordAccessResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IUserRecordAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new FeatureSetDefaults. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFeatureSetDefaults); - /** - * Decodes a UserRecordAccessResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserRecordAccessResponse - * @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): Router.UserRecordAccessResponse; + /** FeatureSetDefaults defaults. */ + public defaults: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]; - /** - * Creates a UserRecordAccessResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UserRecordAccessResponse - */ - public static fromObject(object: { [k: string]: any }): Router.UserRecordAccessResponse; + /** FeatureSetDefaults minimumEdition. */ + public minimumEdition: google.protobuf.Edition; - /** - * Creates a plain object from a UserRecordAccessResponse message. Also converts values to other types if specified. - * @param message UserRecordAccessResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.UserRecordAccessResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** FeatureSetDefaults maximumEdition. */ + public maximumEdition: google.protobuf.Edition; - /** - * Converts this UserRecordAccessResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new FeatureSetDefaults instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureSetDefaults instance + */ + public static create(properties?: google.protobuf.IFeatureSetDefaults): google.protobuf.FeatureSetDefaults; - /** - * Gets the default type url for UserRecordAccessResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. + * @param message FeatureSetDefaults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a UserRecordAccessRequests. */ - interface IUserRecordAccessRequests { + /** + * Decodes a FeatureSetDefaults message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureSetDefaults + * @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): google.protobuf.FeatureSetDefaults; - /** UserRecordAccessRequests requests */ - requests?: (Router.IUserRecordAccessRequest[]|null); - } + /** + * Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureSetDefaults + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults; + + /** + * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified. + * @param message FeatureSetDefaults + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FeatureSetDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureSetDefaults to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a UserRecordAccessRequests. */ - class UserRecordAccessRequests implements IUserRecordAccessRequests { + /** + * Gets the default type url for FeatureSetDefaults + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new UserRecordAccessRequests. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IUserRecordAccessRequests); + namespace FeatureSetDefaults { - /** UserRecordAccessRequests requests. */ - public requests: Router.IUserRecordAccessRequest[]; + /** Properties of a FeatureSetEditionDefault. */ + interface IFeatureSetEditionDefault { - /** - * Creates a new UserRecordAccessRequests instance using the specified properties. - * @param [properties] Properties to set - * @returns UserRecordAccessRequests instance - */ - public static create(properties?: Router.IUserRecordAccessRequests): Router.UserRecordAccessRequests; + /** FeatureSetEditionDefault edition */ + edition?: (google.protobuf.Edition|null); - /** - * Encodes the specified UserRecordAccessRequests message. Does not implicitly {@link Router.UserRecordAccessRequests.verify|verify} messages. - * @param message UserRecordAccessRequests message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IUserRecordAccessRequests, writer?: $protobuf.Writer): $protobuf.Writer; + /** FeatureSetEditionDefault overridableFeatures */ + overridableFeatures?: (google.protobuf.IFeatureSet|null); - /** - * Decodes a UserRecordAccessRequests message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserRecordAccessRequests - * @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): Router.UserRecordAccessRequests; + /** FeatureSetEditionDefault fixedFeatures */ + fixedFeatures?: (google.protobuf.IFeatureSet|null); + } - /** - * Creates a UserRecordAccessRequests message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UserRecordAccessRequests - */ - public static fromObject(object: { [k: string]: any }): Router.UserRecordAccessRequests; + /** Represents a FeatureSetEditionDefault. */ + class FeatureSetEditionDefault implements IFeatureSetEditionDefault { - /** - * Creates a plain object from a UserRecordAccessRequests message. Also converts values to other types if specified. - * @param message UserRecordAccessRequests - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.UserRecordAccessRequests, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new FeatureSetEditionDefault. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault); - /** - * Converts this UserRecordAccessRequests to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** FeatureSetEditionDefault edition. */ + public edition: google.protobuf.Edition; - /** - * Gets the default type url for UserRecordAccessRequests - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** FeatureSetEditionDefault overridableFeatures. */ + public overridableFeatures?: (google.protobuf.IFeatureSet|null); - /** Properties of a UserRecordAccessResponses. */ - interface IUserRecordAccessResponses { + /** FeatureSetEditionDefault fixedFeatures. */ + public fixedFeatures?: (google.protobuf.IFeatureSet|null); - /** UserRecordAccessResponses responses */ - responses?: (Router.IUserRecordAccessResponse[]|null); - } + /** + * Creates a new FeatureSetEditionDefault instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureSetEditionDefault instance + */ + public static create(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault; - /** Represents a UserRecordAccessResponses. */ - class UserRecordAccessResponses implements IUserRecordAccessResponses { + /** + * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. + * @param message FeatureSetEditionDefault message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new UserRecordAccessResponses. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IUserRecordAccessResponses); + /** + * Decodes a FeatureSetEditionDefault message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureSetEditionDefault + * @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): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault; - /** UserRecordAccessResponses responses. */ - public responses: Router.IUserRecordAccessResponse[]; + /** + * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureSetEditionDefault + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault; - /** - * Creates a new UserRecordAccessResponses instance using the specified properties. - * @param [properties] Properties to set - * @returns UserRecordAccessResponses instance - */ - public static create(properties?: Router.IUserRecordAccessResponses): Router.UserRecordAccessResponses; + /** + * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified. + * @param message FeatureSetEditionDefault + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified UserRecordAccessResponses message. Does not implicitly {@link Router.UserRecordAccessResponses.verify|verify} messages. - * @param message UserRecordAccessResponses message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IUserRecordAccessResponses, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this FeatureSetEditionDefault to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a UserRecordAccessResponses message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserRecordAccessResponses - * @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): Router.UserRecordAccessResponses; + /** + * Gets the default type url for FeatureSetEditionDefault + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** - * Creates a UserRecordAccessResponses message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UserRecordAccessResponses - */ - public static fromObject(object: { [k: string]: any }): Router.UserRecordAccessResponses; + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { - /** - * Creates a plain object from a UserRecordAccessResponses message. Also converts values to other types if specified. - * @param message UserRecordAccessResponses - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.UserRecordAccessResponses, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** SourceCodeInfo location */ + location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + } - /** - * Converts this UserRecordAccessResponses to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { - /** - * Gets the default type url for UserRecordAccessResponses - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new SourceCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ISourceCodeInfo); - /** Properties of a UserSharedFolderAccessRequest. */ - interface IUserSharedFolderAccessRequest { + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; - /** UserSharedFolderAccessRequest userId */ - userId?: (number|null); + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceCodeInfo instance + */ + public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; - /** UserSharedFolderAccessRequest sharedFolderUid */ - sharedFolderUid?: (Uint8Array[]|null); - } + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a UserSharedFolderAccessRequest. */ - class UserSharedFolderAccessRequest implements IUserSharedFolderAccessRequest { + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceCodeInfo + * @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): google.protobuf.SourceCodeInfo; - /** - * Constructs a new UserSharedFolderAccessRequest. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IUserSharedFolderAccessRequest); + /** + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; - /** UserSharedFolderAccessRequest userId. */ - public userId: number; + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @param message SourceCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** UserSharedFolderAccessRequest sharedFolderUid. */ - public sharedFolderUid: Uint8Array[]; + /** + * Converts this SourceCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new UserSharedFolderAccessRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UserSharedFolderAccessRequest instance - */ - public static create(properties?: Router.IUserSharedFolderAccessRequest): Router.UserSharedFolderAccessRequest; + /** + * Gets the default type url for SourceCodeInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified UserSharedFolderAccessRequest message. Does not implicitly {@link Router.UserSharedFolderAccessRequest.verify|verify} messages. - * @param message UserSharedFolderAccessRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IUserSharedFolderAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; + namespace SourceCodeInfo { - /** - * Decodes a UserSharedFolderAccessRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserSharedFolderAccessRequest - * @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): Router.UserSharedFolderAccessRequest; + /** Properties of a Location. */ + interface ILocation { - /** - * Creates a UserSharedFolderAccessRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UserSharedFolderAccessRequest - */ - public static fromObject(object: { [k: string]: any }): Router.UserSharedFolderAccessRequest; + /** Location path */ + path?: (number[]|null); - /** - * Creates a plain object from a UserSharedFolderAccessRequest message. Also converts values to other types if specified. - * @param message UserSharedFolderAccessRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.UserSharedFolderAccessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Location span */ + span?: (number[]|null); - /** - * Converts this UserSharedFolderAccessRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Location leadingComments */ + leadingComments?: (string|null); - /** - * Gets the default type url for UserSharedFolderAccessRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Location trailingComments */ + trailingComments?: (string|null); - /** Properties of a UserSharedFolderAccessResponse. */ - interface IUserSharedFolderAccessResponse { + /** Location leadingDetachedComments */ + leadingDetachedComments?: (string[]|null); + } - /** UserSharedFolderAccessResponse sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + /** Represents a Location. */ + class Location implements ILocation { - /** UserSharedFolderAccessResponse accessRoleType */ - accessRoleType?: (Folder.AccessRoleType|null); - } + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); - /** Represents a UserSharedFolderAccessResponse. */ - class UserSharedFolderAccessResponse implements IUserSharedFolderAccessResponse { + /** Location path. */ + public path: number[]; - /** - * Constructs a new UserSharedFolderAccessResponse. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IUserSharedFolderAccessResponse); + /** Location span. */ + public span: number[]; - /** UserSharedFolderAccessResponse sharedFolderUid. */ - public sharedFolderUid: Uint8Array; + /** Location leadingComments. */ + public leadingComments: string; - /** UserSharedFolderAccessResponse accessRoleType. */ - public accessRoleType: Folder.AccessRoleType; + /** Location trailingComments. */ + public trailingComments: string; - /** - * Creates a new UserSharedFolderAccessResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UserSharedFolderAccessResponse instance - */ - public static create(properties?: Router.IUserSharedFolderAccessResponse): Router.UserSharedFolderAccessResponse; + /** Location leadingDetachedComments. */ + public leadingDetachedComments: string[]; - /** - * Encodes the specified UserSharedFolderAccessResponse message. Does not implicitly {@link Router.UserSharedFolderAccessResponse.verify|verify} messages. - * @param message UserSharedFolderAccessResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IUserSharedFolderAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new Location instance using the specified properties. + * @param [properties] Properties to set + * @returns Location instance + */ + public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; - /** - * Decodes a UserSharedFolderAccessResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserSharedFolderAccessResponse - * @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): Router.UserSharedFolderAccessResponse; + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a UserSharedFolderAccessResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UserSharedFolderAccessResponse - */ - public static fromObject(object: { [k: string]: any }): Router.UserSharedFolderAccessResponse; + /** + * Decodes a Location message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Location + * @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): google.protobuf.SourceCodeInfo.Location; - /** - * Creates a plain object from a UserSharedFolderAccessResponse message. Also converts values to other types if specified. - * @param message UserSharedFolderAccessResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.UserSharedFolderAccessResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Location + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; - /** - * Converts this UserSharedFolderAccessResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @param message Location + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for UserSharedFolderAccessResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this Location to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a UserSharedFolderAccessResponses. */ - interface IUserSharedFolderAccessResponses { + /** + * Gets the default type url for Location + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** UserSharedFolderAccessResponses responses */ - responses?: (Router.IUserSharedFolderAccessResponse[]|null); - } + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { - /** Represents a UserSharedFolderAccessResponses. */ - class UserSharedFolderAccessResponses implements IUserSharedFolderAccessResponses { + /** GeneratedCodeInfo annotation */ + annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + } - /** - * Constructs a new UserSharedFolderAccessResponses. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IUserSharedFolderAccessResponses); + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { - /** UserSharedFolderAccessResponses responses. */ - public responses: Router.IUserSharedFolderAccessResponse[]; + /** + * Constructs a new GeneratedCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IGeneratedCodeInfo); - /** - * Creates a new UserSharedFolderAccessResponses instance using the specified properties. - * @param [properties] Properties to set - * @returns UserSharedFolderAccessResponses instance - */ - public static create(properties?: Router.IUserSharedFolderAccessResponses): Router.UserSharedFolderAccessResponses; + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; - /** - * Encodes the specified UserSharedFolderAccessResponses message. Does not implicitly {@link Router.UserSharedFolderAccessResponses.verify|verify} messages. - * @param message UserSharedFolderAccessResponses message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IUserSharedFolderAccessResponses, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns GeneratedCodeInfo instance + */ + public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; - /** - * Decodes a UserSharedFolderAccessResponses message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserSharedFolderAccessResponses - * @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): Router.UserSharedFolderAccessResponses; + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a UserSharedFolderAccessResponses message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UserSharedFolderAccessResponses - */ - public static fromObject(object: { [k: string]: any }): Router.UserSharedFolderAccessResponses; + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GeneratedCodeInfo + * @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): google.protobuf.GeneratedCodeInfo; - /** - * Creates a plain object from a UserSharedFolderAccessResponses message. Also converts values to other types if specified. - * @param message UserSharedFolderAccessResponses - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.UserSharedFolderAccessResponses, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GeneratedCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; - /** - * Converts this UserSharedFolderAccessResponses to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @param message GeneratedCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for UserSharedFolderAccessResponses - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this GeneratedCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a UserFolderPermissionsRequest. */ - interface IUserFolderPermissionsRequest { + /** + * Gets the default type url for GeneratedCodeInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** UserFolderPermissionsRequest userId */ - userId?: (number|null); + namespace GeneratedCodeInfo { - /** UserFolderPermissionsRequest folderUid */ - folderUid?: (Uint8Array[]|null); - } + /** Properties of an Annotation. */ + interface IAnnotation { - /** Represents a UserFolderPermissionsRequest. */ - class UserFolderPermissionsRequest implements IUserFolderPermissionsRequest { + /** Annotation path */ + path?: (number[]|null); - /** - * Constructs a new UserFolderPermissionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IUserFolderPermissionsRequest); + /** Annotation sourceFile */ + sourceFile?: (string|null); - /** UserFolderPermissionsRequest userId. */ - public userId: number; + /** Annotation begin */ + begin?: (number|null); - /** UserFolderPermissionsRequest folderUid. */ - public folderUid: Uint8Array[]; + /** Annotation end */ + end?: (number|null); - /** - * Creates a new UserFolderPermissionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UserFolderPermissionsRequest instance - */ - public static create(properties?: Router.IUserFolderPermissionsRequest): Router.UserFolderPermissionsRequest; + /** Annotation semantic */ + semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null); + } - /** - * Encodes the specified UserFolderPermissionsRequest message. Does not implicitly {@link Router.UserFolderPermissionsRequest.verify|verify} messages. - * @param message UserFolderPermissionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IUserFolderPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents an Annotation. */ + class Annotation implements IAnnotation { - /** - * Decodes a UserFolderPermissionsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserFolderPermissionsRequest - * @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): Router.UserFolderPermissionsRequest; + /** + * Constructs a new Annotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); - /** - * Creates a UserFolderPermissionsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UserFolderPermissionsRequest - */ - public static fromObject(object: { [k: string]: any }): Router.UserFolderPermissionsRequest; + /** Annotation path. */ + public path: number[]; - /** - * Creates a plain object from a UserFolderPermissionsRequest message. Also converts values to other types if specified. - * @param message UserFolderPermissionsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.UserFolderPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Annotation sourceFile. */ + public sourceFile: string; - /** - * Converts this UserFolderPermissionsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Annotation begin. */ + public begin: number; - /** - * Gets the default type url for UserFolderPermissionsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Annotation end. */ + public end: number; - /** Properties of a UserFolderPermissionsResponse. */ - interface IUserFolderPermissionsResponse { + /** Annotation semantic. */ + public semantic: google.protobuf.GeneratedCodeInfo.Annotation.Semantic; - /** UserFolderPermissionsResponse folderUid */ - folderUid?: (Uint8Array|null); + /** + * Creates a new Annotation instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotation instance + */ + public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; - /** UserFolderPermissionsResponse permissions */ - permissions?: (Folder.IFolderPermissions|null); - } + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a UserFolderPermissionsResponse. */ - class UserFolderPermissionsResponse implements IUserFolderPermissionsResponse { + /** + * Decodes an Annotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotation + * @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): google.protobuf.GeneratedCodeInfo.Annotation; - /** - * Constructs a new UserFolderPermissionsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IUserFolderPermissionsResponse); + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Annotation + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; - /** UserFolderPermissionsResponse folderUid. */ - public folderUid: Uint8Array; + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @param message Annotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** UserFolderPermissionsResponse permissions. */ - public permissions?: (Folder.IFolderPermissions|null); + /** + * Converts this Annotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new UserFolderPermissionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UserFolderPermissionsResponse instance - */ - public static create(properties?: Router.IUserFolderPermissionsResponse): Router.UserFolderPermissionsResponse; + /** + * Gets the default type url for Annotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified UserFolderPermissionsResponse message. Does not implicitly {@link Router.UserFolderPermissionsResponse.verify|verify} messages. - * @param message UserFolderPermissionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IUserFolderPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + namespace Annotation { + + /** Semantic enum. */ + enum Semantic { + NONE = 0, + SET = 1, + ALIAS = 2 + } + } + } - /** - * Decodes a UserFolderPermissionsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserFolderPermissionsResponse - * @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): Router.UserFolderPermissionsResponse; + /** SymbolVisibility enum. */ + enum SymbolVisibility { + VISIBILITY_UNSET = 0, + VISIBILITY_LOCAL = 1, + VISIBILITY_EXPORT = 2 + } - /** - * Creates a UserFolderPermissionsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UserFolderPermissionsResponse - */ - public static fromObject(object: { [k: string]: any }): Router.UserFolderPermissionsResponse; + /** Properties of a Struct. */ + interface IStruct { - /** - * Creates a plain object from a UserFolderPermissionsResponse message. Also converts values to other types if specified. - * @param message UserFolderPermissionsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.UserFolderPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Struct fields */ + fields?: ({ [k: string]: google.protobuf.IValue }|null); + } - /** - * Converts this UserFolderPermissionsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a Struct. */ + class Struct implements IStruct { - /** - * Gets the default type url for UserFolderPermissionsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new Struct. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IStruct); - /** Properties of a UserFolderPermissionsResponses. */ - interface IUserFolderPermissionsResponses { + /** Struct fields. */ + public fields: { [k: string]: google.protobuf.IValue }; - /** UserFolderPermissionsResponses responses */ - responses?: (Router.IUserFolderPermissionsResponse[]|null); - } + /** + * Creates a new Struct instance using the specified properties. + * @param [properties] Properties to set + * @returns Struct instance + */ + public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct; - /** Represents a UserFolderPermissionsResponses. */ - class UserFolderPermissionsResponses implements IUserFolderPermissionsResponses { + /** + * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. + * @param message Struct message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new UserFolderPermissionsResponses. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IUserFolderPermissionsResponses); + /** + * Decodes a Struct message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Struct + * @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): google.protobuf.Struct; - /** UserFolderPermissionsResponses responses. */ - public responses: Router.IUserFolderPermissionsResponse[]; + /** + * Creates a Struct message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Struct + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Struct; - /** - * Creates a new UserFolderPermissionsResponses instance using the specified properties. - * @param [properties] Properties to set - * @returns UserFolderPermissionsResponses instance - */ - public static create(properties?: Router.IUserFolderPermissionsResponses): Router.UserFolderPermissionsResponses; + /** + * Creates a plain object from a Struct message. Also converts values to other types if specified. + * @param message Struct + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified UserFolderPermissionsResponses message. Does not implicitly {@link Router.UserFolderPermissionsResponses.verify|verify} messages. - * @param message UserFolderPermissionsResponses message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IUserFolderPermissionsResponses, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this Struct to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a UserFolderPermissionsResponses message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserFolderPermissionsResponses - * @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): Router.UserFolderPermissionsResponses; + /** + * Gets the default type url for Struct + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a UserFolderPermissionsResponses message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UserFolderPermissionsResponses - */ - public static fromObject(object: { [k: string]: any }): Router.UserFolderPermissionsResponses; + /** Properties of a Value. */ + interface IValue { - /** - * Creates a plain object from a UserFolderPermissionsResponses message. Also converts values to other types if specified. - * @param message UserFolderPermissionsResponses - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.UserFolderPermissionsResponses, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Value nullValue */ + nullValue?: (google.protobuf.NullValue|null); - /** - * Converts this UserFolderPermissionsResponses to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Value numberValue */ + numberValue?: (number|null); - /** - * Gets the default type url for UserFolderPermissionsResponses - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Value stringValue */ + stringValue?: (string|null); - /** Properties of a RotationSchedule. */ - interface IRotationSchedule { + /** Value boolValue */ + boolValue?: (boolean|null); - /** RotationSchedule recordUid */ - recordUid?: (Uint8Array|null); + /** Value structValue */ + structValue?: (google.protobuf.IStruct|null); - /** RotationSchedule schedule */ - schedule?: (string|null); - } + /** Value listValue */ + listValue?: (google.protobuf.IListValue|null); + } - /** Represents a RotationSchedule. */ - class RotationSchedule implements IRotationSchedule { + /** Represents a Value. */ + class Value implements IValue { - /** - * Constructs a new RotationSchedule. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IRotationSchedule); + /** + * Constructs a new Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IValue); - /** RotationSchedule recordUid. */ - public recordUid: Uint8Array; + /** Value nullValue. */ + public nullValue?: (google.protobuf.NullValue|null); - /** RotationSchedule schedule. */ - public schedule: string; + /** Value numberValue. */ + public numberValue?: (number|null); - /** - * Creates a new RotationSchedule instance using the specified properties. - * @param [properties] Properties to set - * @returns RotationSchedule instance - */ - public static create(properties?: Router.IRotationSchedule): Router.RotationSchedule; + /** Value stringValue. */ + public stringValue?: (string|null); - /** - * Encodes the specified RotationSchedule message. Does not implicitly {@link Router.RotationSchedule.verify|verify} messages. - * @param message RotationSchedule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IRotationSchedule, writer?: $protobuf.Writer): $protobuf.Writer; + /** Value boolValue. */ + public boolValue?: (boolean|null); - /** - * Decodes a RotationSchedule message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RotationSchedule - * @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): Router.RotationSchedule; + /** Value structValue. */ + public structValue?: (google.protobuf.IStruct|null); - /** - * Creates a RotationSchedule message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RotationSchedule - */ - public static fromObject(object: { [k: string]: any }): Router.RotationSchedule; + /** Value listValue. */ + public listValue?: (google.protobuf.IListValue|null); - /** - * Creates a plain object from a RotationSchedule message. Also converts values to other types if specified. - * @param message RotationSchedule - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.RotationSchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Value kind. */ + public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"); + + /** + * Creates a new Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Value instance + */ + public static create(properties?: google.protobuf.IValue): google.protobuf.Value; - /** - * Converts this RotationSchedule to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. + * @param message Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for RotationSchedule - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Value + * @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): google.protobuf.Value; - /** ServiceType enum. */ - enum ServiceType { - UNSPECIFIED = 0, - KA = 1, - BI = 2 - } + /** + * Creates a Value message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Value + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Value; - /** Properties of an ApiCallbackRequest. */ - interface IApiCallbackRequest { + /** + * Creates a plain object from a Value message. Also converts values to other types if specified. + * @param message Value + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ApiCallbackRequest resourceUid */ - resourceUid?: (Uint8Array|null); + /** + * Converts this Value to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ApiCallbackRequest schedules */ - schedules?: (Router.IApiCallbackSchedule[]|null); + /** + * Gets the default type url for Value + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ApiCallbackRequest url */ - url?: (string|null); + /** NullValue enum. */ + enum NullValue { + NULL_VALUE = 0 + } - /** ApiCallbackRequest serviceType */ - serviceType?: (Router.ServiceType|null); - } + /** Properties of a ListValue. */ + interface IListValue { - /** Represents an ApiCallbackRequest. */ - class ApiCallbackRequest implements IApiCallbackRequest { + /** ListValue values */ + values?: (google.protobuf.IValue[]|null); + } - /** - * Constructs a new ApiCallbackRequest. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IApiCallbackRequest); + /** Represents a ListValue. */ + class ListValue implements IListValue { - /** ApiCallbackRequest resourceUid. */ - public resourceUid: Uint8Array; + /** + * Constructs a new ListValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IListValue); - /** ApiCallbackRequest schedules. */ - public schedules: Router.IApiCallbackSchedule[]; + /** ListValue values. */ + public values: google.protobuf.IValue[]; - /** ApiCallbackRequest url. */ - public url: string; + /** + * Creates a new ListValue instance using the specified properties. + * @param [properties] Properties to set + * @returns ListValue instance + */ + public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue; - /** ApiCallbackRequest serviceType. */ - public serviceType: Router.ServiceType; + /** + * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. + * @param message ListValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new ApiCallbackRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ApiCallbackRequest instance - */ - public static create(properties?: Router.IApiCallbackRequest): Router.ApiCallbackRequest; + /** + * Decodes a ListValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListValue + * @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): google.protobuf.ListValue; - /** - * Encodes the specified ApiCallbackRequest message. Does not implicitly {@link Router.ApiCallbackRequest.verify|verify} messages. - * @param message ApiCallbackRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: Router.IApiCallbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a ListValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListValue + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue; - /** - * Decodes an ApiCallbackRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApiCallbackRequest - * @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): Router.ApiCallbackRequest; + /** + * Creates a plain object from a ListValue message. Also converts values to other types if specified. + * @param message ListValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates an ApiCallbackRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ApiCallbackRequest - */ - public static fromObject(object: { [k: string]: any }): Router.ApiCallbackRequest; + /** + * Converts this ListValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from an ApiCallbackRequest message. Also converts values to other types if specified. - * @param message ApiCallbackRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: Router.ApiCallbackRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for ListValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } +} - /** - * Converts this ApiCallbackRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; +/** Namespace Router. */ +export namespace Router { - /** - * Gets the default type url for ApiCallbackRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** RouterResponseCode enum. */ + enum RouterResponseCode { + RRC_OK = 0, + RRC_GENERAL_ERROR = 1, + RRC_NOT_ALLOWED = 2, + RRC_BAD_REQUEST = 3, + RRC_TIMEOUT = 4, + RRC_BAD_STATE = 5, + RRC_CONTROLLER_DOWN = 6, + RRC_WRONG_INSTANCE = 7, + RRC_NOT_ALLOWED_ENFORCEMENT_NOT_ENABLED = 8, + RRC_NOT_ALLOWED_PAM_CONFIG_FEATURES_NOT_ENABLED = 9 } - /** Properties of an ApiCallbackSchedule. */ - interface IApiCallbackSchedule { + /** Properties of a RouterResponse. */ + interface IRouterResponse { - /** ApiCallbackSchedule schedule */ - schedule?: (string|null); + /** RouterResponse responseCode */ + responseCode?: (Router.RouterResponseCode|null); - /** ApiCallbackSchedule data */ - data?: (Uint8Array|null); + /** RouterResponse errorMessage */ + errorMessage?: (string|null); + + /** RouterResponse encryptedPayload */ + encryptedPayload?: (Uint8Array|null); } - /** Represents an ApiCallbackSchedule. */ - class ApiCallbackSchedule implements IApiCallbackSchedule { + /** Represents a RouterResponse. */ + class RouterResponse implements IRouterResponse { /** - * Constructs a new ApiCallbackSchedule. + * Constructs a new RouterResponse. * @param [properties] Properties to set */ - constructor(properties?: Router.IApiCallbackSchedule); + constructor(properties?: Router.IRouterResponse); - /** ApiCallbackSchedule schedule. */ - public schedule: string; + /** RouterResponse responseCode. */ + public responseCode: Router.RouterResponseCode; - /** ApiCallbackSchedule data. */ - public data: Uint8Array; + /** RouterResponse errorMessage. */ + public errorMessage: string; + + /** RouterResponse encryptedPayload. */ + public encryptedPayload: Uint8Array; /** - * Creates a new ApiCallbackSchedule instance using the specified properties. + * Creates a new RouterResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ApiCallbackSchedule instance + * @returns RouterResponse instance */ - public static create(properties?: Router.IApiCallbackSchedule): Router.ApiCallbackSchedule; + public static create(properties?: Router.IRouterResponse): Router.RouterResponse; /** - * Encodes the specified ApiCallbackSchedule message. Does not implicitly {@link Router.ApiCallbackSchedule.verify|verify} messages. - * @param message ApiCallbackSchedule message or plain object to encode + * Encodes the specified RouterResponse message. Does not implicitly {@link Router.RouterResponse.verify|verify} messages. + * @param message RouterResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IApiCallbackSchedule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ApiCallbackSchedule message from the specified reader or buffer. + * Decodes a RouterResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ApiCallbackSchedule + * @returns RouterResponse * @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): Router.ApiCallbackSchedule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterResponse; /** - * Creates an ApiCallbackSchedule message from a plain object. Also converts values to their respective internal types. + * Creates a RouterResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ApiCallbackSchedule + * @returns RouterResponse */ - public static fromObject(object: { [k: string]: any }): Router.ApiCallbackSchedule; + public static fromObject(object: { [k: string]: any }): Router.RouterResponse; /** - * Creates a plain object from an ApiCallbackSchedule message. Also converts values to other types if specified. - * @param message ApiCallbackSchedule + * Creates a plain object from a RouterResponse message. Also converts values to other types if specified. + * @param message RouterResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.ApiCallbackSchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ApiCallbackSchedule to JSON. + * Converts this RouterResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ApiCallbackSchedule + * Gets the default type url for RouterResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RouterScheduledActions. */ - interface IRouterScheduledActions { + /** Properties of a RouterControllerMessage. */ + interface IRouterControllerMessage { - /** RouterScheduledActions schedule */ - schedule?: (string|null); + /** RouterControllerMessage messageType */ + messageType?: (PAM.ControllerMessageType|null); - /** RouterScheduledActions resourceUids */ - resourceUids?: (Uint8Array[]|null); + /** RouterControllerMessage messageUid */ + messageUid?: (Uint8Array|null); + + /** RouterControllerMessage controllerUid */ + controllerUid?: (Uint8Array|null); + + /** RouterControllerMessage streamResponse */ + streamResponse?: (boolean|null); + + /** RouterControllerMessage payload */ + payload?: (Uint8Array|null); + + /** RouterControllerMessage timeout */ + timeout?: (number|null); } - /** Represents a RouterScheduledActions. */ - class RouterScheduledActions implements IRouterScheduledActions { + /** Represents a RouterControllerMessage. */ + class RouterControllerMessage implements IRouterControllerMessage { /** - * Constructs a new RouterScheduledActions. + * Constructs a new RouterControllerMessage. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouterScheduledActions); + constructor(properties?: Router.IRouterControllerMessage); - /** RouterScheduledActions schedule. */ - public schedule: string; + /** RouterControllerMessage messageType. */ + public messageType: PAM.ControllerMessageType; - /** RouterScheduledActions resourceUids. */ - public resourceUids: Uint8Array[]; + /** RouterControllerMessage messageUid. */ + public messageUid: Uint8Array; + + /** RouterControllerMessage controllerUid. */ + public controllerUid: Uint8Array; + + /** RouterControllerMessage streamResponse. */ + public streamResponse: boolean; + + /** RouterControllerMessage payload. */ + public payload: Uint8Array; + + /** RouterControllerMessage timeout. */ + public timeout: number; /** - * Creates a new RouterScheduledActions instance using the specified properties. + * Creates a new RouterControllerMessage instance using the specified properties. * @param [properties] Properties to set - * @returns RouterScheduledActions instance + * @returns RouterControllerMessage instance */ - public static create(properties?: Router.IRouterScheduledActions): Router.RouterScheduledActions; + public static create(properties?: Router.IRouterControllerMessage): Router.RouterControllerMessage; /** - * Encodes the specified RouterScheduledActions message. Does not implicitly {@link Router.RouterScheduledActions.verify|verify} messages. - * @param message RouterScheduledActions message or plain object to encode + * Encodes the specified RouterControllerMessage message. Does not implicitly {@link Router.RouterControllerMessage.verify|verify} messages. + * @param message RouterControllerMessage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IRouterScheduledActions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterControllerMessage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RouterScheduledActions message from the specified reader or buffer. + * Decodes a RouterControllerMessage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RouterScheduledActions + * @returns RouterControllerMessage * @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): Router.RouterScheduledActions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterControllerMessage; /** - * Creates a RouterScheduledActions message from a plain object. Also converts values to their respective internal types. + * Creates a RouterControllerMessage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RouterScheduledActions + * @returns RouterControllerMessage */ - public static fromObject(object: { [k: string]: any }): Router.RouterScheduledActions; + public static fromObject(object: { [k: string]: any }): Router.RouterControllerMessage; /** - * Creates a plain object from a RouterScheduledActions message. Also converts values to other types if specified. - * @param message RouterScheduledActions + * Creates a plain object from a RouterControllerMessage message. Also converts values to other types if specified. + * @param message RouterControllerMessage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.RouterScheduledActions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterControllerMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RouterScheduledActions to JSON. + * Converts this RouterControllerMessage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RouterScheduledActions + * Gets the default type url for RouterControllerMessage * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RouterRecordsRotationRequest. */ - interface IRouterRecordsRotationRequest { + /** Properties of a RouterUserAuth. */ + interface IRouterUserAuth { - /** RouterRecordsRotationRequest rotationSchedules */ - rotationSchedules?: (Router.IRouterScheduledActions[]|null); + /** RouterUserAuth transmissionKey */ + transmissionKey?: (Uint8Array|null); + + /** RouterUserAuth sessionToken */ + sessionToken?: (Uint8Array|null); + + /** RouterUserAuth userId */ + userId?: (number|null); + + /** RouterUserAuth enterpriseUserId */ + enterpriseUserId?: (number|null); + + /** RouterUserAuth deviceName */ + deviceName?: (string|null); + + /** RouterUserAuth deviceToken */ + deviceToken?: (Uint8Array|null); + + /** RouterUserAuth clientVersionId */ + clientVersionId?: (number|null); + + /** RouterUserAuth needUsername */ + needUsername?: (boolean|null); + + /** RouterUserAuth username */ + username?: (string|null); + + /** RouterUserAuth mspEnterpriseId */ + mspEnterpriseId?: (number|null); + + /** RouterUserAuth isPedmAdmin */ + isPedmAdmin?: (boolean|null); + + /** RouterUserAuth mcEnterpriseId */ + mcEnterpriseId?: (number|null); + + /** RouterUserAuth deviceId */ + deviceId?: (number|null); } - /** Represents a RouterRecordsRotationRequest. */ - class RouterRecordsRotationRequest implements IRouterRecordsRotationRequest { + /** Represents a RouterUserAuth. */ + class RouterUserAuth implements IRouterUserAuth { /** - * Constructs a new RouterRecordsRotationRequest. + * Constructs a new RouterUserAuth. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouterRecordsRotationRequest); + constructor(properties?: Router.IRouterUserAuth); - /** RouterRecordsRotationRequest rotationSchedules. */ - public rotationSchedules: Router.IRouterScheduledActions[]; + /** RouterUserAuth transmissionKey. */ + public transmissionKey: Uint8Array; + + /** RouterUserAuth sessionToken. */ + public sessionToken: Uint8Array; + + /** RouterUserAuth userId. */ + public userId: number; + + /** RouterUserAuth enterpriseUserId. */ + public enterpriseUserId: number; + + /** RouterUserAuth deviceName. */ + public deviceName: string; + + /** RouterUserAuth deviceToken. */ + public deviceToken: Uint8Array; + + /** RouterUserAuth clientVersionId. */ + public clientVersionId: number; + + /** RouterUserAuth needUsername. */ + public needUsername: boolean; + + /** RouterUserAuth username. */ + public username: string; + + /** RouterUserAuth mspEnterpriseId. */ + public mspEnterpriseId: number; + + /** RouterUserAuth isPedmAdmin. */ + public isPedmAdmin: boolean; + + /** RouterUserAuth mcEnterpriseId. */ + public mcEnterpriseId: number; + + /** RouterUserAuth deviceId. */ + public deviceId?: (number|null); /** - * Creates a new RouterRecordsRotationRequest instance using the specified properties. + * Creates a new RouterUserAuth instance using the specified properties. * @param [properties] Properties to set - * @returns RouterRecordsRotationRequest instance + * @returns RouterUserAuth instance */ - public static create(properties?: Router.IRouterRecordsRotationRequest): Router.RouterRecordsRotationRequest; + public static create(properties?: Router.IRouterUserAuth): Router.RouterUserAuth; /** - * Encodes the specified RouterRecordsRotationRequest message. Does not implicitly {@link Router.RouterRecordsRotationRequest.verify|verify} messages. - * @param message RouterRecordsRotationRequest message or plain object to encode + * Encodes the specified RouterUserAuth message. Does not implicitly {@link Router.RouterUserAuth.verify|verify} messages. + * @param message RouterUserAuth message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IRouterRecordsRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterUserAuth, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RouterRecordsRotationRequest message from the specified reader or buffer. + * Decodes a RouterUserAuth message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RouterRecordsRotationRequest + * @returns RouterUserAuth * @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): Router.RouterRecordsRotationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterUserAuth; /** - * Creates a RouterRecordsRotationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RouterUserAuth message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RouterRecordsRotationRequest + * @returns RouterUserAuth */ - public static fromObject(object: { [k: string]: any }): Router.RouterRecordsRotationRequest; + public static fromObject(object: { [k: string]: any }): Router.RouterUserAuth; /** - * Creates a plain object from a RouterRecordsRotationRequest message. Also converts values to other types if specified. - * @param message RouterRecordsRotationRequest + * Creates a plain object from a RouterUserAuth message. Also converts values to other types if specified. + * @param message RouterUserAuth * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.RouterRecordsRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterUserAuth, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RouterRecordsRotationRequest to JSON. + * Converts this RouterUserAuth to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for RouterRecordsRotationRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for RouterUserAuth + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RouterDeviceAuth. */ + interface IRouterDeviceAuth { + + /** RouterDeviceAuth clientId */ + clientId?: (string|null); + + /** RouterDeviceAuth clientVersion */ + clientVersion?: (string|null); + + /** RouterDeviceAuth signature */ + signature?: (Uint8Array|null); - /** Properties of a ConnectionParameters. */ - interface IConnectionParameters { + /** RouterDeviceAuth enterpriseId */ + enterpriseId?: (number|null); - /** ConnectionParameters connectionUid */ - connectionUid?: (Uint8Array|null); + /** RouterDeviceAuth nodeId */ + nodeId?: (number|null); - /** ConnectionParameters recordUid */ - recordUid?: (Uint8Array|null); + /** RouterDeviceAuth deviceName */ + deviceName?: (string|null); - /** ConnectionParameters userId */ - userId?: (number|null); + /** RouterDeviceAuth deviceToken */ + deviceToken?: (Uint8Array|null); - /** ConnectionParameters controllerUid */ + /** RouterDeviceAuth controllerName */ + controllerName?: (string|null); + + /** RouterDeviceAuth controllerUid */ controllerUid?: (Uint8Array|null); - /** ConnectionParameters credentialsRecordUid */ - credentialsRecordUid?: (Uint8Array|null); + /** RouterDeviceAuth ownerUser */ + ownerUser?: (string|null); + + /** RouterDeviceAuth challenge */ + challenge?: (string|null); + + /** RouterDeviceAuth ownerId */ + ownerId?: (number|null); + + /** RouterDeviceAuth maxInstanceCount */ + maxInstanceCount?: (number|null); } - /** Represents a ConnectionParameters. */ - class ConnectionParameters implements IConnectionParameters { + /** Represents a RouterDeviceAuth. */ + class RouterDeviceAuth implements IRouterDeviceAuth { /** - * Constructs a new ConnectionParameters. + * Constructs a new RouterDeviceAuth. * @param [properties] Properties to set */ - constructor(properties?: Router.IConnectionParameters); + constructor(properties?: Router.IRouterDeviceAuth); - /** ConnectionParameters connectionUid. */ - public connectionUid: Uint8Array; + /** RouterDeviceAuth clientId. */ + public clientId: string; - /** ConnectionParameters recordUid. */ - public recordUid: Uint8Array; + /** RouterDeviceAuth clientVersion. */ + public clientVersion: string; - /** ConnectionParameters userId. */ - public userId: number; + /** RouterDeviceAuth signature. */ + public signature: Uint8Array; - /** ConnectionParameters controllerUid. */ + /** RouterDeviceAuth enterpriseId. */ + public enterpriseId: number; + + /** RouterDeviceAuth nodeId. */ + public nodeId: number; + + /** RouterDeviceAuth deviceName. */ + public deviceName: string; + + /** RouterDeviceAuth deviceToken. */ + public deviceToken: Uint8Array; + + /** RouterDeviceAuth controllerName. */ + public controllerName: string; + + /** RouterDeviceAuth controllerUid. */ public controllerUid: Uint8Array; - /** ConnectionParameters credentialsRecordUid. */ - public credentialsRecordUid: Uint8Array; + /** RouterDeviceAuth ownerUser. */ + public ownerUser: string; + + /** RouterDeviceAuth challenge. */ + public challenge: string; + + /** RouterDeviceAuth ownerId. */ + public ownerId: number; + + /** RouterDeviceAuth maxInstanceCount. */ + public maxInstanceCount: number; /** - * Creates a new ConnectionParameters instance using the specified properties. + * Creates a new RouterDeviceAuth instance using the specified properties. * @param [properties] Properties to set - * @returns ConnectionParameters instance + * @returns RouterDeviceAuth instance */ - public static create(properties?: Router.IConnectionParameters): Router.ConnectionParameters; + public static create(properties?: Router.IRouterDeviceAuth): Router.RouterDeviceAuth; /** - * Encodes the specified ConnectionParameters message. Does not implicitly {@link Router.ConnectionParameters.verify|verify} messages. - * @param message ConnectionParameters message or plain object to encode + * Encodes the specified RouterDeviceAuth message. Does not implicitly {@link Router.RouterDeviceAuth.verify|verify} messages. + * @param message RouterDeviceAuth message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IConnectionParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterDeviceAuth, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConnectionParameters message from the specified reader or buffer. + * Decodes a RouterDeviceAuth message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConnectionParameters + * @returns RouterDeviceAuth * @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): Router.ConnectionParameters; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterDeviceAuth; /** - * Creates a ConnectionParameters message from a plain object. Also converts values to their respective internal types. + * Creates a RouterDeviceAuth message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConnectionParameters + * @returns RouterDeviceAuth */ - public static fromObject(object: { [k: string]: any }): Router.ConnectionParameters; + public static fromObject(object: { [k: string]: any }): Router.RouterDeviceAuth; /** - * Creates a plain object from a ConnectionParameters message. Also converts values to other types if specified. - * @param message ConnectionParameters + * Creates a plain object from a RouterDeviceAuth message. Also converts values to other types if specified. + * @param message RouterDeviceAuth * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.ConnectionParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterDeviceAuth, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConnectionParameters to JSON. + * Converts this RouterDeviceAuth to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ConnectionParameters + * Gets the default type url for RouterDeviceAuth * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ValidateConnectionsRequest. */ - interface IValidateConnectionsRequest { + /** Properties of a RouterRecordRotation. */ + interface IRouterRecordRotation { - /** ValidateConnectionsRequest connections */ - connections?: (Router.IConnectionParameters[]|null); + /** RouterRecordRotation recordUid */ + recordUid?: (Uint8Array|null); + + /** RouterRecordRotation configurationUid */ + configurationUid?: (Uint8Array|null); + + /** RouterRecordRotation controllerUid */ + controllerUid?: (Uint8Array|null); + + /** RouterRecordRotation resourceUid */ + resourceUid?: (Uint8Array|null); + + /** RouterRecordRotation noSchedule */ + noSchedule?: (boolean|null); } - /** Represents a ValidateConnectionsRequest. */ - class ValidateConnectionsRequest implements IValidateConnectionsRequest { + /** Represents a RouterRecordRotation. */ + class RouterRecordRotation implements IRouterRecordRotation { /** - * Constructs a new ValidateConnectionsRequest. + * Constructs a new RouterRecordRotation. * @param [properties] Properties to set */ - constructor(properties?: Router.IValidateConnectionsRequest); + constructor(properties?: Router.IRouterRecordRotation); - /** ValidateConnectionsRequest connections. */ - public connections: Router.IConnectionParameters[]; + /** RouterRecordRotation recordUid. */ + public recordUid: Uint8Array; + + /** RouterRecordRotation configurationUid. */ + public configurationUid: Uint8Array; + + /** RouterRecordRotation controllerUid. */ + public controllerUid: Uint8Array; + + /** RouterRecordRotation resourceUid. */ + public resourceUid: Uint8Array; + + /** RouterRecordRotation noSchedule. */ + public noSchedule: boolean; /** - * Creates a new ValidateConnectionsRequest instance using the specified properties. + * Creates a new RouterRecordRotation instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateConnectionsRequest instance + * @returns RouterRecordRotation instance */ - public static create(properties?: Router.IValidateConnectionsRequest): Router.ValidateConnectionsRequest; + public static create(properties?: Router.IRouterRecordRotation): Router.RouterRecordRotation; /** - * Encodes the specified ValidateConnectionsRequest message. Does not implicitly {@link Router.ValidateConnectionsRequest.verify|verify} messages. - * @param message ValidateConnectionsRequest message or plain object to encode + * Encodes the specified RouterRecordRotation message. Does not implicitly {@link Router.RouterRecordRotation.verify|verify} messages. + * @param message RouterRecordRotation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IValidateConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterRecordRotation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateConnectionsRequest message from the specified reader or buffer. + * Decodes a RouterRecordRotation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateConnectionsRequest + * @returns RouterRecordRotation * @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): Router.ValidateConnectionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordRotation; /** - * Creates a ValidateConnectionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RouterRecordRotation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateConnectionsRequest + * @returns RouterRecordRotation */ - public static fromObject(object: { [k: string]: any }): Router.ValidateConnectionsRequest; + public static fromObject(object: { [k: string]: any }): Router.RouterRecordRotation; /** - * Creates a plain object from a ValidateConnectionsRequest message. Also converts values to other types if specified. - * @param message ValidateConnectionsRequest + * Creates a plain object from a RouterRecordRotation message. Also converts values to other types if specified. + * @param message RouterRecordRotation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.ValidateConnectionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterRecordRotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateConnectionsRequest to JSON. + * Converts this RouterRecordRotation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateConnectionsRequest + * Gets the default type url for RouterRecordRotation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ConnectionValidationFailure. */ - interface IConnectionValidationFailure { + /** Properties of a RouterRecordRotationsRequest. */ + interface IRouterRecordRotationsRequest { - /** ConnectionValidationFailure connectionUid */ - connectionUid?: (Uint8Array|null); + /** RouterRecordRotationsRequest enterpriseId */ + enterpriseId?: (number|null); - /** ConnectionValidationFailure errorMessage */ - errorMessage?: (string|null); + /** RouterRecordRotationsRequest records */ + records?: (Uint8Array[]|null); } - /** Represents a ConnectionValidationFailure. */ - class ConnectionValidationFailure implements IConnectionValidationFailure { + /** Represents a RouterRecordRotationsRequest. */ + class RouterRecordRotationsRequest implements IRouterRecordRotationsRequest { /** - * Constructs a new ConnectionValidationFailure. + * Constructs a new RouterRecordRotationsRequest. * @param [properties] Properties to set */ - constructor(properties?: Router.IConnectionValidationFailure); + constructor(properties?: Router.IRouterRecordRotationsRequest); - /** ConnectionValidationFailure connectionUid. */ - public connectionUid: Uint8Array; + /** RouterRecordRotationsRequest enterpriseId. */ + public enterpriseId: number; - /** ConnectionValidationFailure errorMessage. */ - public errorMessage: string; + /** RouterRecordRotationsRequest records. */ + public records: Uint8Array[]; /** - * Creates a new ConnectionValidationFailure instance using the specified properties. + * Creates a new RouterRecordRotationsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ConnectionValidationFailure instance + * @returns RouterRecordRotationsRequest instance */ - public static create(properties?: Router.IConnectionValidationFailure): Router.ConnectionValidationFailure; + public static create(properties?: Router.IRouterRecordRotationsRequest): Router.RouterRecordRotationsRequest; /** - * Encodes the specified ConnectionValidationFailure message. Does not implicitly {@link Router.ConnectionValidationFailure.verify|verify} messages. - * @param message ConnectionValidationFailure message or plain object to encode + * Encodes the specified RouterRecordRotationsRequest message. Does not implicitly {@link Router.RouterRecordRotationsRequest.verify|verify} messages. + * @param message RouterRecordRotationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IConnectionValidationFailure, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterRecordRotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConnectionValidationFailure message from the specified reader or buffer. + * Decodes a RouterRecordRotationsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConnectionValidationFailure + * @returns RouterRecordRotationsRequest * @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): Router.ConnectionValidationFailure; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordRotationsRequest; /** - * Creates a ConnectionValidationFailure message from a plain object. Also converts values to their respective internal types. + * Creates a RouterRecordRotationsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConnectionValidationFailure + * @returns RouterRecordRotationsRequest */ - public static fromObject(object: { [k: string]: any }): Router.ConnectionValidationFailure; + public static fromObject(object: { [k: string]: any }): Router.RouterRecordRotationsRequest; /** - * Creates a plain object from a ConnectionValidationFailure message. Also converts values to other types if specified. - * @param message ConnectionValidationFailure + * Creates a plain object from a RouterRecordRotationsRequest message. Also converts values to other types if specified. + * @param message RouterRecordRotationsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.ConnectionValidationFailure, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterRecordRotationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConnectionValidationFailure to JSON. + * Converts this RouterRecordRotationsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ConnectionValidationFailure + * Gets the default type url for RouterRecordRotationsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ValidateConnectionsResponse. */ - interface IValidateConnectionsResponse { + /** Properties of a RouterRecordRotationsResponse. */ + interface IRouterRecordRotationsResponse { - /** ValidateConnectionsResponse failedConnections */ - failedConnections?: (Router.IConnectionValidationFailure[]|null); + /** RouterRecordRotationsResponse rotations */ + rotations?: (Router.IRouterRecordRotation[]|null); + + /** RouterRecordRotationsResponse hasMore */ + hasMore?: (boolean|null); } - /** Represents a ValidateConnectionsResponse. */ - class ValidateConnectionsResponse implements IValidateConnectionsResponse { + /** Represents a RouterRecordRotationsResponse. */ + class RouterRecordRotationsResponse implements IRouterRecordRotationsResponse { /** - * Constructs a new ValidateConnectionsResponse. + * Constructs a new RouterRecordRotationsResponse. * @param [properties] Properties to set */ - constructor(properties?: Router.IValidateConnectionsResponse); + constructor(properties?: Router.IRouterRecordRotationsResponse); - /** ValidateConnectionsResponse failedConnections. */ - public failedConnections: Router.IConnectionValidationFailure[]; + /** RouterRecordRotationsResponse rotations. */ + public rotations: Router.IRouterRecordRotation[]; + + /** RouterRecordRotationsResponse hasMore. */ + public hasMore: boolean; /** - * Creates a new ValidateConnectionsResponse instance using the specified properties. + * Creates a new RouterRecordRotationsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateConnectionsResponse instance + * @returns RouterRecordRotationsResponse instance */ - public static create(properties?: Router.IValidateConnectionsResponse): Router.ValidateConnectionsResponse; + public static create(properties?: Router.IRouterRecordRotationsResponse): Router.RouterRecordRotationsResponse; /** - * Encodes the specified ValidateConnectionsResponse message. Does not implicitly {@link Router.ValidateConnectionsResponse.verify|verify} messages. - * @param message ValidateConnectionsResponse message or plain object to encode + * Encodes the specified RouterRecordRotationsResponse message. Does not implicitly {@link Router.RouterRecordRotationsResponse.verify|verify} messages. + * @param message RouterRecordRotationsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IValidateConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterRecordRotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateConnectionsResponse message from the specified reader or buffer. + * Decodes a RouterRecordRotationsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateConnectionsResponse + * @returns RouterRecordRotationsResponse * @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): Router.ValidateConnectionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordRotationsResponse; /** - * Creates a ValidateConnectionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RouterRecordRotationsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateConnectionsResponse + * @returns RouterRecordRotationsResponse */ - public static fromObject(object: { [k: string]: any }): Router.ValidateConnectionsResponse; + public static fromObject(object: { [k: string]: any }): Router.RouterRecordRotationsResponse; /** - * Creates a plain object from a ValidateConnectionsResponse message. Also converts values to other types if specified. - * @param message ValidateConnectionsResponse + * Creates a plain object from a RouterRecordRotationsResponse message. Also converts values to other types if specified. + * @param message RouterRecordRotationsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.ValidateConnectionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterRecordRotationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateConnectionsResponse to JSON. + * Converts this RouterRecordRotationsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateConnectionsResponse + * Gets the default type url for RouterRecordRotationsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetEnforcementRequest. */ - interface IGetEnforcementRequest { + /** RouterRotationStatus enum. */ + enum RouterRotationStatus { + RRS_ONLINE = 0, + RRS_NO_ROTATION = 1, + RRS_NO_CONTROLLER = 2, + RRS_CONTROLLER_DOWN = 3 + } - /** GetEnforcementRequest enterpriseUserId */ - enterpriseUserId?: (number|null); + /** Properties of a RouterRotationInfo. */ + interface IRouterRotationInfo { + + /** RouterRotationInfo status */ + status?: (Router.RouterRotationStatus|null); + + /** RouterRotationInfo configurationUid */ + configurationUid?: (Uint8Array|null); + + /** RouterRotationInfo resourceUid */ + resourceUid?: (Uint8Array|null); + + /** RouterRotationInfo nodeId */ + nodeId?: (number|null); + + /** RouterRotationInfo controllerUid */ + controllerUid?: (Uint8Array|null); + + /** RouterRotationInfo controllerName */ + controllerName?: (string|null); + + /** RouterRotationInfo scriptName */ + scriptName?: (string|null); + + /** RouterRotationInfo pwdComplexity */ + pwdComplexity?: (string|null); + + /** RouterRotationInfo disabled */ + disabled?: (boolean|null); } - /** Represents a GetEnforcementRequest. */ - class GetEnforcementRequest implements IGetEnforcementRequest { + /** Represents a RouterRotationInfo. */ + class RouterRotationInfo implements IRouterRotationInfo { /** - * Constructs a new GetEnforcementRequest. + * Constructs a new RouterRotationInfo. * @param [properties] Properties to set */ - constructor(properties?: Router.IGetEnforcementRequest); + constructor(properties?: Router.IRouterRotationInfo); - /** GetEnforcementRequest enterpriseUserId. */ - public enterpriseUserId: number; + /** RouterRotationInfo status. */ + public status: Router.RouterRotationStatus; + + /** RouterRotationInfo configurationUid. */ + public configurationUid: Uint8Array; + + /** RouterRotationInfo resourceUid. */ + public resourceUid: Uint8Array; + + /** RouterRotationInfo nodeId. */ + public nodeId: number; + + /** RouterRotationInfo controllerUid. */ + public controllerUid: Uint8Array; + + /** RouterRotationInfo controllerName. */ + public controllerName: string; + + /** RouterRotationInfo scriptName. */ + public scriptName: string; + + /** RouterRotationInfo pwdComplexity. */ + public pwdComplexity: string; + + /** RouterRotationInfo disabled. */ + public disabled: boolean; /** - * Creates a new GetEnforcementRequest instance using the specified properties. + * Creates a new RouterRotationInfo instance using the specified properties. * @param [properties] Properties to set - * @returns GetEnforcementRequest instance + * @returns RouterRotationInfo instance */ - public static create(properties?: Router.IGetEnforcementRequest): Router.GetEnforcementRequest; + public static create(properties?: Router.IRouterRotationInfo): Router.RouterRotationInfo; /** - * Encodes the specified GetEnforcementRequest message. Does not implicitly {@link Router.GetEnforcementRequest.verify|verify} messages. - * @param message GetEnforcementRequest message or plain object to encode + * Encodes the specified RouterRotationInfo message. Does not implicitly {@link Router.RouterRotationInfo.verify|verify} messages. + * @param message RouterRotationInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IGetEnforcementRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterRotationInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEnforcementRequest message from the specified reader or buffer. + * Decodes a RouterRotationInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetEnforcementRequest + * @returns RouterRotationInfo * @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): Router.GetEnforcementRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRotationInfo; /** - * Creates a GetEnforcementRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RouterRotationInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetEnforcementRequest + * @returns RouterRotationInfo */ - public static fromObject(object: { [k: string]: any }): Router.GetEnforcementRequest; + public static fromObject(object: { [k: string]: any }): Router.RouterRotationInfo; /** - * Creates a plain object from a GetEnforcementRequest message. Also converts values to other types if specified. - * @param message GetEnforcementRequest + * Creates a plain object from a RouterRotationInfo message. Also converts values to other types if specified. + * @param message RouterRotationInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.GetEnforcementRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterRotationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetEnforcementRequest to JSON. + * Converts this RouterRotationInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for GetEnforcementRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for RouterRotationInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RouterRecordRotationRequest. */ + interface IRouterRecordRotationRequest { + + /** RouterRecordRotationRequest recordUid */ + recordUid?: (Uint8Array|null); + + /** RouterRecordRotationRequest revision */ + revision?: (number|null); + + /** RouterRecordRotationRequest configurationUid */ + configurationUid?: (Uint8Array|null); + + /** RouterRecordRotationRequest resourceUid */ + resourceUid?: (Uint8Array|null); + + /** RouterRecordRotationRequest schedule */ + schedule?: (string|null); + + /** RouterRecordRotationRequest enterpriseUserId */ + enterpriseUserId?: (number|null); + + /** RouterRecordRotationRequest pwdComplexity */ + pwdComplexity?: (Uint8Array|null); + + /** RouterRecordRotationRequest disabled */ + disabled?: (boolean|null); + + /** RouterRecordRotationRequest remoteAddress */ + remoteAddress?: (string|null); + + /** RouterRecordRotationRequest clientVersionId */ + clientVersionId?: (number|null); + + /** RouterRecordRotationRequest noop */ + noop?: (boolean|null); + + /** RouterRecordRotationRequest saasConfiguration */ + saasConfiguration?: (Uint8Array|null); + + /** RouterRecordRotationRequest updateServices */ + updateServices?: (boolean|null); + + /** RouterRecordRotationRequest serviceResources */ + serviceResources?: (PAM.IUidList|null); + } + + /** Represents a RouterRecordRotationRequest. */ + class RouterRecordRotationRequest implements IRouterRecordRotationRequest { + + /** + * Constructs a new RouterRecordRotationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: Router.IRouterRecordRotationRequest); + + /** RouterRecordRotationRequest recordUid. */ + public recordUid: Uint8Array; + + /** RouterRecordRotationRequest revision. */ + public revision: number; + + /** RouterRecordRotationRequest configurationUid. */ + public configurationUid: Uint8Array; + + /** RouterRecordRotationRequest resourceUid. */ + public resourceUid: Uint8Array; + + /** RouterRecordRotationRequest schedule. */ + public schedule: string; + + /** RouterRecordRotationRequest enterpriseUserId. */ + public enterpriseUserId: number; - /** Properties of an EnforcementType. */ - interface IEnforcementType { + /** RouterRecordRotationRequest pwdComplexity. */ + public pwdComplexity: Uint8Array; - /** EnforcementType enforcementTypeId */ - enforcementTypeId?: (number|null); + /** RouterRecordRotationRequest disabled. */ + public disabled: boolean; - /** EnforcementType value */ - value?: (string|null); - } + /** RouterRecordRotationRequest remoteAddress. */ + public remoteAddress: string; - /** Represents an EnforcementType. */ - class EnforcementType implements IEnforcementType { + /** RouterRecordRotationRequest clientVersionId. */ + public clientVersionId: number; - /** - * Constructs a new EnforcementType. - * @param [properties] Properties to set - */ - constructor(properties?: Router.IEnforcementType); + /** RouterRecordRotationRequest noop. */ + public noop: boolean; - /** EnforcementType enforcementTypeId. */ - public enforcementTypeId: number; + /** RouterRecordRotationRequest saasConfiguration. */ + public saasConfiguration?: (Uint8Array|null); - /** EnforcementType value. */ - public value: string; + /** RouterRecordRotationRequest updateServices. */ + public updateServices?: (boolean|null); + + /** RouterRecordRotationRequest serviceResources. */ + public serviceResources?: (PAM.IUidList|null); /** - * Creates a new EnforcementType instance using the specified properties. + * Creates a new RouterRecordRotationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns EnforcementType instance + * @returns RouterRecordRotationRequest instance */ - public static create(properties?: Router.IEnforcementType): Router.EnforcementType; + public static create(properties?: Router.IRouterRecordRotationRequest): Router.RouterRecordRotationRequest; /** - * Encodes the specified EnforcementType message. Does not implicitly {@link Router.EnforcementType.verify|verify} messages. - * @param message EnforcementType message or plain object to encode + * Encodes the specified RouterRecordRotationRequest message. Does not implicitly {@link Router.RouterRecordRotationRequest.verify|verify} messages. + * @param message RouterRecordRotationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IEnforcementType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterRecordRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnforcementType message from the specified reader or buffer. + * Decodes a RouterRecordRotationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnforcementType + * @returns RouterRecordRotationRequest * @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): Router.EnforcementType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordRotationRequest; /** - * Creates an EnforcementType message from a plain object. Also converts values to their respective internal types. + * Creates a RouterRecordRotationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnforcementType + * @returns RouterRecordRotationRequest */ - public static fromObject(object: { [k: string]: any }): Router.EnforcementType; + public static fromObject(object: { [k: string]: any }): Router.RouterRecordRotationRequest; /** - * Creates a plain object from an EnforcementType message. Also converts values to other types if specified. - * @param message EnforcementType + * Creates a plain object from a RouterRecordRotationRequest message. Also converts values to other types if specified. + * @param message RouterRecordRotationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.EnforcementType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterRecordRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnforcementType to JSON. + * Converts this RouterRecordRotationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EnforcementType + * Gets the default type url for RouterRecordRotationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetEnforcementResponse. */ - interface IGetEnforcementResponse { - - /** GetEnforcementResponse enforcementTypes */ - enforcementTypes?: (Router.IEnforcementType[]|null); + /** Properties of a UserRecordAccessRequest. */ + interface IUserRecordAccessRequest { - /** GetEnforcementResponse addOnIds */ - addOnIds?: (number[]|null); + /** UserRecordAccessRequest userId */ + userId?: (number|null); - /** GetEnforcementResponse isInTrial */ - isInTrial?: (boolean|null); + /** UserRecordAccessRequest recordUid */ + recordUid?: (Uint8Array|null); } - /** Represents a GetEnforcementResponse. */ - class GetEnforcementResponse implements IGetEnforcementResponse { + /** Represents a UserRecordAccessRequest. */ + class UserRecordAccessRequest implements IUserRecordAccessRequest { /** - * Constructs a new GetEnforcementResponse. + * Constructs a new UserRecordAccessRequest. * @param [properties] Properties to set */ - constructor(properties?: Router.IGetEnforcementResponse); - - /** GetEnforcementResponse enforcementTypes. */ - public enforcementTypes: Router.IEnforcementType[]; + constructor(properties?: Router.IUserRecordAccessRequest); - /** GetEnforcementResponse addOnIds. */ - public addOnIds: number[]; + /** UserRecordAccessRequest userId. */ + public userId: number; - /** GetEnforcementResponse isInTrial. */ - public isInTrial: boolean; + /** UserRecordAccessRequest recordUid. */ + public recordUid: Uint8Array; /** - * Creates a new GetEnforcementResponse instance using the specified properties. + * Creates a new UserRecordAccessRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetEnforcementResponse instance + * @returns UserRecordAccessRequest instance */ - public static create(properties?: Router.IGetEnforcementResponse): Router.GetEnforcementResponse; + public static create(properties?: Router.IUserRecordAccessRequest): Router.UserRecordAccessRequest; /** - * Encodes the specified GetEnforcementResponse message. Does not implicitly {@link Router.GetEnforcementResponse.verify|verify} messages. - * @param message GetEnforcementResponse message or plain object to encode + * Encodes the specified UserRecordAccessRequest message. Does not implicitly {@link Router.UserRecordAccessRequest.verify|verify} messages. + * @param message UserRecordAccessRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IGetEnforcementResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IUserRecordAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEnforcementResponse message from the specified reader or buffer. + * Decodes a UserRecordAccessRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetEnforcementResponse + * @returns UserRecordAccessRequest * @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): Router.GetEnforcementResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserRecordAccessRequest; /** - * Creates a GetEnforcementResponse message from a plain object. Also converts values to their respective internal types. + * Creates a UserRecordAccessRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetEnforcementResponse + * @returns UserRecordAccessRequest */ - public static fromObject(object: { [k: string]: any }): Router.GetEnforcementResponse; + public static fromObject(object: { [k: string]: any }): Router.UserRecordAccessRequest; /** - * Creates a plain object from a GetEnforcementResponse message. Also converts values to other types if specified. - * @param message GetEnforcementResponse + * Creates a plain object from a UserRecordAccessRequest message. Also converts values to other types if specified. + * @param message UserRecordAccessRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.GetEnforcementResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.UserRecordAccessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetEnforcementResponse to JSON. + * Converts this UserRecordAccessRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetEnforcementResponse + * Gets the default type url for UserRecordAccessRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PEDMTOTPValidateRequest. */ - interface IPEDMTOTPValidateRequest { + /** UserRecordAccessLevel enum. */ + enum UserRecordAccessLevel { + RRAL_NONE = 0, + RRAL_READ = 1, + RRAL_SHARE = 2, + RRAL_EDIT = 3, + RRAL_EDIT_AND_SHARE = 4, + RRAL_OWNER = 5 + } - /** PEDMTOTPValidateRequest username */ - username?: (string|null); + /** Properties of a UserRecordAccessResponse. */ + interface IUserRecordAccessResponse { - /** PEDMTOTPValidateRequest enterpriseId */ - enterpriseId?: (number|null); + /** UserRecordAccessResponse recordUid */ + recordUid?: (Uint8Array|null); - /** PEDMTOTPValidateRequest code */ - code?: (number|null); + /** UserRecordAccessResponse accessLevel */ + accessLevel?: (Router.UserRecordAccessLevel|null); + + /** UserRecordAccessResponse isShareAdmin */ + isShareAdmin?: (boolean|null); } - /** Represents a PEDMTOTPValidateRequest. */ - class PEDMTOTPValidateRequest implements IPEDMTOTPValidateRequest { + /** Represents a UserRecordAccessResponse. */ + class UserRecordAccessResponse implements IUserRecordAccessResponse { /** - * Constructs a new PEDMTOTPValidateRequest. + * Constructs a new UserRecordAccessResponse. * @param [properties] Properties to set */ - constructor(properties?: Router.IPEDMTOTPValidateRequest); + constructor(properties?: Router.IUserRecordAccessResponse); - /** PEDMTOTPValidateRequest username. */ - public username: string; + /** UserRecordAccessResponse recordUid. */ + public recordUid: Uint8Array; - /** PEDMTOTPValidateRequest enterpriseId. */ - public enterpriseId: number; + /** UserRecordAccessResponse accessLevel. */ + public accessLevel: Router.UserRecordAccessLevel; - /** PEDMTOTPValidateRequest code. */ - public code: number; + /** UserRecordAccessResponse isShareAdmin. */ + public isShareAdmin: boolean; /** - * Creates a new PEDMTOTPValidateRequest instance using the specified properties. + * Creates a new UserRecordAccessResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PEDMTOTPValidateRequest instance + * @returns UserRecordAccessResponse instance */ - public static create(properties?: Router.IPEDMTOTPValidateRequest): Router.PEDMTOTPValidateRequest; + public static create(properties?: Router.IUserRecordAccessResponse): Router.UserRecordAccessResponse; /** - * Encodes the specified PEDMTOTPValidateRequest message. Does not implicitly {@link Router.PEDMTOTPValidateRequest.verify|verify} messages. - * @param message PEDMTOTPValidateRequest message or plain object to encode + * Encodes the specified UserRecordAccessResponse message. Does not implicitly {@link Router.UserRecordAccessResponse.verify|verify} messages. + * @param message UserRecordAccessResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IPEDMTOTPValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IUserRecordAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PEDMTOTPValidateRequest message from the specified reader or buffer. + * Decodes a UserRecordAccessResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PEDMTOTPValidateRequest + * @returns UserRecordAccessResponse * @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): Router.PEDMTOTPValidateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserRecordAccessResponse; /** - * Creates a PEDMTOTPValidateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a UserRecordAccessResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PEDMTOTPValidateRequest + * @returns UserRecordAccessResponse */ - public static fromObject(object: { [k: string]: any }): Router.PEDMTOTPValidateRequest; + public static fromObject(object: { [k: string]: any }): Router.UserRecordAccessResponse; /** - * Creates a plain object from a PEDMTOTPValidateRequest message. Also converts values to other types if specified. - * @param message PEDMTOTPValidateRequest + * Creates a plain object from a UserRecordAccessResponse message. Also converts values to other types if specified. + * @param message UserRecordAccessResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.PEDMTOTPValidateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.UserRecordAccessResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PEDMTOTPValidateRequest to JSON. + * Converts this UserRecordAccessResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PEDMTOTPValidateRequest + * Gets the default type url for UserRecordAccessResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetPEDMAdminInfoResponse. */ - interface IGetPEDMAdminInfoResponse { - - /** GetPEDMAdminInfoResponse isPedmAdmin */ - isPedmAdmin?: (boolean|null); + /** Properties of a UserRecordAccessRequests. */ + interface IUserRecordAccessRequests { - /** GetPEDMAdminInfoResponse pedmAddonActive */ - pedmAddonActive?: (boolean|null); + /** UserRecordAccessRequests requests */ + requests?: (Router.IUserRecordAccessRequest[]|null); } - /** Represents a GetPEDMAdminInfoResponse. */ - class GetPEDMAdminInfoResponse implements IGetPEDMAdminInfoResponse { + /** Represents a UserRecordAccessRequests. */ + class UserRecordAccessRequests implements IUserRecordAccessRequests { /** - * Constructs a new GetPEDMAdminInfoResponse. + * Constructs a new UserRecordAccessRequests. * @param [properties] Properties to set */ - constructor(properties?: Router.IGetPEDMAdminInfoResponse); - - /** GetPEDMAdminInfoResponse isPedmAdmin. */ - public isPedmAdmin: boolean; + constructor(properties?: Router.IUserRecordAccessRequests); - /** GetPEDMAdminInfoResponse pedmAddonActive. */ - public pedmAddonActive: boolean; + /** UserRecordAccessRequests requests. */ + public requests: Router.IUserRecordAccessRequest[]; /** - * Creates a new GetPEDMAdminInfoResponse instance using the specified properties. + * Creates a new UserRecordAccessRequests instance using the specified properties. * @param [properties] Properties to set - * @returns GetPEDMAdminInfoResponse instance + * @returns UserRecordAccessRequests instance */ - public static create(properties?: Router.IGetPEDMAdminInfoResponse): Router.GetPEDMAdminInfoResponse; + public static create(properties?: Router.IUserRecordAccessRequests): Router.UserRecordAccessRequests; /** - * Encodes the specified GetPEDMAdminInfoResponse message. Does not implicitly {@link Router.GetPEDMAdminInfoResponse.verify|verify} messages. - * @param message GetPEDMAdminInfoResponse message or plain object to encode + * Encodes the specified UserRecordAccessRequests message. Does not implicitly {@link Router.UserRecordAccessRequests.verify|verify} messages. + * @param message UserRecordAccessRequests message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IGetPEDMAdminInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IUserRecordAccessRequests, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPEDMAdminInfoResponse message from the specified reader or buffer. + * Decodes a UserRecordAccessRequests message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetPEDMAdminInfoResponse + * @returns UserRecordAccessRequests * @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): Router.GetPEDMAdminInfoResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserRecordAccessRequests; /** - * Creates a GetPEDMAdminInfoResponse message from a plain object. Also converts values to their respective internal types. + * Creates a UserRecordAccessRequests message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetPEDMAdminInfoResponse + * @returns UserRecordAccessRequests */ - public static fromObject(object: { [k: string]: any }): Router.GetPEDMAdminInfoResponse; + public static fromObject(object: { [k: string]: any }): Router.UserRecordAccessRequests; /** - * Creates a plain object from a GetPEDMAdminInfoResponse message. Also converts values to other types if specified. - * @param message GetPEDMAdminInfoResponse + * Creates a plain object from a UserRecordAccessRequests message. Also converts values to other types if specified. + * @param message UserRecordAccessRequests * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.GetPEDMAdminInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.UserRecordAccessRequests, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPEDMAdminInfoResponse to JSON. + * Converts this UserRecordAccessRequests to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetPEDMAdminInfoResponse + * Gets the default type url for UserRecordAccessRequests * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMNetworkSettings. */ - interface IPAMNetworkSettings { - - /** PAMNetworkSettings allowedSettings */ - allowedSettings?: (Uint8Array|null); - - /** PAMNetworkSettings idpConfigUid */ - idpConfigUid?: (Uint8Array|null); + /** Properties of a UserRecordAccessResponses. */ + interface IUserRecordAccessResponses { - /** PAMNetworkSettings adminUid */ - adminUid?: (Uint8Array|null); + /** UserRecordAccessResponses responses */ + responses?: (Router.IUserRecordAccessResponse[]|null); } - /** Represents a PAMNetworkSettings. */ - class PAMNetworkSettings implements IPAMNetworkSettings { + /** Represents a UserRecordAccessResponses. */ + class UserRecordAccessResponses implements IUserRecordAccessResponses { /** - * Constructs a new PAMNetworkSettings. + * Constructs a new UserRecordAccessResponses. * @param [properties] Properties to set */ - constructor(properties?: Router.IPAMNetworkSettings); - - /** PAMNetworkSettings allowedSettings. */ - public allowedSettings: Uint8Array; - - /** PAMNetworkSettings idpConfigUid. */ - public idpConfigUid?: (Uint8Array|null); + constructor(properties?: Router.IUserRecordAccessResponses); - /** PAMNetworkSettings adminUid. */ - public adminUid?: (Uint8Array|null); + /** UserRecordAccessResponses responses. */ + public responses: Router.IUserRecordAccessResponse[]; /** - * Creates a new PAMNetworkSettings instance using the specified properties. + * Creates a new UserRecordAccessResponses instance using the specified properties. * @param [properties] Properties to set - * @returns PAMNetworkSettings instance + * @returns UserRecordAccessResponses instance */ - public static create(properties?: Router.IPAMNetworkSettings): Router.PAMNetworkSettings; + public static create(properties?: Router.IUserRecordAccessResponses): Router.UserRecordAccessResponses; /** - * Encodes the specified PAMNetworkSettings message. Does not implicitly {@link Router.PAMNetworkSettings.verify|verify} messages. - * @param message PAMNetworkSettings message or plain object to encode + * Encodes the specified UserRecordAccessResponses message. Does not implicitly {@link Router.UserRecordAccessResponses.verify|verify} messages. + * @param message UserRecordAccessResponses message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IPAMNetworkSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IUserRecordAccessResponses, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMNetworkSettings message from the specified reader or buffer. + * Decodes a UserRecordAccessResponses message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMNetworkSettings + * @returns UserRecordAccessResponses * @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): Router.PAMNetworkSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserRecordAccessResponses; /** - * Creates a PAMNetworkSettings message from a plain object. Also converts values to their respective internal types. + * Creates a UserRecordAccessResponses message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMNetworkSettings + * @returns UserRecordAccessResponses */ - public static fromObject(object: { [k: string]: any }): Router.PAMNetworkSettings; + public static fromObject(object: { [k: string]: any }): Router.UserRecordAccessResponses; /** - * Creates a plain object from a PAMNetworkSettings message. Also converts values to other types if specified. - * @param message PAMNetworkSettings + * Creates a plain object from a UserRecordAccessResponses message. Also converts values to other types if specified. + * @param message UserRecordAccessResponses * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.PAMNetworkSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.UserRecordAccessResponses, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMNetworkSettings to JSON. + * Converts this UserRecordAccessResponses to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMNetworkSettings + * Gets the default type url for UserRecordAccessResponses * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMNetworkConfigurationRequest. */ - interface IPAMNetworkConfigurationRequest { - - /** PAMNetworkConfigurationRequest recordUid */ - recordUid?: (Uint8Array|null); - - /** PAMNetworkConfigurationRequest networkSettings */ - networkSettings?: (Router.IPAMNetworkSettings|null); + /** Properties of a UserSharedFolderAccessRequest. */ + interface IUserSharedFolderAccessRequest { - /** PAMNetworkConfigurationRequest resources */ - resources?: (PAM.IPAMResourceConfig[]|null); + /** UserSharedFolderAccessRequest userId */ + userId?: (number|null); - /** PAMNetworkConfigurationRequest rotations */ - rotations?: (Router.IRouterRecordRotationRequest[]|null); + /** UserSharedFolderAccessRequest sharedFolderUid */ + sharedFolderUid?: (Uint8Array[]|null); } - /** Represents a PAMNetworkConfigurationRequest. */ - class PAMNetworkConfigurationRequest implements IPAMNetworkConfigurationRequest { + /** Represents a UserSharedFolderAccessRequest. */ + class UserSharedFolderAccessRequest implements IUserSharedFolderAccessRequest { /** - * Constructs a new PAMNetworkConfigurationRequest. + * Constructs a new UserSharedFolderAccessRequest. * @param [properties] Properties to set */ - constructor(properties?: Router.IPAMNetworkConfigurationRequest); - - /** PAMNetworkConfigurationRequest recordUid. */ - public recordUid: Uint8Array; - - /** PAMNetworkConfigurationRequest networkSettings. */ - public networkSettings?: (Router.IPAMNetworkSettings|null); + constructor(properties?: Router.IUserSharedFolderAccessRequest); - /** PAMNetworkConfigurationRequest resources. */ - public resources: PAM.IPAMResourceConfig[]; + /** UserSharedFolderAccessRequest userId. */ + public userId: number; - /** PAMNetworkConfigurationRequest rotations. */ - public rotations: Router.IRouterRecordRotationRequest[]; + /** UserSharedFolderAccessRequest sharedFolderUid. */ + public sharedFolderUid: Uint8Array[]; /** - * Creates a new PAMNetworkConfigurationRequest instance using the specified properties. + * Creates a new UserSharedFolderAccessRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMNetworkConfigurationRequest instance + * @returns UserSharedFolderAccessRequest instance */ - public static create(properties?: Router.IPAMNetworkConfigurationRequest): Router.PAMNetworkConfigurationRequest; + public static create(properties?: Router.IUserSharedFolderAccessRequest): Router.UserSharedFolderAccessRequest; /** - * Encodes the specified PAMNetworkConfigurationRequest message. Does not implicitly {@link Router.PAMNetworkConfigurationRequest.verify|verify} messages. - * @param message PAMNetworkConfigurationRequest message or plain object to encode + * Encodes the specified UserSharedFolderAccessRequest message. Does not implicitly {@link Router.UserSharedFolderAccessRequest.verify|verify} messages. + * @param message UserSharedFolderAccessRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IPAMNetworkConfigurationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IUserSharedFolderAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMNetworkConfigurationRequest message from the specified reader or buffer. + * Decodes a UserSharedFolderAccessRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMNetworkConfigurationRequest + * @returns UserSharedFolderAccessRequest * @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): Router.PAMNetworkConfigurationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserSharedFolderAccessRequest; /** - * Creates a PAMNetworkConfigurationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a UserSharedFolderAccessRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMNetworkConfigurationRequest + * @returns UserSharedFolderAccessRequest */ - public static fromObject(object: { [k: string]: any }): Router.PAMNetworkConfigurationRequest; + public static fromObject(object: { [k: string]: any }): Router.UserSharedFolderAccessRequest; /** - * Creates a plain object from a PAMNetworkConfigurationRequest message. Also converts values to other types if specified. - * @param message PAMNetworkConfigurationRequest + * Creates a plain object from a UserSharedFolderAccessRequest message. Also converts values to other types if specified. + * @param message UserSharedFolderAccessRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.PAMNetworkConfigurationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.UserSharedFolderAccessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMNetworkConfigurationRequest to JSON. + * Converts this UserSharedFolderAccessRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMNetworkConfigurationRequest + * Gets the default type url for UserSharedFolderAccessRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMDiscoveryRulesSetRequest. */ - interface IPAMDiscoveryRulesSetRequest { - - /** PAMDiscoveryRulesSetRequest networkUid */ - networkUid?: (Uint8Array|null); + /** Properties of a UserSharedFolderAccessResponse. */ + interface IUserSharedFolderAccessResponse { - /** PAMDiscoveryRulesSetRequest rules */ - rules?: (Uint8Array|null); + /** UserSharedFolderAccessResponse sharedFolderUid */ + sharedFolderUid?: (Uint8Array|null); - /** PAMDiscoveryRulesSetRequest rulesKey */ - rulesKey?: (Uint8Array|null); + /** UserSharedFolderAccessResponse accessRoleType */ + accessRoleType?: (Folder.AccessRoleType|null); } - /** Represents a PAMDiscoveryRulesSetRequest. */ - class PAMDiscoveryRulesSetRequest implements IPAMDiscoveryRulesSetRequest { + /** Represents a UserSharedFolderAccessResponse. */ + class UserSharedFolderAccessResponse implements IUserSharedFolderAccessResponse { /** - * Constructs a new PAMDiscoveryRulesSetRequest. + * Constructs a new UserSharedFolderAccessResponse. * @param [properties] Properties to set */ - constructor(properties?: Router.IPAMDiscoveryRulesSetRequest); - - /** PAMDiscoveryRulesSetRequest networkUid. */ - public networkUid: Uint8Array; + constructor(properties?: Router.IUserSharedFolderAccessResponse); - /** PAMDiscoveryRulesSetRequest rules. */ - public rules: Uint8Array; + /** UserSharedFolderAccessResponse sharedFolderUid. */ + public sharedFolderUid: Uint8Array; - /** PAMDiscoveryRulesSetRequest rulesKey. */ - public rulesKey: Uint8Array; + /** UserSharedFolderAccessResponse accessRoleType. */ + public accessRoleType: Folder.AccessRoleType; /** - * Creates a new PAMDiscoveryRulesSetRequest instance using the specified properties. + * Creates a new UserSharedFolderAccessResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PAMDiscoveryRulesSetRequest instance + * @returns UserSharedFolderAccessResponse instance */ - public static create(properties?: Router.IPAMDiscoveryRulesSetRequest): Router.PAMDiscoveryRulesSetRequest; + public static create(properties?: Router.IUserSharedFolderAccessResponse): Router.UserSharedFolderAccessResponse; /** - * Encodes the specified PAMDiscoveryRulesSetRequest message. Does not implicitly {@link Router.PAMDiscoveryRulesSetRequest.verify|verify} messages. - * @param message PAMDiscoveryRulesSetRequest message or plain object to encode + * Encodes the specified UserSharedFolderAccessResponse message. Does not implicitly {@link Router.UserSharedFolderAccessResponse.verify|verify} messages. + * @param message UserSharedFolderAccessResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IPAMDiscoveryRulesSetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IUserSharedFolderAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMDiscoveryRulesSetRequest message from the specified reader or buffer. + * Decodes a UserSharedFolderAccessResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMDiscoveryRulesSetRequest + * @returns UserSharedFolderAccessResponse * @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): Router.PAMDiscoveryRulesSetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserSharedFolderAccessResponse; /** - * Creates a PAMDiscoveryRulesSetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a UserSharedFolderAccessResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMDiscoveryRulesSetRequest + * @returns UserSharedFolderAccessResponse */ - public static fromObject(object: { [k: string]: any }): Router.PAMDiscoveryRulesSetRequest; + public static fromObject(object: { [k: string]: any }): Router.UserSharedFolderAccessResponse; /** - * Creates a plain object from a PAMDiscoveryRulesSetRequest message. Also converts values to other types if specified. - * @param message PAMDiscoveryRulesSetRequest + * Creates a plain object from a UserSharedFolderAccessResponse message. Also converts values to other types if specified. + * @param message UserSharedFolderAccessResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.PAMDiscoveryRulesSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.UserSharedFolderAccessResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMDiscoveryRulesSetRequest to JSON. + * Converts this UserSharedFolderAccessResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMDiscoveryRulesSetRequest + * Gets the default type url for UserSharedFolderAccessResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Router2FAValidateRequest. */ - interface IRouter2FAValidateRequest { - - /** Router2FAValidateRequest transmissionKey */ - transmissionKey?: (Uint8Array|null); - - /** Router2FAValidateRequest sessionToken */ - sessionToken?: (Uint8Array|null); + /** Properties of a UserSharedFolderAccessResponses. */ + interface IUserSharedFolderAccessResponses { - /** Router2FAValidateRequest value */ - value?: (string|null); + /** UserSharedFolderAccessResponses responses */ + responses?: (Router.IUserSharedFolderAccessResponse[]|null); } - /** Represents a Router2FAValidateRequest. */ - class Router2FAValidateRequest implements IRouter2FAValidateRequest { + /** Represents a UserSharedFolderAccessResponses. */ + class UserSharedFolderAccessResponses implements IUserSharedFolderAccessResponses { /** - * Constructs a new Router2FAValidateRequest. + * Constructs a new UserSharedFolderAccessResponses. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouter2FAValidateRequest); - - /** Router2FAValidateRequest transmissionKey. */ - public transmissionKey: Uint8Array; - - /** Router2FAValidateRequest sessionToken. */ - public sessionToken: Uint8Array; + constructor(properties?: Router.IUserSharedFolderAccessResponses); - /** Router2FAValidateRequest value. */ - public value: string; + /** UserSharedFolderAccessResponses responses. */ + public responses: Router.IUserSharedFolderAccessResponse[]; /** - * Creates a new Router2FAValidateRequest instance using the specified properties. + * Creates a new UserSharedFolderAccessResponses instance using the specified properties. * @param [properties] Properties to set - * @returns Router2FAValidateRequest instance + * @returns UserSharedFolderAccessResponses instance */ - public static create(properties?: Router.IRouter2FAValidateRequest): Router.Router2FAValidateRequest; + public static create(properties?: Router.IUserSharedFolderAccessResponses): Router.UserSharedFolderAccessResponses; /** - * Encodes the specified Router2FAValidateRequest message. Does not implicitly {@link Router.Router2FAValidateRequest.verify|verify} messages. - * @param message Router2FAValidateRequest message or plain object to encode + * Encodes the specified UserSharedFolderAccessResponses message. Does not implicitly {@link Router.UserSharedFolderAccessResponses.verify|verify} messages. + * @param message UserSharedFolderAccessResponses message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IRouter2FAValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IUserSharedFolderAccessResponses, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Router2FAValidateRequest message from the specified reader or buffer. + * Decodes a UserSharedFolderAccessResponses message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Router2FAValidateRequest + * @returns UserSharedFolderAccessResponses * @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): Router.Router2FAValidateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserSharedFolderAccessResponses; /** - * Creates a Router2FAValidateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a UserSharedFolderAccessResponses message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Router2FAValidateRequest + * @returns UserSharedFolderAccessResponses */ - public static fromObject(object: { [k: string]: any }): Router.Router2FAValidateRequest; + public static fromObject(object: { [k: string]: any }): Router.UserSharedFolderAccessResponses; /** - * Creates a plain object from a Router2FAValidateRequest message. Also converts values to other types if specified. - * @param message Router2FAValidateRequest + * Creates a plain object from a UserSharedFolderAccessResponses message. Also converts values to other types if specified. + * @param message UserSharedFolderAccessResponses * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.Router2FAValidateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.UserSharedFolderAccessResponses, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Router2FAValidateRequest to JSON. + * Converts this UserSharedFolderAccessResponses to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Router2FAValidateRequest + * Gets the default type url for UserSharedFolderAccessResponses * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Router2FASendPushRequest. */ - interface IRouter2FASendPushRequest { - - /** Router2FASendPushRequest transmissionKey */ - transmissionKey?: (Uint8Array|null); + /** Properties of a UserFolderPermissionsRequest. */ + interface IUserFolderPermissionsRequest { - /** Router2FASendPushRequest sessionToken */ - sessionToken?: (Uint8Array|null); + /** UserFolderPermissionsRequest userId */ + userId?: (number|null); - /** Router2FASendPushRequest pushType */ - pushType?: (Authentication.TwoFactorPushType|null); + /** UserFolderPermissionsRequest folderUid */ + folderUid?: (Uint8Array[]|null); } - /** Represents a Router2FASendPushRequest. */ - class Router2FASendPushRequest implements IRouter2FASendPushRequest { + /** Represents a UserFolderPermissionsRequest. */ + class UserFolderPermissionsRequest implements IUserFolderPermissionsRequest { /** - * Constructs a new Router2FASendPushRequest. + * Constructs a new UserFolderPermissionsRequest. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouter2FASendPushRequest); - - /** Router2FASendPushRequest transmissionKey. */ - public transmissionKey: Uint8Array; + constructor(properties?: Router.IUserFolderPermissionsRequest); - /** Router2FASendPushRequest sessionToken. */ - public sessionToken: Uint8Array; + /** UserFolderPermissionsRequest userId. */ + public userId: number; - /** Router2FASendPushRequest pushType. */ - public pushType: Authentication.TwoFactorPushType; + /** UserFolderPermissionsRequest folderUid. */ + public folderUid: Uint8Array[]; /** - * Creates a new Router2FASendPushRequest instance using the specified properties. + * Creates a new UserFolderPermissionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Router2FASendPushRequest instance + * @returns UserFolderPermissionsRequest instance */ - public static create(properties?: Router.IRouter2FASendPushRequest): Router.Router2FASendPushRequest; + public static create(properties?: Router.IUserFolderPermissionsRequest): Router.UserFolderPermissionsRequest; /** - * Encodes the specified Router2FASendPushRequest message. Does not implicitly {@link Router.Router2FASendPushRequest.verify|verify} messages. - * @param message Router2FASendPushRequest message or plain object to encode + * Encodes the specified UserFolderPermissionsRequest message. Does not implicitly {@link Router.UserFolderPermissionsRequest.verify|verify} messages. + * @param message UserFolderPermissionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IRouter2FASendPushRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IUserFolderPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Router2FASendPushRequest message from the specified reader or buffer. + * Decodes a UserFolderPermissionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Router2FASendPushRequest + * @returns UserFolderPermissionsRequest * @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): Router.Router2FASendPushRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserFolderPermissionsRequest; /** - * Creates a Router2FASendPushRequest message from a plain object. Also converts values to their respective internal types. + * Creates a UserFolderPermissionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Router2FASendPushRequest + * @returns UserFolderPermissionsRequest */ - public static fromObject(object: { [k: string]: any }): Router.Router2FASendPushRequest; + public static fromObject(object: { [k: string]: any }): Router.UserFolderPermissionsRequest; /** - * Creates a plain object from a Router2FASendPushRequest message. Also converts values to other types if specified. - * @param message Router2FASendPushRequest + * Creates a plain object from a UserFolderPermissionsRequest message. Also converts values to other types if specified. + * @param message UserFolderPermissionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.Router2FASendPushRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.UserFolderPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Router2FASendPushRequest to JSON. + * Converts this UserFolderPermissionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Router2FASendPushRequest + * Gets the default type url for UserFolderPermissionsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Router2FAGetWebAuthnChallengeRequest. */ - interface IRouter2FAGetWebAuthnChallengeRequest { + /** Properties of a UserFolderPermissionsResponse. */ + interface IUserFolderPermissionsResponse { - /** Router2FAGetWebAuthnChallengeRequest transmissionKey */ - transmissionKey?: (Uint8Array|null); + /** UserFolderPermissionsResponse folderUid */ + folderUid?: (Uint8Array|null); - /** Router2FAGetWebAuthnChallengeRequest sessionToken */ - sessionToken?: (Uint8Array|null); + /** UserFolderPermissionsResponse permissions */ + permissions?: (Folder.IFolderPermissions|null); } - /** Represents a Router2FAGetWebAuthnChallengeRequest. */ - class Router2FAGetWebAuthnChallengeRequest implements IRouter2FAGetWebAuthnChallengeRequest { + /** Represents a UserFolderPermissionsResponse. */ + class UserFolderPermissionsResponse implements IUserFolderPermissionsResponse { /** - * Constructs a new Router2FAGetWebAuthnChallengeRequest. + * Constructs a new UserFolderPermissionsResponse. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouter2FAGetWebAuthnChallengeRequest); + constructor(properties?: Router.IUserFolderPermissionsResponse); - /** Router2FAGetWebAuthnChallengeRequest transmissionKey. */ - public transmissionKey: Uint8Array; + /** UserFolderPermissionsResponse folderUid. */ + public folderUid: Uint8Array; - /** Router2FAGetWebAuthnChallengeRequest sessionToken. */ - public sessionToken: Uint8Array; + /** UserFolderPermissionsResponse permissions. */ + public permissions?: (Folder.IFolderPermissions|null); /** - * Creates a new Router2FAGetWebAuthnChallengeRequest instance using the specified properties. + * Creates a new UserFolderPermissionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Router2FAGetWebAuthnChallengeRequest instance + * @returns UserFolderPermissionsResponse instance */ - public static create(properties?: Router.IRouter2FAGetWebAuthnChallengeRequest): Router.Router2FAGetWebAuthnChallengeRequest; + public static create(properties?: Router.IUserFolderPermissionsResponse): Router.UserFolderPermissionsResponse; /** - * Encodes the specified Router2FAGetWebAuthnChallengeRequest message. Does not implicitly {@link Router.Router2FAGetWebAuthnChallengeRequest.verify|verify} messages. - * @param message Router2FAGetWebAuthnChallengeRequest message or plain object to encode + * Encodes the specified UserFolderPermissionsResponse message. Does not implicitly {@link Router.UserFolderPermissionsResponse.verify|verify} messages. + * @param message UserFolderPermissionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IRouter2FAGetWebAuthnChallengeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IUserFolderPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Router2FAGetWebAuthnChallengeRequest message from the specified reader or buffer. + * Decodes a UserFolderPermissionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Router2FAGetWebAuthnChallengeRequest + * @returns UserFolderPermissionsResponse * @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): Router.Router2FAGetWebAuthnChallengeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserFolderPermissionsResponse; /** - * Creates a Router2FAGetWebAuthnChallengeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a UserFolderPermissionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Router2FAGetWebAuthnChallengeRequest + * @returns UserFolderPermissionsResponse */ - public static fromObject(object: { [k: string]: any }): Router.Router2FAGetWebAuthnChallengeRequest; + public static fromObject(object: { [k: string]: any }): Router.UserFolderPermissionsResponse; /** - * Creates a plain object from a Router2FAGetWebAuthnChallengeRequest message. Also converts values to other types if specified. - * @param message Router2FAGetWebAuthnChallengeRequest + * Creates a plain object from a UserFolderPermissionsResponse message. Also converts values to other types if specified. + * @param message UserFolderPermissionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.Router2FAGetWebAuthnChallengeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.UserFolderPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Router2FAGetWebAuthnChallengeRequest to JSON. + * Converts this UserFolderPermissionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Router2FAGetWebAuthnChallengeRequest + * Gets the default type url for UserFolderPermissionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Router2FAGetWebAuthnChallengeResponse. */ - interface IRouter2FAGetWebAuthnChallengeResponse { - - /** Router2FAGetWebAuthnChallengeResponse challenge */ - challenge?: (string|null); + /** Properties of a UserFolderPermissionsResponses. */ + interface IUserFolderPermissionsResponses { - /** Router2FAGetWebAuthnChallengeResponse capabilities */ - capabilities?: (string[]|null); + /** UserFolderPermissionsResponses responses */ + responses?: (Router.IUserFolderPermissionsResponse[]|null); } - /** Represents a Router2FAGetWebAuthnChallengeResponse. */ - class Router2FAGetWebAuthnChallengeResponse implements IRouter2FAGetWebAuthnChallengeResponse { + /** Represents a UserFolderPermissionsResponses. */ + class UserFolderPermissionsResponses implements IUserFolderPermissionsResponses { /** - * Constructs a new Router2FAGetWebAuthnChallengeResponse. + * Constructs a new UserFolderPermissionsResponses. * @param [properties] Properties to set */ - constructor(properties?: Router.IRouter2FAGetWebAuthnChallengeResponse); - - /** Router2FAGetWebAuthnChallengeResponse challenge. */ - public challenge: string; + constructor(properties?: Router.IUserFolderPermissionsResponses); - /** Router2FAGetWebAuthnChallengeResponse capabilities. */ - public capabilities: string[]; + /** UserFolderPermissionsResponses responses. */ + public responses: Router.IUserFolderPermissionsResponse[]; /** - * Creates a new Router2FAGetWebAuthnChallengeResponse instance using the specified properties. + * Creates a new UserFolderPermissionsResponses instance using the specified properties. * @param [properties] Properties to set - * @returns Router2FAGetWebAuthnChallengeResponse instance + * @returns UserFolderPermissionsResponses instance */ - public static create(properties?: Router.IRouter2FAGetWebAuthnChallengeResponse): Router.Router2FAGetWebAuthnChallengeResponse; + public static create(properties?: Router.IUserFolderPermissionsResponses): Router.UserFolderPermissionsResponses; /** - * Encodes the specified Router2FAGetWebAuthnChallengeResponse message. Does not implicitly {@link Router.Router2FAGetWebAuthnChallengeResponse.verify|verify} messages. - * @param message Router2FAGetWebAuthnChallengeResponse message or plain object to encode + * Encodes the specified UserFolderPermissionsResponses message. Does not implicitly {@link Router.UserFolderPermissionsResponses.verify|verify} messages. + * @param message UserFolderPermissionsResponses message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IRouter2FAGetWebAuthnChallengeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IUserFolderPermissionsResponses, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Router2FAGetWebAuthnChallengeResponse message from the specified reader or buffer. + * Decodes a UserFolderPermissionsResponses message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Router2FAGetWebAuthnChallengeResponse + * @returns UserFolderPermissionsResponses * @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): Router.Router2FAGetWebAuthnChallengeResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserFolderPermissionsResponses; /** - * Creates a Router2FAGetWebAuthnChallengeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a UserFolderPermissionsResponses message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Router2FAGetWebAuthnChallengeResponse + * @returns UserFolderPermissionsResponses */ - public static fromObject(object: { [k: string]: any }): Router.Router2FAGetWebAuthnChallengeResponse; + public static fromObject(object: { [k: string]: any }): Router.UserFolderPermissionsResponses; /** - * Creates a plain object from a Router2FAGetWebAuthnChallengeResponse message. Also converts values to other types if specified. - * @param message Router2FAGetWebAuthnChallengeResponse + * Creates a plain object from a UserFolderPermissionsResponses message. Also converts values to other types if specified. + * @param message UserFolderPermissionsResponses * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.Router2FAGetWebAuthnChallengeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.UserFolderPermissionsResponses, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Router2FAGetWebAuthnChallengeResponse to JSON. + * Converts this UserFolderPermissionsResponses to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Router2FAGetWebAuthnChallengeResponse + * Gets the default type url for UserFolderPermissionsResponses * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateEphemeralSecretRequest. */ - interface ICreateEphemeralSecretRequest { - - /** CreateEphemeralSecretRequest encryptedSecret */ - encryptedSecret?: (Uint8Array|null); + /** Properties of a RotationSchedule. */ + interface IRotationSchedule { - /** CreateEphemeralSecretRequest secretKeyHash */ - secretKeyHash?: (Uint8Array|null); + /** RotationSchedule recordUid */ + recordUid?: (Uint8Array|null); - /** CreateEphemeralSecretRequest ttl */ - ttl?: (number|null); + /** RotationSchedule schedule */ + schedule?: (string|null); } - /** Represents a CreateEphemeralSecretRequest. */ - class CreateEphemeralSecretRequest implements ICreateEphemeralSecretRequest { + /** Represents a RotationSchedule. */ + class RotationSchedule implements IRotationSchedule { /** - * Constructs a new CreateEphemeralSecretRequest. + * Constructs a new RotationSchedule. * @param [properties] Properties to set */ - constructor(properties?: Router.ICreateEphemeralSecretRequest); - - /** CreateEphemeralSecretRequest encryptedSecret. */ - public encryptedSecret: Uint8Array; + constructor(properties?: Router.IRotationSchedule); - /** CreateEphemeralSecretRequest secretKeyHash. */ - public secretKeyHash: Uint8Array; + /** RotationSchedule recordUid. */ + public recordUid: Uint8Array; - /** CreateEphemeralSecretRequest ttl. */ - public ttl: number; + /** RotationSchedule schedule. */ + public schedule: string; /** - * Creates a new CreateEphemeralSecretRequest instance using the specified properties. + * Creates a new RotationSchedule instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEphemeralSecretRequest instance + * @returns RotationSchedule instance */ - public static create(properties?: Router.ICreateEphemeralSecretRequest): Router.CreateEphemeralSecretRequest; + public static create(properties?: Router.IRotationSchedule): Router.RotationSchedule; /** - * Encodes the specified CreateEphemeralSecretRequest message. Does not implicitly {@link Router.CreateEphemeralSecretRequest.verify|verify} messages. - * @param message CreateEphemeralSecretRequest message or plain object to encode + * Encodes the specified RotationSchedule message. Does not implicitly {@link Router.RotationSchedule.verify|verify} messages. + * @param message RotationSchedule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.ICreateEphemeralSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRotationSchedule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEphemeralSecretRequest message from the specified reader or buffer. + * Decodes a RotationSchedule message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateEphemeralSecretRequest + * @returns RotationSchedule * @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): Router.CreateEphemeralSecretRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RotationSchedule; /** - * Creates a CreateEphemeralSecretRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RotationSchedule message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateEphemeralSecretRequest + * @returns RotationSchedule */ - public static fromObject(object: { [k: string]: any }): Router.CreateEphemeralSecretRequest; + public static fromObject(object: { [k: string]: any }): Router.RotationSchedule; /** - * Creates a plain object from a CreateEphemeralSecretRequest message. Also converts values to other types if specified. - * @param message CreateEphemeralSecretRequest + * Creates a plain object from a RotationSchedule message. Also converts values to other types if specified. + * @param message RotationSchedule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.CreateEphemeralSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RotationSchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEphemeralSecretRequest to JSON. + * Converts this RotationSchedule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateEphemeralSecretRequest + * Gets the default type url for RotationSchedule * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** UserAccessLoweredEventType enum. */ - enum UserAccessLoweredEventType { - UALE_UNSPECIFIED = 0, - UALE_DEVICE_LOGOUT = 1, - UALE_USER_LOGOUT_ALL_DEVICES = 2, - UALE_ENFORCEMENT_REMOVED = 3, - UALE_RECORD_ACCESS_LOST = 4 + /** ServiceType enum. */ + enum ServiceType { + UNSPECIFIED = 0, + KA = 1, + BI = 2 } - /** Properties of a UserAccessLoweredEvent. */ - interface IUserAccessLoweredEvent { - - /** UserAccessLoweredEvent eventType */ - eventType?: (Router.UserAccessLoweredEventType|null); + /** Properties of an ApiCallbackRequest. */ + interface IApiCallbackRequest { - /** UserAccessLoweredEvent enterpriseUserIds */ - enterpriseUserIds?: (number[]|null); + /** ApiCallbackRequest resourceUid */ + resourceUid?: (Uint8Array|null); - /** UserAccessLoweredEvent recordUids */ - recordUids?: (Uint8Array[]|null); + /** ApiCallbackRequest schedules */ + schedules?: (Router.IApiCallbackSchedule[]|null); - /** UserAccessLoweredEvent deviceId */ - deviceId?: (number|null); + /** ApiCallbackRequest url */ + url?: (string|null); - /** UserAccessLoweredEvent enforcementTypeId */ - enforcementTypeId?: (number|null); + /** ApiCallbackRequest serviceType */ + serviceType?: (Router.ServiceType|null); } - /** Represents a UserAccessLoweredEvent. */ - class UserAccessLoweredEvent implements IUserAccessLoweredEvent { + /** Represents an ApiCallbackRequest. */ + class ApiCallbackRequest implements IApiCallbackRequest { /** - * Constructs a new UserAccessLoweredEvent. + * Constructs a new ApiCallbackRequest. * @param [properties] Properties to set */ - constructor(properties?: Router.IUserAccessLoweredEvent); - - /** UserAccessLoweredEvent eventType. */ - public eventType: Router.UserAccessLoweredEventType; + constructor(properties?: Router.IApiCallbackRequest); - /** UserAccessLoweredEvent enterpriseUserIds. */ - public enterpriseUserIds: number[]; + /** ApiCallbackRequest resourceUid. */ + public resourceUid: Uint8Array; - /** UserAccessLoweredEvent recordUids. */ - public recordUids: Uint8Array[]; + /** ApiCallbackRequest schedules. */ + public schedules: Router.IApiCallbackSchedule[]; - /** UserAccessLoweredEvent deviceId. */ - public deviceId?: (number|null); + /** ApiCallbackRequest url. */ + public url: string; - /** UserAccessLoweredEvent enforcementTypeId. */ - public enforcementTypeId?: (number|null); + /** ApiCallbackRequest serviceType. */ + public serviceType: Router.ServiceType; /** - * Creates a new UserAccessLoweredEvent instance using the specified properties. + * Creates a new ApiCallbackRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UserAccessLoweredEvent instance + * @returns ApiCallbackRequest instance */ - public static create(properties?: Router.IUserAccessLoweredEvent): Router.UserAccessLoweredEvent; + public static create(properties?: Router.IApiCallbackRequest): Router.ApiCallbackRequest; /** - * Encodes the specified UserAccessLoweredEvent message. Does not implicitly {@link Router.UserAccessLoweredEvent.verify|verify} messages. - * @param message UserAccessLoweredEvent message or plain object to encode + * Encodes the specified ApiCallbackRequest message. Does not implicitly {@link Router.ApiCallbackRequest.verify|verify} messages. + * @param message ApiCallbackRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IUserAccessLoweredEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IApiCallbackRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserAccessLoweredEvent message from the specified reader or buffer. + * Decodes an ApiCallbackRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserAccessLoweredEvent + * @returns ApiCallbackRequest * @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): Router.UserAccessLoweredEvent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ApiCallbackRequest; /** - * Creates a UserAccessLoweredEvent message from a plain object. Also converts values to their respective internal types. + * Creates an ApiCallbackRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserAccessLoweredEvent + * @returns ApiCallbackRequest */ - public static fromObject(object: { [k: string]: any }): Router.UserAccessLoweredEvent; + public static fromObject(object: { [k: string]: any }): Router.ApiCallbackRequest; /** - * Creates a plain object from a UserAccessLoweredEvent message. Also converts values to other types if specified. - * @param message UserAccessLoweredEvent + * Creates a plain object from an ApiCallbackRequest message. Also converts values to other types if specified. + * @param message ApiCallbackRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.UserAccessLoweredEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.ApiCallbackRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserAccessLoweredEvent to JSON. + * Converts this ApiCallbackRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserAccessLoweredEvent + * Gets the default type url for ApiCallbackRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a UserAccessLoweredEventsRequest. */ - interface IUserAccessLoweredEventsRequest { + /** Properties of an ApiCallbackSchedule. */ + interface IApiCallbackSchedule { - /** UserAccessLoweredEventsRequest events */ - events?: (Router.IUserAccessLoweredEvent[]|null); + /** ApiCallbackSchedule schedule */ + schedule?: (string|null); + + /** ApiCallbackSchedule data */ + data?: (Uint8Array|null); } - /** Represents a UserAccessLoweredEventsRequest. */ - class UserAccessLoweredEventsRequest implements IUserAccessLoweredEventsRequest { + /** Represents an ApiCallbackSchedule. */ + class ApiCallbackSchedule implements IApiCallbackSchedule { /** - * Constructs a new UserAccessLoweredEventsRequest. + * Constructs a new ApiCallbackSchedule. * @param [properties] Properties to set */ - constructor(properties?: Router.IUserAccessLoweredEventsRequest); + constructor(properties?: Router.IApiCallbackSchedule); - /** UserAccessLoweredEventsRequest events. */ - public events: Router.IUserAccessLoweredEvent[]; + /** ApiCallbackSchedule schedule. */ + public schedule: string; + + /** ApiCallbackSchedule data. */ + public data: Uint8Array; /** - * Creates a new UserAccessLoweredEventsRequest instance using the specified properties. + * Creates a new ApiCallbackSchedule instance using the specified properties. * @param [properties] Properties to set - * @returns UserAccessLoweredEventsRequest instance + * @returns ApiCallbackSchedule instance */ - public static create(properties?: Router.IUserAccessLoweredEventsRequest): Router.UserAccessLoweredEventsRequest; + public static create(properties?: Router.IApiCallbackSchedule): Router.ApiCallbackSchedule; /** - * Encodes the specified UserAccessLoweredEventsRequest message. Does not implicitly {@link Router.UserAccessLoweredEventsRequest.verify|verify} messages. - * @param message UserAccessLoweredEventsRequest message or plain object to encode + * Encodes the specified ApiCallbackSchedule message. Does not implicitly {@link Router.ApiCallbackSchedule.verify|verify} messages. + * @param message ApiCallbackSchedule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Router.IUserAccessLoweredEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IApiCallbackSchedule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserAccessLoweredEventsRequest message from the specified reader or buffer. + * Decodes an ApiCallbackSchedule message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserAccessLoweredEventsRequest + * @returns ApiCallbackSchedule * @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): Router.UserAccessLoweredEventsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ApiCallbackSchedule; /** - * Creates a UserAccessLoweredEventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ApiCallbackSchedule message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserAccessLoweredEventsRequest + * @returns ApiCallbackSchedule */ - public static fromObject(object: { [k: string]: any }): Router.UserAccessLoweredEventsRequest; + public static fromObject(object: { [k: string]: any }): Router.ApiCallbackSchedule; /** - * Creates a plain object from a UserAccessLoweredEventsRequest message. Also converts values to other types if specified. - * @param message UserAccessLoweredEventsRequest + * Creates a plain object from an ApiCallbackSchedule message. Also converts values to other types if specified. + * @param message ApiCallbackSchedule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Router.UserAccessLoweredEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.ApiCallbackSchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserAccessLoweredEventsRequest to JSON. + * Converts this ApiCallbackSchedule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserAccessLoweredEventsRequest + * Gets the default type url for ApiCallbackSchedule * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} -/** Namespace PAM. */ -export namespace PAM { - - /** Properties of a PAMRotationSchedule. */ - interface IPAMRotationSchedule { - - /** PAMRotationSchedule recordUid */ - recordUid?: (Uint8Array|null); - - /** PAMRotationSchedule configurationUid */ - configurationUid?: (Uint8Array|null); - - /** PAMRotationSchedule controllerUid */ - controllerUid?: (Uint8Array|null); + /** Properties of a RouterScheduledActions. */ + interface IRouterScheduledActions { - /** PAMRotationSchedule scheduleData */ - scheduleData?: (string|null); + /** RouterScheduledActions schedule */ + schedule?: (string|null); - /** PAMRotationSchedule noSchedule */ - noSchedule?: (boolean|null); + /** RouterScheduledActions resourceUids */ + resourceUids?: (Uint8Array[]|null); } - /** Represents a PAMRotationSchedule. */ - class PAMRotationSchedule implements IPAMRotationSchedule { + /** Represents a RouterScheduledActions. */ + class RouterScheduledActions implements IRouterScheduledActions { /** - * Constructs a new PAMRotationSchedule. + * Constructs a new RouterScheduledActions. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMRotationSchedule); - - /** PAMRotationSchedule recordUid. */ - public recordUid: Uint8Array; - - /** PAMRotationSchedule configurationUid. */ - public configurationUid: Uint8Array; - - /** PAMRotationSchedule controllerUid. */ - public controllerUid: Uint8Array; - - /** PAMRotationSchedule scheduleData. */ - public scheduleData: string; + constructor(properties?: Router.IRouterScheduledActions); - /** PAMRotationSchedule noSchedule. */ - public noSchedule: boolean; + /** RouterScheduledActions schedule. */ + public schedule: string; + + /** RouterScheduledActions resourceUids. */ + public resourceUids: Uint8Array[]; /** - * Creates a new PAMRotationSchedule instance using the specified properties. + * Creates a new RouterScheduledActions instance using the specified properties. * @param [properties] Properties to set - * @returns PAMRotationSchedule instance + * @returns RouterScheduledActions instance */ - public static create(properties?: PAM.IPAMRotationSchedule): PAM.PAMRotationSchedule; + public static create(properties?: Router.IRouterScheduledActions): Router.RouterScheduledActions; /** - * Encodes the specified PAMRotationSchedule message. Does not implicitly {@link PAM.PAMRotationSchedule.verify|verify} messages. - * @param message PAMRotationSchedule message or plain object to encode + * Encodes the specified RouterScheduledActions message. Does not implicitly {@link Router.RouterScheduledActions.verify|verify} messages. + * @param message RouterScheduledActions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMRotationSchedule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterScheduledActions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMRotationSchedule message from the specified reader or buffer. + * Decodes a RouterScheduledActions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMRotationSchedule + * @returns RouterScheduledActions * @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): PAM.PAMRotationSchedule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterScheduledActions; /** - * Creates a PAMRotationSchedule message from a plain object. Also converts values to their respective internal types. + * Creates a RouterScheduledActions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMRotationSchedule + * @returns RouterScheduledActions */ - public static fromObject(object: { [k: string]: any }): PAM.PAMRotationSchedule; + public static fromObject(object: { [k: string]: any }): Router.RouterScheduledActions; /** - * Creates a plain object from a PAMRotationSchedule message. Also converts values to other types if specified. - * @param message PAMRotationSchedule + * Creates a plain object from a RouterScheduledActions message. Also converts values to other types if specified. + * @param message RouterScheduledActions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMRotationSchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterScheduledActions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMRotationSchedule to JSON. + * Converts this RouterScheduledActions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMRotationSchedule + * Gets the default type url for RouterScheduledActions * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMRotationSchedulesResponse. */ - interface IPAMRotationSchedulesResponse { + /** Properties of a RouterRecordsRotationRequest. */ + interface IRouterRecordsRotationRequest { - /** PAMRotationSchedulesResponse schedules */ - schedules?: (PAM.IPAMRotationSchedule[]|null); + /** RouterRecordsRotationRequest rotationSchedules */ + rotationSchedules?: (Router.IRouterScheduledActions[]|null); } - /** Represents a PAMRotationSchedulesResponse. */ - class PAMRotationSchedulesResponse implements IPAMRotationSchedulesResponse { + /** Represents a RouterRecordsRotationRequest. */ + class RouterRecordsRotationRequest implements IRouterRecordsRotationRequest { /** - * Constructs a new PAMRotationSchedulesResponse. + * Constructs a new RouterRecordsRotationRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMRotationSchedulesResponse); + constructor(properties?: Router.IRouterRecordsRotationRequest); - /** PAMRotationSchedulesResponse schedules. */ - public schedules: PAM.IPAMRotationSchedule[]; + /** RouterRecordsRotationRequest rotationSchedules. */ + public rotationSchedules: Router.IRouterScheduledActions[]; /** - * Creates a new PAMRotationSchedulesResponse instance using the specified properties. + * Creates a new RouterRecordsRotationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMRotationSchedulesResponse instance + * @returns RouterRecordsRotationRequest instance */ - public static create(properties?: PAM.IPAMRotationSchedulesResponse): PAM.PAMRotationSchedulesResponse; + public static create(properties?: Router.IRouterRecordsRotationRequest): Router.RouterRecordsRotationRequest; /** - * Encodes the specified PAMRotationSchedulesResponse message. Does not implicitly {@link PAM.PAMRotationSchedulesResponse.verify|verify} messages. - * @param message PAMRotationSchedulesResponse message or plain object to encode + * Encodes the specified RouterRecordsRotationRequest message. Does not implicitly {@link Router.RouterRecordsRotationRequest.verify|verify} messages. + * @param message RouterRecordsRotationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMRotationSchedulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouterRecordsRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMRotationSchedulesResponse message from the specified reader or buffer. + * Decodes a RouterRecordsRotationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMRotationSchedulesResponse + * @returns RouterRecordsRotationRequest * @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): PAM.PAMRotationSchedulesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.RouterRecordsRotationRequest; /** - * Creates a PAMRotationSchedulesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RouterRecordsRotationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMRotationSchedulesResponse + * @returns RouterRecordsRotationRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMRotationSchedulesResponse; + public static fromObject(object: { [k: string]: any }): Router.RouterRecordsRotationRequest; /** - * Creates a plain object from a PAMRotationSchedulesResponse message. Also converts values to other types if specified. - * @param message PAMRotationSchedulesResponse + * Creates a plain object from a RouterRecordsRotationRequest message. Also converts values to other types if specified. + * @param message RouterRecordsRotationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMRotationSchedulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.RouterRecordsRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMRotationSchedulesResponse to JSON. + * Converts this RouterRecordsRotationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMRotationSchedulesResponse + * Gets the default type url for RouterRecordsRotationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMOnlineController. */ - interface IPAMOnlineController { + /** Properties of a ConnectionParameters. */ + interface IConnectionParameters { - /** PAMOnlineController controllerUid */ - controllerUid?: (Uint8Array|null); + /** ConnectionParameters connectionUid */ + connectionUid?: (Uint8Array|null); - /** PAMOnlineController connectedOn */ - connectedOn?: (number|null); + /** ConnectionParameters recordUid */ + recordUid?: (Uint8Array|null); - /** PAMOnlineController ipAddress */ - ipAddress?: (string|null); + /** ConnectionParameters userId */ + userId?: (number|null); - /** PAMOnlineController version */ - version?: (string|null); + /** ConnectionParameters controllerUid */ + controllerUid?: (Uint8Array|null); - /** PAMOnlineController connections */ - connections?: (PAM.IPAMWebRtcConnection[]|null); + /** ConnectionParameters credentialsRecordUid */ + credentialsRecordUid?: (Uint8Array|null); } - /** Represents a PAMOnlineController. */ - class PAMOnlineController implements IPAMOnlineController { + /** Represents a ConnectionParameters. */ + class ConnectionParameters implements IConnectionParameters { /** - * Constructs a new PAMOnlineController. + * Constructs a new ConnectionParameters. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMOnlineController); + constructor(properties?: Router.IConnectionParameters); - /** PAMOnlineController controllerUid. */ - public controllerUid: Uint8Array; + /** ConnectionParameters connectionUid. */ + public connectionUid: Uint8Array; - /** PAMOnlineController connectedOn. */ - public connectedOn: number; + /** ConnectionParameters recordUid. */ + public recordUid: Uint8Array; - /** PAMOnlineController ipAddress. */ - public ipAddress: string; + /** ConnectionParameters userId. */ + public userId: number; - /** PAMOnlineController version. */ - public version: string; + /** ConnectionParameters controllerUid. */ + public controllerUid: Uint8Array; - /** PAMOnlineController connections. */ - public connections: PAM.IPAMWebRtcConnection[]; + /** ConnectionParameters credentialsRecordUid. */ + public credentialsRecordUid: Uint8Array; /** - * Creates a new PAMOnlineController instance using the specified properties. + * Creates a new ConnectionParameters instance using the specified properties. * @param [properties] Properties to set - * @returns PAMOnlineController instance + * @returns ConnectionParameters instance */ - public static create(properties?: PAM.IPAMOnlineController): PAM.PAMOnlineController; + public static create(properties?: Router.IConnectionParameters): Router.ConnectionParameters; /** - * Encodes the specified PAMOnlineController message. Does not implicitly {@link PAM.PAMOnlineController.verify|verify} messages. - * @param message PAMOnlineController message or plain object to encode + * Encodes the specified ConnectionParameters message. Does not implicitly {@link Router.ConnectionParameters.verify|verify} messages. + * @param message ConnectionParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMOnlineController, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IConnectionParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMOnlineController message from the specified reader or buffer. + * Decodes a ConnectionParameters message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMOnlineController + * @returns ConnectionParameters * @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): PAM.PAMOnlineController; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ConnectionParameters; /** - * Creates a PAMOnlineController message from a plain object. Also converts values to their respective internal types. + * Creates a ConnectionParameters message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMOnlineController + * @returns ConnectionParameters */ - public static fromObject(object: { [k: string]: any }): PAM.PAMOnlineController; + public static fromObject(object: { [k: string]: any }): Router.ConnectionParameters; /** - * Creates a plain object from a PAMOnlineController message. Also converts values to other types if specified. - * @param message PAMOnlineController + * Creates a plain object from a ConnectionParameters message. Also converts values to other types if specified. + * @param message ConnectionParameters * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMOnlineController, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.ConnectionParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMOnlineController to JSON. + * Converts this ConnectionParameters to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMOnlineController + * Gets the default type url for ConnectionParameters * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** WebRtcConnectionType enum. */ - enum WebRtcConnectionType { - CONNECTION = 0, - TUNNEL = 1, - SSH = 2, - RDP = 3, - HTTP = 4, - VNC = 5, - TELNET = 6, - MYSQL = 7, - SQL_SERVER = 8, - POSTGRESQL = 9, - KUBERNETES = 10 + /** Properties of a ValidateConnectionsRequest. */ + interface IValidateConnectionsRequest { + + /** ValidateConnectionsRequest connections */ + connections?: (Router.IConnectionParameters[]|null); } - /** Properties of a PAMWebRtcConnection. */ - interface IPAMWebRtcConnection { + /** Represents a ValidateConnectionsRequest. */ + class ValidateConnectionsRequest implements IValidateConnectionsRequest { - /** PAMWebRtcConnection connectionUid */ - connectionUid?: (Uint8Array|null); + /** + * Constructs a new ValidateConnectionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: Router.IValidateConnectionsRequest); - /** PAMWebRtcConnection type */ - type?: (PAM.WebRtcConnectionType|null); + /** ValidateConnectionsRequest connections. */ + public connections: Router.IConnectionParameters[]; + + /** + * Creates a new ValidateConnectionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateConnectionsRequest instance + */ + public static create(properties?: Router.IValidateConnectionsRequest): Router.ValidateConnectionsRequest; + + /** + * Encodes the specified ValidateConnectionsRequest message. Does not implicitly {@link Router.ValidateConnectionsRequest.verify|verify} messages. + * @param message ValidateConnectionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: Router.IValidateConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValidateConnectionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateConnectionsRequest + * @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): Router.ValidateConnectionsRequest; + + /** + * Creates a ValidateConnectionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateConnectionsRequest + */ + public static fromObject(object: { [k: string]: any }): Router.ValidateConnectionsRequest; + + /** + * Creates a plain object from a ValidateConnectionsRequest message. Also converts values to other types if specified. + * @param message ValidateConnectionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: Router.ValidateConnectionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateConnectionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** PAMWebRtcConnection recordUid */ - recordUid?: (Uint8Array|null); + /** + * Gets the default type url for ValidateConnectionsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** PAMWebRtcConnection userName */ - userName?: (string|null); + /** Properties of a ConnectionValidationFailure. */ + interface IConnectionValidationFailure { - /** PAMWebRtcConnection startedOn */ - startedOn?: (number|null); + /** ConnectionValidationFailure connectionUid */ + connectionUid?: (Uint8Array|null); - /** PAMWebRtcConnection configurationUid */ - configurationUid?: (Uint8Array|null); + /** ConnectionValidationFailure errorMessage */ + errorMessage?: (string|null); } - /** Represents a PAMWebRtcConnection. */ - class PAMWebRtcConnection implements IPAMWebRtcConnection { + /** Represents a ConnectionValidationFailure. */ + class ConnectionValidationFailure implements IConnectionValidationFailure { /** - * Constructs a new PAMWebRtcConnection. + * Constructs a new ConnectionValidationFailure. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMWebRtcConnection); + constructor(properties?: Router.IConnectionValidationFailure); - /** PAMWebRtcConnection connectionUid. */ + /** ConnectionValidationFailure connectionUid. */ public connectionUid: Uint8Array; - /** PAMWebRtcConnection type. */ - public type: PAM.WebRtcConnectionType; - - /** PAMWebRtcConnection recordUid. */ - public recordUid: Uint8Array; - - /** PAMWebRtcConnection userName. */ - public userName: string; - - /** PAMWebRtcConnection startedOn. */ - public startedOn: number; - - /** PAMWebRtcConnection configurationUid. */ - public configurationUid: Uint8Array; + /** ConnectionValidationFailure errorMessage. */ + public errorMessage: string; /** - * Creates a new PAMWebRtcConnection instance using the specified properties. + * Creates a new ConnectionValidationFailure instance using the specified properties. * @param [properties] Properties to set - * @returns PAMWebRtcConnection instance + * @returns ConnectionValidationFailure instance */ - public static create(properties?: PAM.IPAMWebRtcConnection): PAM.PAMWebRtcConnection; + public static create(properties?: Router.IConnectionValidationFailure): Router.ConnectionValidationFailure; /** - * Encodes the specified PAMWebRtcConnection message. Does not implicitly {@link PAM.PAMWebRtcConnection.verify|verify} messages. - * @param message PAMWebRtcConnection message or plain object to encode + * Encodes the specified ConnectionValidationFailure message. Does not implicitly {@link Router.ConnectionValidationFailure.verify|verify} messages. + * @param message ConnectionValidationFailure message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMWebRtcConnection, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IConnectionValidationFailure, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMWebRtcConnection message from the specified reader or buffer. + * Decodes a ConnectionValidationFailure message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMWebRtcConnection + * @returns ConnectionValidationFailure * @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): PAM.PAMWebRtcConnection; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ConnectionValidationFailure; /** - * Creates a PAMWebRtcConnection message from a plain object. Also converts values to their respective internal types. + * Creates a ConnectionValidationFailure message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMWebRtcConnection + * @returns ConnectionValidationFailure */ - public static fromObject(object: { [k: string]: any }): PAM.PAMWebRtcConnection; + public static fromObject(object: { [k: string]: any }): Router.ConnectionValidationFailure; /** - * Creates a plain object from a PAMWebRtcConnection message. Also converts values to other types if specified. - * @param message PAMWebRtcConnection + * Creates a plain object from a ConnectionValidationFailure message. Also converts values to other types if specified. + * @param message ConnectionValidationFailure * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMWebRtcConnection, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.ConnectionValidationFailure, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMWebRtcConnection to JSON. + * Converts this ConnectionValidationFailure to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMWebRtcConnection + * Gets the default type url for ConnectionValidationFailure * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMOnlineControllers. */ - interface IPAMOnlineControllers { - - /** PAMOnlineControllers deprecated */ - deprecated?: (Uint8Array[]|null); + /** Properties of a ValidateConnectionsResponse. */ + interface IValidateConnectionsResponse { - /** PAMOnlineControllers controllers */ - controllers?: (PAM.IPAMOnlineController[]|null); + /** ValidateConnectionsResponse failedConnections */ + failedConnections?: (Router.IConnectionValidationFailure[]|null); } - /** Represents a PAMOnlineControllers. */ - class PAMOnlineControllers implements IPAMOnlineControllers { + /** Represents a ValidateConnectionsResponse. */ + class ValidateConnectionsResponse implements IValidateConnectionsResponse { /** - * Constructs a new PAMOnlineControllers. + * Constructs a new ValidateConnectionsResponse. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMOnlineControllers); - - /** PAMOnlineControllers deprecated. */ - public deprecated: Uint8Array[]; + constructor(properties?: Router.IValidateConnectionsResponse); - /** PAMOnlineControllers controllers. */ - public controllers: PAM.IPAMOnlineController[]; + /** ValidateConnectionsResponse failedConnections. */ + public failedConnections: Router.IConnectionValidationFailure[]; /** - * Creates a new PAMOnlineControllers instance using the specified properties. + * Creates a new ValidateConnectionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PAMOnlineControllers instance + * @returns ValidateConnectionsResponse instance */ - public static create(properties?: PAM.IPAMOnlineControllers): PAM.PAMOnlineControllers; + public static create(properties?: Router.IValidateConnectionsResponse): Router.ValidateConnectionsResponse; /** - * Encodes the specified PAMOnlineControllers message. Does not implicitly {@link PAM.PAMOnlineControllers.verify|verify} messages. - * @param message PAMOnlineControllers message or plain object to encode + * Encodes the specified ValidateConnectionsResponse message. Does not implicitly {@link Router.ValidateConnectionsResponse.verify|verify} messages. + * @param message ValidateConnectionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMOnlineControllers, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IValidateConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMOnlineControllers message from the specified reader or buffer. + * Decodes a ValidateConnectionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMOnlineControllers + * @returns ValidateConnectionsResponse * @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): PAM.PAMOnlineControllers; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.ValidateConnectionsResponse; /** - * Creates a PAMOnlineControllers message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateConnectionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMOnlineControllers + * @returns ValidateConnectionsResponse */ - public static fromObject(object: { [k: string]: any }): PAM.PAMOnlineControllers; + public static fromObject(object: { [k: string]: any }): Router.ValidateConnectionsResponse; /** - * Creates a plain object from a PAMOnlineControllers message. Also converts values to other types if specified. - * @param message PAMOnlineControllers + * Creates a plain object from a ValidateConnectionsResponse message. Also converts values to other types if specified. + * @param message ValidateConnectionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMOnlineControllers, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.ValidateConnectionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMOnlineControllers to JSON. + * Converts this ValidateConnectionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMOnlineControllers + * Gets the default type url for ValidateConnectionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMRotateRequest. */ - interface IPAMRotateRequest { - - /** PAMRotateRequest requestUid */ - requestUid?: (Uint8Array|null); + /** Properties of a GetEnforcementRequest. */ + interface IGetEnforcementRequest { - /** PAMRotateRequest recordUid */ - recordUid?: (Uint8Array|null); + /** GetEnforcementRequest enterpriseUserId */ + enterpriseUserId?: (number|null); } - /** Represents a PAMRotateRequest. */ - class PAMRotateRequest implements IPAMRotateRequest { + /** Represents a GetEnforcementRequest. */ + class GetEnforcementRequest implements IGetEnforcementRequest { /** - * Constructs a new PAMRotateRequest. + * Constructs a new GetEnforcementRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMRotateRequest); - - /** PAMRotateRequest requestUid. */ - public requestUid: Uint8Array; + constructor(properties?: Router.IGetEnforcementRequest); - /** PAMRotateRequest recordUid. */ - public recordUid: Uint8Array; + /** GetEnforcementRequest enterpriseUserId. */ + public enterpriseUserId: number; /** - * Creates a new PAMRotateRequest instance using the specified properties. + * Creates a new GetEnforcementRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMRotateRequest instance + * @returns GetEnforcementRequest instance */ - public static create(properties?: PAM.IPAMRotateRequest): PAM.PAMRotateRequest; + public static create(properties?: Router.IGetEnforcementRequest): Router.GetEnforcementRequest; /** - * Encodes the specified PAMRotateRequest message. Does not implicitly {@link PAM.PAMRotateRequest.verify|verify} messages. - * @param message PAMRotateRequest message or plain object to encode + * Encodes the specified GetEnforcementRequest message. Does not implicitly {@link Router.GetEnforcementRequest.verify|verify} messages. + * @param message GetEnforcementRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMRotateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IGetEnforcementRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMRotateRequest message from the specified reader or buffer. + * Decodes a GetEnforcementRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMRotateRequest + * @returns GetEnforcementRequest * @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): PAM.PAMRotateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.GetEnforcementRequest; /** - * Creates a PAMRotateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetEnforcementRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMRotateRequest + * @returns GetEnforcementRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMRotateRequest; + public static fromObject(object: { [k: string]: any }): Router.GetEnforcementRequest; /** - * Creates a plain object from a PAMRotateRequest message. Also converts values to other types if specified. - * @param message PAMRotateRequest + * Creates a plain object from a GetEnforcementRequest message. Also converts values to other types if specified. + * @param message GetEnforcementRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMRotateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.GetEnforcementRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMRotateRequest to JSON. + * Converts this GetEnforcementRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMRotateRequest + * Gets the default type url for GetEnforcementRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMControllersResponse. */ - interface IPAMControllersResponse { + /** Properties of an EnforcementType. */ + interface IEnforcementType { - /** PAMControllersResponse controllers */ - controllers?: (PAM.IPAMController[]|null); + /** EnforcementType enforcementTypeId */ + enforcementTypeId?: (number|null); + + /** EnforcementType value */ + value?: (string|null); } - /** Represents a PAMControllersResponse. */ - class PAMControllersResponse implements IPAMControllersResponse { + /** Represents an EnforcementType. */ + class EnforcementType implements IEnforcementType { /** - * Constructs a new PAMControllersResponse. + * Constructs a new EnforcementType. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMControllersResponse); + constructor(properties?: Router.IEnforcementType); - /** PAMControllersResponse controllers. */ - public controllers: PAM.IPAMController[]; + /** EnforcementType enforcementTypeId. */ + public enforcementTypeId: number; + + /** EnforcementType value. */ + public value: string; /** - * Creates a new PAMControllersResponse instance using the specified properties. + * Creates a new EnforcementType instance using the specified properties. * @param [properties] Properties to set - * @returns PAMControllersResponse instance + * @returns EnforcementType instance */ - public static create(properties?: PAM.IPAMControllersResponse): PAM.PAMControllersResponse; + public static create(properties?: Router.IEnforcementType): Router.EnforcementType; /** - * Encodes the specified PAMControllersResponse message. Does not implicitly {@link PAM.PAMControllersResponse.verify|verify} messages. - * @param message PAMControllersResponse message or plain object to encode + * Encodes the specified EnforcementType message. Does not implicitly {@link Router.EnforcementType.verify|verify} messages. + * @param message EnforcementType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMControllersResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IEnforcementType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMControllersResponse message from the specified reader or buffer. + * Decodes an EnforcementType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMControllersResponse + * @returns EnforcementType * @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): PAM.PAMControllersResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.EnforcementType; /** - * Creates a PAMControllersResponse message from a plain object. Also converts values to their respective internal types. + * Creates an EnforcementType message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMControllersResponse + * @returns EnforcementType */ - public static fromObject(object: { [k: string]: any }): PAM.PAMControllersResponse; + public static fromObject(object: { [k: string]: any }): Router.EnforcementType; /** - * Creates a plain object from a PAMControllersResponse message. Also converts values to other types if specified. - * @param message PAMControllersResponse + * Creates a plain object from an EnforcementType message. Also converts values to other types if specified. + * @param message EnforcementType * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMControllersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.EnforcementType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMControllersResponse to JSON. + * Converts this EnforcementType to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMControllersResponse + * Gets the default type url for EnforcementType * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMRemoveController. */ - interface IPAMRemoveController { + /** Properties of a GetEnforcementResponse. */ + interface IGetEnforcementResponse { - /** PAMRemoveController controllerUid */ - controllerUid?: (Uint8Array|null); + /** GetEnforcementResponse enforcementTypes */ + enforcementTypes?: (Router.IEnforcementType[]|null); - /** PAMRemoveController message */ - message?: (string|null); + /** GetEnforcementResponse addOnIds */ + addOnIds?: (number[]|null); + + /** GetEnforcementResponse isInTrial */ + isInTrial?: (boolean|null); } - /** Represents a PAMRemoveController. */ - class PAMRemoveController implements IPAMRemoveController { + /** Represents a GetEnforcementResponse. */ + class GetEnforcementResponse implements IGetEnforcementResponse { /** - * Constructs a new PAMRemoveController. + * Constructs a new GetEnforcementResponse. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMRemoveController); + constructor(properties?: Router.IGetEnforcementResponse); - /** PAMRemoveController controllerUid. */ - public controllerUid: Uint8Array; + /** GetEnforcementResponse enforcementTypes. */ + public enforcementTypes: Router.IEnforcementType[]; - /** PAMRemoveController message. */ - public message: string; + /** GetEnforcementResponse addOnIds. */ + public addOnIds: number[]; + + /** GetEnforcementResponse isInTrial. */ + public isInTrial: boolean; /** - * Creates a new PAMRemoveController instance using the specified properties. + * Creates a new GetEnforcementResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PAMRemoveController instance + * @returns GetEnforcementResponse instance */ - public static create(properties?: PAM.IPAMRemoveController): PAM.PAMRemoveController; + public static create(properties?: Router.IGetEnforcementResponse): Router.GetEnforcementResponse; /** - * Encodes the specified PAMRemoveController message. Does not implicitly {@link PAM.PAMRemoveController.verify|verify} messages. - * @param message PAMRemoveController message or plain object to encode + * Encodes the specified GetEnforcementResponse message. Does not implicitly {@link Router.GetEnforcementResponse.verify|verify} messages. + * @param message GetEnforcementResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMRemoveController, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IGetEnforcementResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMRemoveController message from the specified reader or buffer. + * Decodes a GetEnforcementResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMRemoveController + * @returns GetEnforcementResponse * @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): PAM.PAMRemoveController; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.GetEnforcementResponse; /** - * Creates a PAMRemoveController message from a plain object. Also converts values to their respective internal types. + * Creates a GetEnforcementResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMRemoveController + * @returns GetEnforcementResponse */ - public static fromObject(object: { [k: string]: any }): PAM.PAMRemoveController; + public static fromObject(object: { [k: string]: any }): Router.GetEnforcementResponse; /** - * Creates a plain object from a PAMRemoveController message. Also converts values to other types if specified. - * @param message PAMRemoveController + * Creates a plain object from a GetEnforcementResponse message. Also converts values to other types if specified. + * @param message GetEnforcementResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMRemoveController, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.GetEnforcementResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMRemoveController to JSON. + * Converts this GetEnforcementResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMRemoveController + * Gets the default type url for GetEnforcementResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMRemoveControllerResponse. */ - interface IPAMRemoveControllerResponse { + /** Properties of a PEDMTOTPValidateRequest. */ + interface IPEDMTOTPValidateRequest { - /** PAMRemoveControllerResponse controllers */ - controllers?: (PAM.IPAMRemoveController[]|null); + /** PEDMTOTPValidateRequest username */ + username?: (string|null); + + /** PEDMTOTPValidateRequest enterpriseId */ + enterpriseId?: (number|null); + + /** PEDMTOTPValidateRequest code */ + code?: (number|null); } - /** Represents a PAMRemoveControllerResponse. */ - class PAMRemoveControllerResponse implements IPAMRemoveControllerResponse { + /** Represents a PEDMTOTPValidateRequest. */ + class PEDMTOTPValidateRequest implements IPEDMTOTPValidateRequest { /** - * Constructs a new PAMRemoveControllerResponse. + * Constructs a new PEDMTOTPValidateRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMRemoveControllerResponse); + constructor(properties?: Router.IPEDMTOTPValidateRequest); - /** PAMRemoveControllerResponse controllers. */ - public controllers: PAM.IPAMRemoveController[]; + /** PEDMTOTPValidateRequest username. */ + public username: string; + + /** PEDMTOTPValidateRequest enterpriseId. */ + public enterpriseId: number; + + /** PEDMTOTPValidateRequest code. */ + public code: number; /** - * Creates a new PAMRemoveControllerResponse instance using the specified properties. + * Creates a new PEDMTOTPValidateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMRemoveControllerResponse instance + * @returns PEDMTOTPValidateRequest instance */ - public static create(properties?: PAM.IPAMRemoveControllerResponse): PAM.PAMRemoveControllerResponse; + public static create(properties?: Router.IPEDMTOTPValidateRequest): Router.PEDMTOTPValidateRequest; /** - * Encodes the specified PAMRemoveControllerResponse message. Does not implicitly {@link PAM.PAMRemoveControllerResponse.verify|verify} messages. - * @param message PAMRemoveControllerResponse message or plain object to encode + * Encodes the specified PEDMTOTPValidateRequest message. Does not implicitly {@link Router.PEDMTOTPValidateRequest.verify|verify} messages. + * @param message PEDMTOTPValidateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMRemoveControllerResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IPEDMTOTPValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMRemoveControllerResponse message from the specified reader or buffer. + * Decodes a PEDMTOTPValidateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMRemoveControllerResponse + * @returns PEDMTOTPValidateRequest * @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): PAM.PAMRemoveControllerResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.PEDMTOTPValidateRequest; /** - * Creates a PAMRemoveControllerResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PEDMTOTPValidateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMRemoveControllerResponse + * @returns PEDMTOTPValidateRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMRemoveControllerResponse; + public static fromObject(object: { [k: string]: any }): Router.PEDMTOTPValidateRequest; /** - * Creates a plain object from a PAMRemoveControllerResponse message. Also converts values to other types if specified. - * @param message PAMRemoveControllerResponse + * Creates a plain object from a PEDMTOTPValidateRequest message. Also converts values to other types if specified. + * @param message PEDMTOTPValidateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMRemoveControllerResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.PEDMTOTPValidateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMRemoveControllerResponse to JSON. + * Converts this PEDMTOTPValidateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMRemoveControllerResponse + * Gets the default type url for PEDMTOTPValidateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMModifyRequest. */ - interface IPAMModifyRequest { + /** Properties of a GetPEDMAdminInfoResponse. */ + interface IGetPEDMAdminInfoResponse { - /** PAMModifyRequest operations */ - operations?: (PAM.IPAMDataOperation[]|null); + /** GetPEDMAdminInfoResponse isPedmAdmin */ + isPedmAdmin?: (boolean|null); + + /** GetPEDMAdminInfoResponse pedmAddonActive */ + pedmAddonActive?: (boolean|null); } - /** Represents a PAMModifyRequest. */ - class PAMModifyRequest implements IPAMModifyRequest { + /** Represents a GetPEDMAdminInfoResponse. */ + class GetPEDMAdminInfoResponse implements IGetPEDMAdminInfoResponse { /** - * Constructs a new PAMModifyRequest. + * Constructs a new GetPEDMAdminInfoResponse. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMModifyRequest); + constructor(properties?: Router.IGetPEDMAdminInfoResponse); - /** PAMModifyRequest operations. */ - public operations: PAM.IPAMDataOperation[]; + /** GetPEDMAdminInfoResponse isPedmAdmin. */ + public isPedmAdmin: boolean; + + /** GetPEDMAdminInfoResponse pedmAddonActive. */ + public pedmAddonActive: boolean; /** - * Creates a new PAMModifyRequest instance using the specified properties. + * Creates a new GetPEDMAdminInfoResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PAMModifyRequest instance + * @returns GetPEDMAdminInfoResponse instance */ - public static create(properties?: PAM.IPAMModifyRequest): PAM.PAMModifyRequest; + public static create(properties?: Router.IGetPEDMAdminInfoResponse): Router.GetPEDMAdminInfoResponse; /** - * Encodes the specified PAMModifyRequest message. Does not implicitly {@link PAM.PAMModifyRequest.verify|verify} messages. - * @param message PAMModifyRequest message or plain object to encode + * Encodes the specified GetPEDMAdminInfoResponse message. Does not implicitly {@link Router.GetPEDMAdminInfoResponse.verify|verify} messages. + * @param message GetPEDMAdminInfoResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMModifyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IGetPEDMAdminInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMModifyRequest message from the specified reader or buffer. + * Decodes a GetPEDMAdminInfoResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMModifyRequest + * @returns GetPEDMAdminInfoResponse * @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): PAM.PAMModifyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.GetPEDMAdminInfoResponse; /** - * Creates a PAMModifyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetPEDMAdminInfoResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMModifyRequest + * @returns GetPEDMAdminInfoResponse */ - public static fromObject(object: { [k: string]: any }): PAM.PAMModifyRequest; + public static fromObject(object: { [k: string]: any }): Router.GetPEDMAdminInfoResponse; /** - * Creates a plain object from a PAMModifyRequest message. Also converts values to other types if specified. - * @param message PAMModifyRequest + * Creates a plain object from a GetPEDMAdminInfoResponse message. Also converts values to other types if specified. + * @param message GetPEDMAdminInfoResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMModifyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.GetPEDMAdminInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMModifyRequest to JSON. + * Converts this GetPEDMAdminInfoResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMModifyRequest + * Gets the default type url for GetPEDMAdminInfoResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMDataOperation. */ - interface IPAMDataOperation { + /** Properties of a PAMNetworkSettings. */ + interface IPAMNetworkSettings { - /** PAMDataOperation operationType */ - operationType?: (PAM.PAMOperationType|null); + /** PAMNetworkSettings allowedSettings */ + allowedSettings?: (Uint8Array|null); - /** PAMDataOperation configuration */ - configuration?: (PAM.IPAMConfigurationData|null); + /** PAMNetworkSettings idpConfigUid */ + idpConfigUid?: (Uint8Array|null); - /** PAMDataOperation element */ - element?: (PAM.IPAMElementData|null); + /** PAMNetworkSettings adminUid */ + adminUid?: (Uint8Array|null); } - /** Represents a PAMDataOperation. */ - class PAMDataOperation implements IPAMDataOperation { + /** Represents a PAMNetworkSettings. */ + class PAMNetworkSettings implements IPAMNetworkSettings { /** - * Constructs a new PAMDataOperation. + * Constructs a new PAMNetworkSettings. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMDataOperation); + constructor(properties?: Router.IPAMNetworkSettings); - /** PAMDataOperation operationType. */ - public operationType: PAM.PAMOperationType; + /** PAMNetworkSettings allowedSettings. */ + public allowedSettings: Uint8Array; - /** PAMDataOperation configuration. */ - public configuration?: (PAM.IPAMConfigurationData|null); + /** PAMNetworkSettings idpConfigUid. */ + public idpConfigUid?: (Uint8Array|null); - /** PAMDataOperation element. */ - public element?: (PAM.IPAMElementData|null); + /** PAMNetworkSettings adminUid. */ + public adminUid?: (Uint8Array|null); /** - * Creates a new PAMDataOperation instance using the specified properties. + * Creates a new PAMNetworkSettings instance using the specified properties. * @param [properties] Properties to set - * @returns PAMDataOperation instance + * @returns PAMNetworkSettings instance */ - public static create(properties?: PAM.IPAMDataOperation): PAM.PAMDataOperation; + public static create(properties?: Router.IPAMNetworkSettings): Router.PAMNetworkSettings; /** - * Encodes the specified PAMDataOperation message. Does not implicitly {@link PAM.PAMDataOperation.verify|verify} messages. - * @param message PAMDataOperation message or plain object to encode + * Encodes the specified PAMNetworkSettings message. Does not implicitly {@link Router.PAMNetworkSettings.verify|verify} messages. + * @param message PAMNetworkSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMDataOperation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IPAMNetworkSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMDataOperation message from the specified reader or buffer. + * Decodes a PAMNetworkSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMDataOperation + * @returns PAMNetworkSettings * @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): PAM.PAMDataOperation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.PAMNetworkSettings; /** - * Creates a PAMDataOperation message from a plain object. Also converts values to their respective internal types. + * Creates a PAMNetworkSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMDataOperation + * @returns PAMNetworkSettings */ - public static fromObject(object: { [k: string]: any }): PAM.PAMDataOperation; + public static fromObject(object: { [k: string]: any }): Router.PAMNetworkSettings; /** - * Creates a plain object from a PAMDataOperation message. Also converts values to other types if specified. - * @param message PAMDataOperation + * Creates a plain object from a PAMNetworkSettings message. Also converts values to other types if specified. + * @param message PAMNetworkSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMDataOperation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.PAMNetworkSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMDataOperation to JSON. + * Converts this PAMNetworkSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMDataOperation + * Gets the default type url for PAMNetworkSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** PAMOperationType enum. */ - enum PAMOperationType { - ADD = 0, - UPDATE = 1, - REPLACE = 2, - DELETE = 3 - } - - /** Properties of a PAMConfigurationData. */ - interface IPAMConfigurationData { + /** Properties of a PAMNetworkConfigurationRequest. */ + interface IPAMNetworkConfigurationRequest { - /** PAMConfigurationData configurationUid */ - configurationUid?: (Uint8Array|null); + /** PAMNetworkConfigurationRequest recordUid */ + recordUid?: (Uint8Array|null); - /** PAMConfigurationData nodeId */ - nodeId?: (number|null); + /** PAMNetworkConfigurationRequest networkSettings */ + networkSettings?: (Router.IPAMNetworkSettings|null); - /** PAMConfigurationData controllerUid */ - controllerUid?: (Uint8Array|null); + /** PAMNetworkConfigurationRequest resources */ + resources?: (PAM.IPAMResourceConfig[]|null); - /** PAMConfigurationData data */ - data?: (Uint8Array|null); + /** PAMNetworkConfigurationRequest rotations */ + rotations?: (Router.IRouterRecordRotationRequest[]|null); } - /** Represents a PAMConfigurationData. */ - class PAMConfigurationData implements IPAMConfigurationData { + /** Represents a PAMNetworkConfigurationRequest. */ + class PAMNetworkConfigurationRequest implements IPAMNetworkConfigurationRequest { /** - * Constructs a new PAMConfigurationData. + * Constructs a new PAMNetworkConfigurationRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMConfigurationData); + constructor(properties?: Router.IPAMNetworkConfigurationRequest); - /** PAMConfigurationData configurationUid. */ - public configurationUid: Uint8Array; + /** PAMNetworkConfigurationRequest recordUid. */ + public recordUid: Uint8Array; - /** PAMConfigurationData nodeId. */ - public nodeId: number; + /** PAMNetworkConfigurationRequest networkSettings. */ + public networkSettings?: (Router.IPAMNetworkSettings|null); - /** PAMConfigurationData controllerUid. */ - public controllerUid: Uint8Array; + /** PAMNetworkConfigurationRequest resources. */ + public resources: PAM.IPAMResourceConfig[]; - /** PAMConfigurationData data. */ - public data: Uint8Array; + /** PAMNetworkConfigurationRequest rotations. */ + public rotations: Router.IRouterRecordRotationRequest[]; /** - * Creates a new PAMConfigurationData instance using the specified properties. + * Creates a new PAMNetworkConfigurationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMConfigurationData instance + * @returns PAMNetworkConfigurationRequest instance */ - public static create(properties?: PAM.IPAMConfigurationData): PAM.PAMConfigurationData; + public static create(properties?: Router.IPAMNetworkConfigurationRequest): Router.PAMNetworkConfigurationRequest; /** - * Encodes the specified PAMConfigurationData message. Does not implicitly {@link PAM.PAMConfigurationData.verify|verify} messages. - * @param message PAMConfigurationData message or plain object to encode + * Encodes the specified PAMNetworkConfigurationRequest message. Does not implicitly {@link Router.PAMNetworkConfigurationRequest.verify|verify} messages. + * @param message PAMNetworkConfigurationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMConfigurationData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IPAMNetworkConfigurationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMConfigurationData message from the specified reader or buffer. + * Decodes a PAMNetworkConfigurationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMConfigurationData + * @returns PAMNetworkConfigurationRequest * @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): PAM.PAMConfigurationData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.PAMNetworkConfigurationRequest; /** - * Creates a PAMConfigurationData message from a plain object. Also converts values to their respective internal types. + * Creates a PAMNetworkConfigurationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMConfigurationData + * @returns PAMNetworkConfigurationRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMConfigurationData; + public static fromObject(object: { [k: string]: any }): Router.PAMNetworkConfigurationRequest; /** - * Creates a plain object from a PAMConfigurationData message. Also converts values to other types if specified. - * @param message PAMConfigurationData + * Creates a plain object from a PAMNetworkConfigurationRequest message. Also converts values to other types if specified. + * @param message PAMNetworkConfigurationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMConfigurationData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.PAMNetworkConfigurationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMConfigurationData to JSON. + * Converts this PAMNetworkConfigurationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMConfigurationData + * Gets the default type url for PAMNetworkConfigurationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMElementData. */ - interface IPAMElementData { + /** Properties of a PAMDiscoveryRulesSetRequest. */ + interface IPAMDiscoveryRulesSetRequest { - /** PAMElementData elementUid */ - elementUid?: (Uint8Array|null); + /** PAMDiscoveryRulesSetRequest networkUid */ + networkUid?: (Uint8Array|null); - /** PAMElementData parentUid */ - parentUid?: (Uint8Array|null); + /** PAMDiscoveryRulesSetRequest rules */ + rules?: (Uint8Array|null); - /** PAMElementData data */ - data?: (Uint8Array|null); + /** PAMDiscoveryRulesSetRequest rulesKey */ + rulesKey?: (Uint8Array|null); } - /** Represents a PAMElementData. */ - class PAMElementData implements IPAMElementData { + /** Represents a PAMDiscoveryRulesSetRequest. */ + class PAMDiscoveryRulesSetRequest implements IPAMDiscoveryRulesSetRequest { /** - * Constructs a new PAMElementData. + * Constructs a new PAMDiscoveryRulesSetRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMElementData); + constructor(properties?: Router.IPAMDiscoveryRulesSetRequest); - /** PAMElementData elementUid. */ - public elementUid: Uint8Array; + /** PAMDiscoveryRulesSetRequest networkUid. */ + public networkUid: Uint8Array; - /** PAMElementData parentUid. */ - public parentUid: Uint8Array; + /** PAMDiscoveryRulesSetRequest rules. */ + public rules: Uint8Array; - /** PAMElementData data. */ - public data: Uint8Array; + /** PAMDiscoveryRulesSetRequest rulesKey. */ + public rulesKey: Uint8Array; /** - * Creates a new PAMElementData instance using the specified properties. + * Creates a new PAMDiscoveryRulesSetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMElementData instance + * @returns PAMDiscoveryRulesSetRequest instance */ - public static create(properties?: PAM.IPAMElementData): PAM.PAMElementData; + public static create(properties?: Router.IPAMDiscoveryRulesSetRequest): Router.PAMDiscoveryRulesSetRequest; /** - * Encodes the specified PAMElementData message. Does not implicitly {@link PAM.PAMElementData.verify|verify} messages. - * @param message PAMElementData message or plain object to encode + * Encodes the specified PAMDiscoveryRulesSetRequest message. Does not implicitly {@link Router.PAMDiscoveryRulesSetRequest.verify|verify} messages. + * @param message PAMDiscoveryRulesSetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMElementData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IPAMDiscoveryRulesSetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMElementData message from the specified reader or buffer. + * Decodes a PAMDiscoveryRulesSetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMElementData + * @returns PAMDiscoveryRulesSetRequest * @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): PAM.PAMElementData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.PAMDiscoveryRulesSetRequest; /** - * Creates a PAMElementData message from a plain object. Also converts values to their respective internal types. + * Creates a PAMDiscoveryRulesSetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMElementData + * @returns PAMDiscoveryRulesSetRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMElementData; + public static fromObject(object: { [k: string]: any }): Router.PAMDiscoveryRulesSetRequest; /** - * Creates a plain object from a PAMElementData message. Also converts values to other types if specified. - * @param message PAMElementData + * Creates a plain object from a PAMDiscoveryRulesSetRequest message. Also converts values to other types if specified. + * @param message PAMDiscoveryRulesSetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMElementData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.PAMDiscoveryRulesSetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMElementData to JSON. + * Converts this PAMDiscoveryRulesSetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMElementData + * Gets the default type url for PAMDiscoveryRulesSetRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** PAMOperationResultType enum. */ - enum PAMOperationResultType { - POT_SUCCESS = 0, - POT_UNKNOWN_ERROR = 1, - POT_ALREADY_EXISTS = 2, - POT_DOES_NOT_EXIST = 3 - } - - /** Properties of a PAMElementOperationResult. */ - interface IPAMElementOperationResult { + /** Properties of a Router2FAValidateRequest. */ + interface IRouter2FAValidateRequest { - /** PAMElementOperationResult elementUid */ - elementUid?: (Uint8Array|null); + /** Router2FAValidateRequest transmissionKey */ + transmissionKey?: (Uint8Array|null); - /** PAMElementOperationResult result */ - result?: (PAM.PAMOperationResultType|null); + /** Router2FAValidateRequest sessionToken */ + sessionToken?: (Uint8Array|null); - /** PAMElementOperationResult message */ - message?: (string|null); + /** Router2FAValidateRequest value */ + value?: (string|null); } - /** Represents a PAMElementOperationResult. */ - class PAMElementOperationResult implements IPAMElementOperationResult { + /** Represents a Router2FAValidateRequest. */ + class Router2FAValidateRequest implements IRouter2FAValidateRequest { /** - * Constructs a new PAMElementOperationResult. + * Constructs a new Router2FAValidateRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMElementOperationResult); + constructor(properties?: Router.IRouter2FAValidateRequest); - /** PAMElementOperationResult elementUid. */ - public elementUid: Uint8Array; + /** Router2FAValidateRequest transmissionKey. */ + public transmissionKey: Uint8Array; - /** PAMElementOperationResult result. */ - public result: PAM.PAMOperationResultType; + /** Router2FAValidateRequest sessionToken. */ + public sessionToken: Uint8Array; - /** PAMElementOperationResult message. */ - public message: string; + /** Router2FAValidateRequest value. */ + public value: string; /** - * Creates a new PAMElementOperationResult instance using the specified properties. + * Creates a new Router2FAValidateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMElementOperationResult instance + * @returns Router2FAValidateRequest instance */ - public static create(properties?: PAM.IPAMElementOperationResult): PAM.PAMElementOperationResult; + public static create(properties?: Router.IRouter2FAValidateRequest): Router.Router2FAValidateRequest; /** - * Encodes the specified PAMElementOperationResult message. Does not implicitly {@link PAM.PAMElementOperationResult.verify|verify} messages. - * @param message PAMElementOperationResult message or plain object to encode + * Encodes the specified Router2FAValidateRequest message. Does not implicitly {@link Router.Router2FAValidateRequest.verify|verify} messages. + * @param message Router2FAValidateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMElementOperationResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouter2FAValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMElementOperationResult message from the specified reader or buffer. + * Decodes a Router2FAValidateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMElementOperationResult + * @returns Router2FAValidateRequest * @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): PAM.PAMElementOperationResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.Router2FAValidateRequest; /** - * Creates a PAMElementOperationResult message from a plain object. Also converts values to their respective internal types. + * Creates a Router2FAValidateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMElementOperationResult + * @returns Router2FAValidateRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMElementOperationResult; + public static fromObject(object: { [k: string]: any }): Router.Router2FAValidateRequest; /** - * Creates a plain object from a PAMElementOperationResult message. Also converts values to other types if specified. - * @param message PAMElementOperationResult + * Creates a plain object from a Router2FAValidateRequest message. Also converts values to other types if specified. + * @param message Router2FAValidateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMElementOperationResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.Router2FAValidateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMElementOperationResult to JSON. + * Converts this Router2FAValidateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMElementOperationResult + * Gets the default type url for Router2FAValidateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMModifyResult. */ - interface IPAMModifyResult { + /** Properties of a Router2FASendPushRequest. */ + interface IRouter2FASendPushRequest { + + /** Router2FASendPushRequest transmissionKey */ + transmissionKey?: (Uint8Array|null); + + /** Router2FASendPushRequest sessionToken */ + sessionToken?: (Uint8Array|null); - /** PAMModifyResult results */ - results?: (PAM.IPAMElementOperationResult[]|null); + /** Router2FASendPushRequest pushType */ + pushType?: (Authentication.TwoFactorPushType|null); } - /** Represents a PAMModifyResult. */ - class PAMModifyResult implements IPAMModifyResult { + /** Represents a Router2FASendPushRequest. */ + class Router2FASendPushRequest implements IRouter2FASendPushRequest { /** - * Constructs a new PAMModifyResult. + * Constructs a new Router2FASendPushRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMModifyResult); + constructor(properties?: Router.IRouter2FASendPushRequest); - /** PAMModifyResult results. */ - public results: PAM.IPAMElementOperationResult[]; + /** Router2FASendPushRequest transmissionKey. */ + public transmissionKey: Uint8Array; + + /** Router2FASendPushRequest sessionToken. */ + public sessionToken: Uint8Array; + + /** Router2FASendPushRequest pushType. */ + public pushType: Authentication.TwoFactorPushType; /** - * Creates a new PAMModifyResult instance using the specified properties. + * Creates a new Router2FASendPushRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMModifyResult instance + * @returns Router2FASendPushRequest instance */ - public static create(properties?: PAM.IPAMModifyResult): PAM.PAMModifyResult; + public static create(properties?: Router.IRouter2FASendPushRequest): Router.Router2FASendPushRequest; /** - * Encodes the specified PAMModifyResult message. Does not implicitly {@link PAM.PAMModifyResult.verify|verify} messages. - * @param message PAMModifyResult message or plain object to encode + * Encodes the specified Router2FASendPushRequest message. Does not implicitly {@link Router.Router2FASendPushRequest.verify|verify} messages. + * @param message Router2FASendPushRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMModifyResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouter2FASendPushRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMModifyResult message from the specified reader or buffer. + * Decodes a Router2FASendPushRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMModifyResult + * @returns Router2FASendPushRequest * @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): PAM.PAMModifyResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.Router2FASendPushRequest; /** - * Creates a PAMModifyResult message from a plain object. Also converts values to their respective internal types. + * Creates a Router2FASendPushRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMModifyResult + * @returns Router2FASendPushRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMModifyResult; + public static fromObject(object: { [k: string]: any }): Router.Router2FASendPushRequest; /** - * Creates a plain object from a PAMModifyResult message. Also converts values to other types if specified. - * @param message PAMModifyResult + * Creates a plain object from a Router2FASendPushRequest message. Also converts values to other types if specified. + * @param message Router2FASendPushRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMModifyResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.Router2FASendPushRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMModifyResult to JSON. + * Converts this Router2FASendPushRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMModifyResult + * Gets the default type url for Router2FASendPushRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMElement. */ - interface IPAMElement { - - /** PAMElement elementUid */ - elementUid?: (Uint8Array|null); - - /** PAMElement data */ - data?: (Uint8Array|null); - - /** PAMElement created */ - created?: (number|null); + /** Properties of a Router2FAGetWebAuthnChallengeRequest. */ + interface IRouter2FAGetWebAuthnChallengeRequest { - /** PAMElement lastModified */ - lastModified?: (number|null); + /** Router2FAGetWebAuthnChallengeRequest transmissionKey */ + transmissionKey?: (Uint8Array|null); - /** PAMElement children */ - children?: (PAM.IPAMElement[]|null); + /** Router2FAGetWebAuthnChallengeRequest sessionToken */ + sessionToken?: (Uint8Array|null); } - /** Represents a PAMElement. */ - class PAMElement implements IPAMElement { + /** Represents a Router2FAGetWebAuthnChallengeRequest. */ + class Router2FAGetWebAuthnChallengeRequest implements IRouter2FAGetWebAuthnChallengeRequest { /** - * Constructs a new PAMElement. + * Constructs a new Router2FAGetWebAuthnChallengeRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMElement); - - /** PAMElement elementUid. */ - public elementUid: Uint8Array; - - /** PAMElement data. */ - public data: Uint8Array; - - /** PAMElement created. */ - public created: number; + constructor(properties?: Router.IRouter2FAGetWebAuthnChallengeRequest); - /** PAMElement lastModified. */ - public lastModified: number; + /** Router2FAGetWebAuthnChallengeRequest transmissionKey. */ + public transmissionKey: Uint8Array; - /** PAMElement children. */ - public children: PAM.IPAMElement[]; + /** Router2FAGetWebAuthnChallengeRequest sessionToken. */ + public sessionToken: Uint8Array; /** - * Creates a new PAMElement instance using the specified properties. + * Creates a new Router2FAGetWebAuthnChallengeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMElement instance + * @returns Router2FAGetWebAuthnChallengeRequest instance */ - public static create(properties?: PAM.IPAMElement): PAM.PAMElement; + public static create(properties?: Router.IRouter2FAGetWebAuthnChallengeRequest): Router.Router2FAGetWebAuthnChallengeRequest; /** - * Encodes the specified PAMElement message. Does not implicitly {@link PAM.PAMElement.verify|verify} messages. - * @param message PAMElement message or plain object to encode + * Encodes the specified Router2FAGetWebAuthnChallengeRequest message. Does not implicitly {@link Router.Router2FAGetWebAuthnChallengeRequest.verify|verify} messages. + * @param message Router2FAGetWebAuthnChallengeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMElement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouter2FAGetWebAuthnChallengeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMElement message from the specified reader or buffer. + * Decodes a Router2FAGetWebAuthnChallengeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMElement + * @returns Router2FAGetWebAuthnChallengeRequest * @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): PAM.PAMElement; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.Router2FAGetWebAuthnChallengeRequest; /** - * Creates a PAMElement message from a plain object. Also converts values to their respective internal types. + * Creates a Router2FAGetWebAuthnChallengeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMElement + * @returns Router2FAGetWebAuthnChallengeRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMElement; + public static fromObject(object: { [k: string]: any }): Router.Router2FAGetWebAuthnChallengeRequest; /** - * Creates a plain object from a PAMElement message. Also converts values to other types if specified. - * @param message PAMElement + * Creates a plain object from a Router2FAGetWebAuthnChallengeRequest message. Also converts values to other types if specified. + * @param message Router2FAGetWebAuthnChallengeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMElement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.Router2FAGetWebAuthnChallengeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMElement to JSON. + * Converts this Router2FAGetWebAuthnChallengeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMElement + * Gets the default type url for Router2FAGetWebAuthnChallengeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMGenericUidRequest. */ - interface IPAMGenericUidRequest { + /** Properties of a Router2FAGetWebAuthnChallengeResponse. */ + interface IRouter2FAGetWebAuthnChallengeResponse { - /** PAMGenericUidRequest uid */ - uid?: (Uint8Array|null); + /** Router2FAGetWebAuthnChallengeResponse challenge */ + challenge?: (string|null); + + /** Router2FAGetWebAuthnChallengeResponse capabilities */ + capabilities?: (string[]|null); } - /** Represents a PAMGenericUidRequest. */ - class PAMGenericUidRequest implements IPAMGenericUidRequest { + /** Represents a Router2FAGetWebAuthnChallengeResponse. */ + class Router2FAGetWebAuthnChallengeResponse implements IRouter2FAGetWebAuthnChallengeResponse { /** - * Constructs a new PAMGenericUidRequest. + * Constructs a new Router2FAGetWebAuthnChallengeResponse. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMGenericUidRequest); + constructor(properties?: Router.IRouter2FAGetWebAuthnChallengeResponse); - /** PAMGenericUidRequest uid. */ - public uid: Uint8Array; + /** Router2FAGetWebAuthnChallengeResponse challenge. */ + public challenge: string; + + /** Router2FAGetWebAuthnChallengeResponse capabilities. */ + public capabilities: string[]; /** - * Creates a new PAMGenericUidRequest instance using the specified properties. + * Creates a new Router2FAGetWebAuthnChallengeResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PAMGenericUidRequest instance + * @returns Router2FAGetWebAuthnChallengeResponse instance */ - public static create(properties?: PAM.IPAMGenericUidRequest): PAM.PAMGenericUidRequest; + public static create(properties?: Router.IRouter2FAGetWebAuthnChallengeResponse): Router.Router2FAGetWebAuthnChallengeResponse; /** - * Encodes the specified PAMGenericUidRequest message. Does not implicitly {@link PAM.PAMGenericUidRequest.verify|verify} messages. - * @param message PAMGenericUidRequest message or plain object to encode + * Encodes the specified Router2FAGetWebAuthnChallengeResponse message. Does not implicitly {@link Router.Router2FAGetWebAuthnChallengeResponse.verify|verify} messages. + * @param message Router2FAGetWebAuthnChallengeResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMGenericUidRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IRouter2FAGetWebAuthnChallengeResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMGenericUidRequest message from the specified reader or buffer. + * Decodes a Router2FAGetWebAuthnChallengeResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMGenericUidRequest + * @returns Router2FAGetWebAuthnChallengeResponse * @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): PAM.PAMGenericUidRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.Router2FAGetWebAuthnChallengeResponse; /** - * Creates a PAMGenericUidRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Router2FAGetWebAuthnChallengeResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMGenericUidRequest + * @returns Router2FAGetWebAuthnChallengeResponse */ - public static fromObject(object: { [k: string]: any }): PAM.PAMGenericUidRequest; + public static fromObject(object: { [k: string]: any }): Router.Router2FAGetWebAuthnChallengeResponse; /** - * Creates a plain object from a PAMGenericUidRequest message. Also converts values to other types if specified. - * @param message PAMGenericUidRequest + * Creates a plain object from a Router2FAGetWebAuthnChallengeResponse message. Also converts values to other types if specified. + * @param message Router2FAGetWebAuthnChallengeResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMGenericUidRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.Router2FAGetWebAuthnChallengeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMGenericUidRequest to JSON. + * Converts this Router2FAGetWebAuthnChallengeResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMGenericUidRequest + * Gets the default type url for Router2FAGetWebAuthnChallengeResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMGenericUidsRequest. */ - interface IPAMGenericUidsRequest { + /** Properties of a CreateEphemeralSecretRequest. */ + interface ICreateEphemeralSecretRequest { - /** PAMGenericUidsRequest uids */ - uids?: (Uint8Array[]|null); + /** CreateEphemeralSecretRequest encryptedSecret */ + encryptedSecret?: (Uint8Array|null); + + /** CreateEphemeralSecretRequest secretKeyHash */ + secretKeyHash?: (Uint8Array|null); + + /** CreateEphemeralSecretRequest ttl */ + ttl?: (number|null); } - /** Represents a PAMGenericUidsRequest. */ - class PAMGenericUidsRequest implements IPAMGenericUidsRequest { + /** Represents a CreateEphemeralSecretRequest. */ + class CreateEphemeralSecretRequest implements ICreateEphemeralSecretRequest { /** - * Constructs a new PAMGenericUidsRequest. + * Constructs a new CreateEphemeralSecretRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMGenericUidsRequest); + constructor(properties?: Router.ICreateEphemeralSecretRequest); - /** PAMGenericUidsRequest uids. */ - public uids: Uint8Array[]; + /** CreateEphemeralSecretRequest encryptedSecret. */ + public encryptedSecret: Uint8Array; + + /** CreateEphemeralSecretRequest secretKeyHash. */ + public secretKeyHash: Uint8Array; + + /** CreateEphemeralSecretRequest ttl. */ + public ttl: number; /** - * Creates a new PAMGenericUidsRequest instance using the specified properties. + * Creates a new CreateEphemeralSecretRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMGenericUidsRequest instance + * @returns CreateEphemeralSecretRequest instance */ - public static create(properties?: PAM.IPAMGenericUidsRequest): PAM.PAMGenericUidsRequest; + public static create(properties?: Router.ICreateEphemeralSecretRequest): Router.CreateEphemeralSecretRequest; /** - * Encodes the specified PAMGenericUidsRequest message. Does not implicitly {@link PAM.PAMGenericUidsRequest.verify|verify} messages. - * @param message PAMGenericUidsRequest message or plain object to encode + * Encodes the specified CreateEphemeralSecretRequest message. Does not implicitly {@link Router.CreateEphemeralSecretRequest.verify|verify} messages. + * @param message CreateEphemeralSecretRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMGenericUidsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.ICreateEphemeralSecretRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMGenericUidsRequest message from the specified reader or buffer. + * Decodes a CreateEphemeralSecretRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMGenericUidsRequest + * @returns CreateEphemeralSecretRequest * @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): PAM.PAMGenericUidsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.CreateEphemeralSecretRequest; /** - * Creates a PAMGenericUidsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEphemeralSecretRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMGenericUidsRequest + * @returns CreateEphemeralSecretRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMGenericUidsRequest; + public static fromObject(object: { [k: string]: any }): Router.CreateEphemeralSecretRequest; - /** - * Creates a plain object from a PAMGenericUidsRequest message. Also converts values to other types if specified. - * @param message PAMGenericUidsRequest + /** + * Creates a plain object from a CreateEphemeralSecretRequest message. Also converts values to other types if specified. + * @param message CreateEphemeralSecretRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMGenericUidsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.CreateEphemeralSecretRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMGenericUidsRequest to JSON. + * Converts this CreateEphemeralSecretRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMGenericUidsRequest + * Gets the default type url for CreateEphemeralSecretRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMConfiguration. */ - interface IPAMConfiguration { - - /** PAMConfiguration configurationUid */ - configurationUid?: (Uint8Array|null); + /** UserAccessLoweredEventType enum. */ + enum UserAccessLoweredEventType { + UALE_UNSPECIFIED = 0, + UALE_DEVICE_LOGOUT = 1, + UALE_USER_LOGOUT_ALL_DEVICES = 2, + UALE_ENFORCEMENT_REMOVED = 3, + UALE_RECORD_ACCESS_LOST = 4 + } - /** PAMConfiguration nodeId */ - nodeId?: (number|null); + /** Properties of a UserAccessLoweredEvent. */ + interface IUserAccessLoweredEvent { - /** PAMConfiguration controllerUid */ - controllerUid?: (Uint8Array|null); + /** UserAccessLoweredEvent eventType */ + eventType?: (Router.UserAccessLoweredEventType|null); - /** PAMConfiguration data */ - data?: (Uint8Array|null); + /** UserAccessLoweredEvent enterpriseUserIds */ + enterpriseUserIds?: (number[]|null); - /** PAMConfiguration created */ - created?: (number|null); + /** UserAccessLoweredEvent recordUids */ + recordUids?: (Uint8Array[]|null); - /** PAMConfiguration lastModified */ - lastModified?: (number|null); + /** UserAccessLoweredEvent deviceId */ + deviceId?: (number|null); - /** PAMConfiguration children */ - children?: (PAM.IPAMElement[]|null); + /** UserAccessLoweredEvent enforcementTypeId */ + enforcementTypeId?: (number|null); } - /** Represents a PAMConfiguration. */ - class PAMConfiguration implements IPAMConfiguration { + /** Represents a UserAccessLoweredEvent. */ + class UserAccessLoweredEvent implements IUserAccessLoweredEvent { /** - * Constructs a new PAMConfiguration. + * Constructs a new UserAccessLoweredEvent. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMConfiguration); - - /** PAMConfiguration configurationUid. */ - public configurationUid: Uint8Array; - - /** PAMConfiguration nodeId. */ - public nodeId: number; + constructor(properties?: Router.IUserAccessLoweredEvent); - /** PAMConfiguration controllerUid. */ - public controllerUid: Uint8Array; + /** UserAccessLoweredEvent eventType. */ + public eventType: Router.UserAccessLoweredEventType; - /** PAMConfiguration data. */ - public data: Uint8Array; + /** UserAccessLoweredEvent enterpriseUserIds. */ + public enterpriseUserIds: number[]; - /** PAMConfiguration created. */ - public created: number; + /** UserAccessLoweredEvent recordUids. */ + public recordUids: Uint8Array[]; - /** PAMConfiguration lastModified. */ - public lastModified: number; + /** UserAccessLoweredEvent deviceId. */ + public deviceId?: (number|null); - /** PAMConfiguration children. */ - public children: PAM.IPAMElement[]; + /** UserAccessLoweredEvent enforcementTypeId. */ + public enforcementTypeId?: (number|null); /** - * Creates a new PAMConfiguration instance using the specified properties. + * Creates a new UserAccessLoweredEvent instance using the specified properties. * @param [properties] Properties to set - * @returns PAMConfiguration instance + * @returns UserAccessLoweredEvent instance */ - public static create(properties?: PAM.IPAMConfiguration): PAM.PAMConfiguration; + public static create(properties?: Router.IUserAccessLoweredEvent): Router.UserAccessLoweredEvent; /** - * Encodes the specified PAMConfiguration message. Does not implicitly {@link PAM.PAMConfiguration.verify|verify} messages. - * @param message PAMConfiguration message or plain object to encode + * Encodes the specified UserAccessLoweredEvent message. Does not implicitly {@link Router.UserAccessLoweredEvent.verify|verify} messages. + * @param message UserAccessLoweredEvent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IUserAccessLoweredEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMConfiguration message from the specified reader or buffer. + * Decodes a UserAccessLoweredEvent message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMConfiguration + * @returns UserAccessLoweredEvent * @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): PAM.PAMConfiguration; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserAccessLoweredEvent; /** - * Creates a PAMConfiguration message from a plain object. Also converts values to their respective internal types. + * Creates a UserAccessLoweredEvent message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMConfiguration + * @returns UserAccessLoweredEvent */ - public static fromObject(object: { [k: string]: any }): PAM.PAMConfiguration; + public static fromObject(object: { [k: string]: any }): Router.UserAccessLoweredEvent; /** - * Creates a plain object from a PAMConfiguration message. Also converts values to other types if specified. - * @param message PAMConfiguration + * Creates a plain object from a UserAccessLoweredEvent message. Also converts values to other types if specified. + * @param message UserAccessLoweredEvent * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMConfiguration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.UserAccessLoweredEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMConfiguration to JSON. + * Converts this UserAccessLoweredEvent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMConfiguration + * Gets the default type url for UserAccessLoweredEvent * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMConfigurations. */ - interface IPAMConfigurations { + /** Properties of a UserAccessLoweredEventsRequest. */ + interface IUserAccessLoweredEventsRequest { - /** PAMConfigurations configurations */ - configurations?: (PAM.IPAMConfiguration[]|null); + /** UserAccessLoweredEventsRequest events */ + events?: (Router.IUserAccessLoweredEvent[]|null); } - /** Represents a PAMConfigurations. */ - class PAMConfigurations implements IPAMConfigurations { + /** Represents a UserAccessLoweredEventsRequest. */ + class UserAccessLoweredEventsRequest implements IUserAccessLoweredEventsRequest { /** - * Constructs a new PAMConfigurations. + * Constructs a new UserAccessLoweredEventsRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMConfigurations); + constructor(properties?: Router.IUserAccessLoweredEventsRequest); - /** PAMConfigurations configurations. */ - public configurations: PAM.IPAMConfiguration[]; + /** UserAccessLoweredEventsRequest events. */ + public events: Router.IUserAccessLoweredEvent[]; /** - * Creates a new PAMConfigurations instance using the specified properties. + * Creates a new UserAccessLoweredEventsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMConfigurations instance + * @returns UserAccessLoweredEventsRequest instance */ - public static create(properties?: PAM.IPAMConfigurations): PAM.PAMConfigurations; + public static create(properties?: Router.IUserAccessLoweredEventsRequest): Router.UserAccessLoweredEventsRequest; /** - * Encodes the specified PAMConfigurations message. Does not implicitly {@link PAM.PAMConfigurations.verify|verify} messages. - * @param message PAMConfigurations message or plain object to encode + * Encodes the specified UserAccessLoweredEventsRequest message. Does not implicitly {@link Router.UserAccessLoweredEventsRequest.verify|verify} messages. + * @param message UserAccessLoweredEventsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMConfigurations, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: Router.IUserAccessLoweredEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMConfigurations message from the specified reader or buffer. + * Decodes a UserAccessLoweredEventsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMConfigurations + * @returns UserAccessLoweredEventsRequest * @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): PAM.PAMConfigurations; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Router.UserAccessLoweredEventsRequest; /** - * Creates a PAMConfigurations message from a plain object. Also converts values to their respective internal types. + * Creates a UserAccessLoweredEventsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMConfigurations + * @returns UserAccessLoweredEventsRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMConfigurations; + public static fromObject(object: { [k: string]: any }): Router.UserAccessLoweredEventsRequest; /** - * Creates a plain object from a PAMConfigurations message. Also converts values to other types if specified. - * @param message PAMConfigurations + * Creates a plain object from a UserAccessLoweredEventsRequest message. Also converts values to other types if specified. + * @param message UserAccessLoweredEventsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMConfigurations, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: Router.UserAccessLoweredEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMConfigurations to JSON. + * Converts this UserAccessLoweredEventsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMConfigurations + * Gets the default type url for UserAccessLoweredEventsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } +} - /** Properties of a PAMController. */ - interface IPAMController { - - /** PAMController controllerUid */ - controllerUid?: (Uint8Array|null); - - /** PAMController controllerName */ - controllerName?: (string|null); - - /** PAMController deviceToken */ - deviceToken?: (string|null); - - /** PAMController deviceName */ - deviceName?: (string|null); +/** Namespace PAM. */ +export namespace PAM { - /** PAMController nodeId */ - nodeId?: (number|null); + /** Properties of a PAMRotationSchedule. */ + interface IPAMRotationSchedule { - /** PAMController created */ - created?: (number|null); + /** PAMRotationSchedule recordUid */ + recordUid?: (Uint8Array|null); - /** PAMController lastModified */ - lastModified?: (number|null); + /** PAMRotationSchedule configurationUid */ + configurationUid?: (Uint8Array|null); - /** PAMController applicationUid */ - applicationUid?: (Uint8Array|null); + /** PAMRotationSchedule controllerUid */ + controllerUid?: (Uint8Array|null); - /** PAMController appClientType */ - appClientType?: (Enterprise.AppClientType|null); + /** PAMRotationSchedule scheduleData */ + scheduleData?: (string|null); - /** PAMController isInitialized */ - isInitialized?: (boolean|null); + /** PAMRotationSchedule noSchedule */ + noSchedule?: (boolean|null); } - /** Represents a PAMController. */ - class PAMController implements IPAMController { + /** Represents a PAMRotationSchedule. */ + class PAMRotationSchedule implements IPAMRotationSchedule { /** - * Constructs a new PAMController. + * Constructs a new PAMRotationSchedule. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMController); - - /** PAMController controllerUid. */ - public controllerUid: Uint8Array; - - /** PAMController controllerName. */ - public controllerName: string; - - /** PAMController deviceToken. */ - public deviceToken: string; - - /** PAMController deviceName. */ - public deviceName: string; - - /** PAMController nodeId. */ - public nodeId: number; + constructor(properties?: PAM.IPAMRotationSchedule); - /** PAMController created. */ - public created: number; + /** PAMRotationSchedule recordUid. */ + public recordUid: Uint8Array; - /** PAMController lastModified. */ - public lastModified: number; + /** PAMRotationSchedule configurationUid. */ + public configurationUid: Uint8Array; - /** PAMController applicationUid. */ - public applicationUid: Uint8Array; + /** PAMRotationSchedule controllerUid. */ + public controllerUid: Uint8Array; - /** PAMController appClientType. */ - public appClientType: Enterprise.AppClientType; + /** PAMRotationSchedule scheduleData. */ + public scheduleData: string; - /** PAMController isInitialized. */ - public isInitialized: boolean; + /** PAMRotationSchedule noSchedule. */ + public noSchedule: boolean; /** - * Creates a new PAMController instance using the specified properties. + * Creates a new PAMRotationSchedule instance using the specified properties. * @param [properties] Properties to set - * @returns PAMController instance + * @returns PAMRotationSchedule instance */ - public static create(properties?: PAM.IPAMController): PAM.PAMController; + public static create(properties?: PAM.IPAMRotationSchedule): PAM.PAMRotationSchedule; /** - * Encodes the specified PAMController message. Does not implicitly {@link PAM.PAMController.verify|verify} messages. - * @param message PAMController message or plain object to encode + * Encodes the specified PAMRotationSchedule message. Does not implicitly {@link PAM.PAMRotationSchedule.verify|verify} messages. + * @param message PAMRotationSchedule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMController, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMRotationSchedule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMController message from the specified reader or buffer. + * Decodes a PAMRotationSchedule message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMController + * @returns PAMRotationSchedule * @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): PAM.PAMController; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRotationSchedule; /** - * Creates a PAMController message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRotationSchedule message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMController + * @returns PAMRotationSchedule */ - public static fromObject(object: { [k: string]: any }): PAM.PAMController; + public static fromObject(object: { [k: string]: any }): PAM.PAMRotationSchedule; /** - * Creates a plain object from a PAMController message. Also converts values to other types if specified. - * @param message PAMController + * Creates a plain object from a PAMRotationSchedule message. Also converts values to other types if specified. + * @param message PAMRotationSchedule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMController, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMRotationSchedule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMController to JSON. + * Converts this PAMRotationSchedule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMController + * Gets the default type url for PAMRotationSchedule * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMSetMaxInstanceCountRequest. */ - interface IPAMSetMaxInstanceCountRequest { - - /** PAMSetMaxInstanceCountRequest controllerUid */ - controllerUid?: (Uint8Array|null); + /** Properties of a PAMRotationSchedulesResponse. */ + interface IPAMRotationSchedulesResponse { - /** PAMSetMaxInstanceCountRequest maxInstanceCount */ - maxInstanceCount?: (number|null); + /** PAMRotationSchedulesResponse schedules */ + schedules?: (PAM.IPAMRotationSchedule[]|null); } - /** Represents a PAMSetMaxInstanceCountRequest. */ - class PAMSetMaxInstanceCountRequest implements IPAMSetMaxInstanceCountRequest { + /** Represents a PAMRotationSchedulesResponse. */ + class PAMRotationSchedulesResponse implements IPAMRotationSchedulesResponse { /** - * Constructs a new PAMSetMaxInstanceCountRequest. + * Constructs a new PAMRotationSchedulesResponse. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMSetMaxInstanceCountRequest); - - /** PAMSetMaxInstanceCountRequest controllerUid. */ - public controllerUid: Uint8Array; + constructor(properties?: PAM.IPAMRotationSchedulesResponse); - /** PAMSetMaxInstanceCountRequest maxInstanceCount. */ - public maxInstanceCount: number; + /** PAMRotationSchedulesResponse schedules. */ + public schedules: PAM.IPAMRotationSchedule[]; /** - * Creates a new PAMSetMaxInstanceCountRequest instance using the specified properties. + * Creates a new PAMRotationSchedulesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PAMSetMaxInstanceCountRequest instance + * @returns PAMRotationSchedulesResponse instance */ - public static create(properties?: PAM.IPAMSetMaxInstanceCountRequest): PAM.PAMSetMaxInstanceCountRequest; + public static create(properties?: PAM.IPAMRotationSchedulesResponse): PAM.PAMRotationSchedulesResponse; /** - * Encodes the specified PAMSetMaxInstanceCountRequest message. Does not implicitly {@link PAM.PAMSetMaxInstanceCountRequest.verify|verify} messages. - * @param message PAMSetMaxInstanceCountRequest message or plain object to encode + * Encodes the specified PAMRotationSchedulesResponse message. Does not implicitly {@link PAM.PAMRotationSchedulesResponse.verify|verify} messages. + * @param message PAMRotationSchedulesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMSetMaxInstanceCountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMRotationSchedulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMSetMaxInstanceCountRequest message from the specified reader or buffer. + * Decodes a PAMRotationSchedulesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMSetMaxInstanceCountRequest + * @returns PAMRotationSchedulesResponse * @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): PAM.PAMSetMaxInstanceCountRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRotationSchedulesResponse; /** - * Creates a PAMSetMaxInstanceCountRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRotationSchedulesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMSetMaxInstanceCountRequest + * @returns PAMRotationSchedulesResponse */ - public static fromObject(object: { [k: string]: any }): PAM.PAMSetMaxInstanceCountRequest; + public static fromObject(object: { [k: string]: any }): PAM.PAMRotationSchedulesResponse; /** - * Creates a plain object from a PAMSetMaxInstanceCountRequest message. Also converts values to other types if specified. - * @param message PAMSetMaxInstanceCountRequest + * Creates a plain object from a PAMRotationSchedulesResponse message. Also converts values to other types if specified. + * @param message PAMRotationSchedulesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMSetMaxInstanceCountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMRotationSchedulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMSetMaxInstanceCountRequest to JSON. + * Converts this PAMRotationSchedulesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMSetMaxInstanceCountRequest + * Gets the default type url for PAMRotationSchedulesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** ControllerMessageType enum. */ - enum ControllerMessageType { - CMT_GENERAL = 0, - CMT_ROTATE = 1, - CMT_DISCOVERY = 2, - CMT_CONNECT = 3, - CMT_ANALYZE_RECORDING = 4, - CMT_WORKFLOW_ACCESS_ELEVATION = 5, - CMT_USS = 6, - CMT_INFO = 7, - CMT_AUTOMATION = 8 - } + /** Properties of a PAMOnlineController. */ + interface IPAMOnlineController { - /** Properties of a ControllerResponse. */ - interface IControllerResponse { + /** PAMOnlineController controllerUid */ + controllerUid?: (Uint8Array|null); - /** ControllerResponse payload */ - payload?: (string|null); + /** PAMOnlineController connectedOn */ + connectedOn?: (number|null); + + /** PAMOnlineController ipAddress */ + ipAddress?: (string|null); + + /** PAMOnlineController version */ + version?: (string|null); + + /** PAMOnlineController connections */ + connections?: (PAM.IPAMWebRtcConnection[]|null); } - /** Represents a ControllerResponse. */ - class ControllerResponse implements IControllerResponse { + /** Represents a PAMOnlineController. */ + class PAMOnlineController implements IPAMOnlineController { /** - * Constructs a new ControllerResponse. + * Constructs a new PAMOnlineController. * @param [properties] Properties to set */ - constructor(properties?: PAM.IControllerResponse); + constructor(properties?: PAM.IPAMOnlineController); - /** ControllerResponse payload. */ - public payload: string; + /** PAMOnlineController controllerUid. */ + public controllerUid: Uint8Array; + + /** PAMOnlineController connectedOn. */ + public connectedOn: number; + + /** PAMOnlineController ipAddress. */ + public ipAddress: string; + + /** PAMOnlineController version. */ + public version: string; + + /** PAMOnlineController connections. */ + public connections: PAM.IPAMWebRtcConnection[]; /** - * Creates a new ControllerResponse instance using the specified properties. + * Creates a new PAMOnlineController instance using the specified properties. * @param [properties] Properties to set - * @returns ControllerResponse instance + * @returns PAMOnlineController instance */ - public static create(properties?: PAM.IControllerResponse): PAM.ControllerResponse; + public static create(properties?: PAM.IPAMOnlineController): PAM.PAMOnlineController; /** - * Encodes the specified ControllerResponse message. Does not implicitly {@link PAM.ControllerResponse.verify|verify} messages. - * @param message ControllerResponse message or plain object to encode + * Encodes the specified PAMOnlineController message. Does not implicitly {@link PAM.PAMOnlineController.verify|verify} messages. + * @param message PAMOnlineController message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IControllerResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMOnlineController, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ControllerResponse message from the specified reader or buffer. + * Decodes a PAMOnlineController message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ControllerResponse + * @returns PAMOnlineController * @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): PAM.ControllerResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMOnlineController; /** - * Creates a ControllerResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMOnlineController message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ControllerResponse + * @returns PAMOnlineController */ - public static fromObject(object: { [k: string]: any }): PAM.ControllerResponse; + public static fromObject(object: { [k: string]: any }): PAM.PAMOnlineController; /** - * Creates a plain object from a ControllerResponse message. Also converts values to other types if specified. - * @param message ControllerResponse + * Creates a plain object from a PAMOnlineController message. Also converts values to other types if specified. + * @param message PAMOnlineController * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.ControllerResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMOnlineController, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ControllerResponse to JSON. + * Converts this PAMOnlineController to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ControllerResponse + * Gets the default type url for PAMOnlineController * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMConfigurationController. */ - interface IPAMConfigurationController { + /** WebRtcConnectionType enum. */ + enum WebRtcConnectionType { + CONNECTION = 0, + TUNNEL = 1, + SSH = 2, + RDP = 3, + HTTP = 4, + VNC = 5, + TELNET = 6, + MYSQL = 7, + SQL_SERVER = 8, + POSTGRESQL = 9, + KUBERNETES = 10 + } - /** PAMConfigurationController configurationUid */ - configurationUid?: (Uint8Array|null); + /** Properties of a PAMWebRtcConnection. */ + interface IPAMWebRtcConnection { - /** PAMConfigurationController controllerUid */ - controllerUid?: (Uint8Array|null); + /** PAMWebRtcConnection connectionUid */ + connectionUid?: (Uint8Array|null); + + /** PAMWebRtcConnection type */ + type?: (PAM.WebRtcConnectionType|null); + + /** PAMWebRtcConnection recordUid */ + recordUid?: (Uint8Array|null); + + /** PAMWebRtcConnection userName */ + userName?: (string|null); + + /** PAMWebRtcConnection startedOn */ + startedOn?: (number|null); + + /** PAMWebRtcConnection configurationUid */ + configurationUid?: (Uint8Array|null); } - /** Represents a PAMConfigurationController. */ - class PAMConfigurationController implements IPAMConfigurationController { + /** Represents a PAMWebRtcConnection. */ + class PAMWebRtcConnection implements IPAMWebRtcConnection { /** - * Constructs a new PAMConfigurationController. + * Constructs a new PAMWebRtcConnection. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMConfigurationController); + constructor(properties?: PAM.IPAMWebRtcConnection); - /** PAMConfigurationController configurationUid. */ - public configurationUid: Uint8Array; + /** PAMWebRtcConnection connectionUid. */ + public connectionUid: Uint8Array; - /** PAMConfigurationController controllerUid. */ - public controllerUid: Uint8Array; + /** PAMWebRtcConnection type. */ + public type: PAM.WebRtcConnectionType; + + /** PAMWebRtcConnection recordUid. */ + public recordUid: Uint8Array; + + /** PAMWebRtcConnection userName. */ + public userName: string; + + /** PAMWebRtcConnection startedOn. */ + public startedOn: number; + + /** PAMWebRtcConnection configurationUid. */ + public configurationUid: Uint8Array; /** - * Creates a new PAMConfigurationController instance using the specified properties. + * Creates a new PAMWebRtcConnection instance using the specified properties. * @param [properties] Properties to set - * @returns PAMConfigurationController instance + * @returns PAMWebRtcConnection instance */ - public static create(properties?: PAM.IPAMConfigurationController): PAM.PAMConfigurationController; + public static create(properties?: PAM.IPAMWebRtcConnection): PAM.PAMWebRtcConnection; /** - * Encodes the specified PAMConfigurationController message. Does not implicitly {@link PAM.PAMConfigurationController.verify|verify} messages. - * @param message PAMConfigurationController message or plain object to encode + * Encodes the specified PAMWebRtcConnection message. Does not implicitly {@link PAM.PAMWebRtcConnection.verify|verify} messages. + * @param message PAMWebRtcConnection message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMConfigurationController, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMWebRtcConnection, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMConfigurationController message from the specified reader or buffer. + * Decodes a PAMWebRtcConnection message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMConfigurationController + * @returns PAMWebRtcConnection * @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): PAM.PAMConfigurationController; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMWebRtcConnection; /** - * Creates a PAMConfigurationController message from a plain object. Also converts values to their respective internal types. + * Creates a PAMWebRtcConnection message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMConfigurationController + * @returns PAMWebRtcConnection */ - public static fromObject(object: { [k: string]: any }): PAM.PAMConfigurationController; + public static fromObject(object: { [k: string]: any }): PAM.PAMWebRtcConnection; /** - * Creates a plain object from a PAMConfigurationController message. Also converts values to other types if specified. - * @param message PAMConfigurationController + * Creates a plain object from a PAMWebRtcConnection message. Also converts values to other types if specified. + * @param message PAMWebRtcConnection * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMConfigurationController, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMWebRtcConnection, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMConfigurationController to JSON. + * Converts this PAMWebRtcConnection to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMConfigurationController + * Gets the default type url for PAMWebRtcConnection * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ConfigurationAddRequest. */ - interface IConfigurationAddRequest { - - /** ConfigurationAddRequest configurationUid */ - configurationUid?: (Uint8Array|null); - - /** ConfigurationAddRequest recordKey */ - recordKey?: (Uint8Array|null); - - /** ConfigurationAddRequest data */ - data?: (Uint8Array|null); + /** Properties of a PAMOnlineControllers. */ + interface IPAMOnlineControllers { - /** ConfigurationAddRequest recordLinks */ - recordLinks?: (Records.IRecordLink[]|null); + /** PAMOnlineControllers deprecated */ + deprecated?: (Uint8Array[]|null); - /** ConfigurationAddRequest audit */ - audit?: (Records.IRecordAudit|null); + /** PAMOnlineControllers controllers */ + controllers?: (PAM.IPAMOnlineController[]|null); } - /** Represents a ConfigurationAddRequest. */ - class ConfigurationAddRequest implements IConfigurationAddRequest { + /** Represents a PAMOnlineControllers. */ + class PAMOnlineControllers implements IPAMOnlineControllers { /** - * Constructs a new ConfigurationAddRequest. + * Constructs a new PAMOnlineControllers. * @param [properties] Properties to set */ - constructor(properties?: PAM.IConfigurationAddRequest); - - /** ConfigurationAddRequest configurationUid. */ - public configurationUid: Uint8Array; - - /** ConfigurationAddRequest recordKey. */ - public recordKey: Uint8Array; - - /** ConfigurationAddRequest data. */ - public data: Uint8Array; + constructor(properties?: PAM.IPAMOnlineControllers); - /** ConfigurationAddRequest recordLinks. */ - public recordLinks: Records.IRecordLink[]; + /** PAMOnlineControllers deprecated. */ + public deprecated: Uint8Array[]; - /** ConfigurationAddRequest audit. */ - public audit?: (Records.IRecordAudit|null); + /** PAMOnlineControllers controllers. */ + public controllers: PAM.IPAMOnlineController[]; /** - * Creates a new ConfigurationAddRequest instance using the specified properties. + * Creates a new PAMOnlineControllers instance using the specified properties. * @param [properties] Properties to set - * @returns ConfigurationAddRequest instance + * @returns PAMOnlineControllers instance */ - public static create(properties?: PAM.IConfigurationAddRequest): PAM.ConfigurationAddRequest; + public static create(properties?: PAM.IPAMOnlineControllers): PAM.PAMOnlineControllers; /** - * Encodes the specified ConfigurationAddRequest message. Does not implicitly {@link PAM.ConfigurationAddRequest.verify|verify} messages. - * @param message ConfigurationAddRequest message or plain object to encode + * Encodes the specified PAMOnlineControllers message. Does not implicitly {@link PAM.PAMOnlineControllers.verify|verify} messages. + * @param message PAMOnlineControllers message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IConfigurationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMOnlineControllers, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConfigurationAddRequest message from the specified reader or buffer. + * Decodes a PAMOnlineControllers message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConfigurationAddRequest + * @returns PAMOnlineControllers * @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): PAM.ConfigurationAddRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMOnlineControllers; /** - * Creates a ConfigurationAddRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMOnlineControllers message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConfigurationAddRequest + * @returns PAMOnlineControllers */ - public static fromObject(object: { [k: string]: any }): PAM.ConfigurationAddRequest; + public static fromObject(object: { [k: string]: any }): PAM.PAMOnlineControllers; /** - * Creates a plain object from a ConfigurationAddRequest message. Also converts values to other types if specified. - * @param message ConfigurationAddRequest + * Creates a plain object from a PAMOnlineControllers message. Also converts values to other types if specified. + * @param message PAMOnlineControllers * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.ConfigurationAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMOnlineControllers, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConfigurationAddRequest to JSON. + * Converts this PAMOnlineControllers to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ConfigurationAddRequest + * Gets the default type url for PAMOnlineControllers * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RelayAccessCreds. */ - interface IRelayAccessCreds { - - /** RelayAccessCreds username */ - username?: (string|null); + /** Properties of a PAMRotateRequest. */ + interface IPAMRotateRequest { - /** RelayAccessCreds password */ - password?: (string|null); + /** PAMRotateRequest requestUid */ + requestUid?: (Uint8Array|null); - /** RelayAccessCreds serverTime */ - serverTime?: (number|null); + /** PAMRotateRequest recordUid */ + recordUid?: (Uint8Array|null); } - /** Represents a RelayAccessCreds. */ - class RelayAccessCreds implements IRelayAccessCreds { + /** Represents a PAMRotateRequest. */ + class PAMRotateRequest implements IPAMRotateRequest { /** - * Constructs a new RelayAccessCreds. + * Constructs a new PAMRotateRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IRelayAccessCreds); - - /** RelayAccessCreds username. */ - public username: string; + constructor(properties?: PAM.IPAMRotateRequest); - /** RelayAccessCreds password. */ - public password: string; + /** PAMRotateRequest requestUid. */ + public requestUid: Uint8Array; - /** RelayAccessCreds serverTime. */ - public serverTime: number; + /** PAMRotateRequest recordUid. */ + public recordUid: Uint8Array; /** - * Creates a new RelayAccessCreds instance using the specified properties. + * Creates a new PAMRotateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RelayAccessCreds instance + * @returns PAMRotateRequest instance */ - public static create(properties?: PAM.IRelayAccessCreds): PAM.RelayAccessCreds; + public static create(properties?: PAM.IPAMRotateRequest): PAM.PAMRotateRequest; /** - * Encodes the specified RelayAccessCreds message. Does not implicitly {@link PAM.RelayAccessCreds.verify|verify} messages. - * @param message RelayAccessCreds message or plain object to encode + * Encodes the specified PAMRotateRequest message. Does not implicitly {@link PAM.PAMRotateRequest.verify|verify} messages. + * @param message PAMRotateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IRelayAccessCreds, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMRotateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelayAccessCreds message from the specified reader or buffer. + * Decodes a PAMRotateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelayAccessCreds + * @returns PAMRotateRequest * @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): PAM.RelayAccessCreds; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRotateRequest; /** - * Creates a RelayAccessCreds message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRotateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelayAccessCreds + * @returns PAMRotateRequest */ - public static fromObject(object: { [k: string]: any }): PAM.RelayAccessCreds; + public static fromObject(object: { [k: string]: any }): PAM.PAMRotateRequest; /** - * Creates a plain object from a RelayAccessCreds message. Also converts values to other types if specified. - * @param message RelayAccessCreds + * Creates a plain object from a PAMRotateRequest message. Also converts values to other types if specified. + * @param message PAMRotateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.RelayAccessCreds, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMRotateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelayAccessCreds to JSON. + * Converts this PAMRotateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RelayAccessCreds + * Gets the default type url for PAMRotateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** PAMRecordingType enum. */ - enum PAMRecordingType { - PRT_SESSION = 0, - PRT_TYPESCRIPT = 1, - PRT_TIME = 2, - PRT_SUMMARY = 3 - } - - /** PAMRecordingRiskLevel enum. */ - enum PAMRecordingRiskLevel { - PRR_UNSPECIFIED = 0, - PRR_LOW = 1, - PRR_MEDIUM = 2, - PRR_HIGH = 3, - PRR_CRITICAL = 4 - } - - /** Properties of a PAMRecordingsRequest. */ - interface IPAMRecordingsRequest { - - /** PAMRecordingsRequest recordUid */ - recordUid?: (Uint8Array|null); - - /** PAMRecordingsRequest maxCount */ - maxCount?: (number|null); - - /** PAMRecordingsRequest rangeStart */ - rangeStart?: (number|null); - - /** PAMRecordingsRequest rangeEnd */ - rangeEnd?: (number|null); - - /** PAMRecordingsRequest types */ - types?: (PAM.PAMRecordingType[]|null); - - /** PAMRecordingsRequest risks */ - risks?: (PAM.PAMRecordingRiskLevel[]|null); - - /** PAMRecordingsRequest protocols */ - protocols?: (string[]|null); + /** Properties of a PAMControllersResponse. */ + interface IPAMControllersResponse { - /** PAMRecordingsRequest closeReasons */ - closeReasons?: (number[]|null); + /** PAMControllersResponse controllers */ + controllers?: (PAM.IPAMController[]|null); } - /** Represents a PAMRecordingsRequest. */ - class PAMRecordingsRequest implements IPAMRecordingsRequest { + /** Represents a PAMControllersResponse. */ + class PAMControllersResponse implements IPAMControllersResponse { /** - * Constructs a new PAMRecordingsRequest. + * Constructs a new PAMControllersResponse. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMRecordingsRequest); - - /** PAMRecordingsRequest recordUid. */ - public recordUid: Uint8Array; - - /** PAMRecordingsRequest maxCount. */ - public maxCount: number; - - /** PAMRecordingsRequest rangeStart. */ - public rangeStart?: (number|null); - - /** PAMRecordingsRequest rangeEnd. */ - public rangeEnd?: (number|null); - - /** PAMRecordingsRequest types. */ - public types: PAM.PAMRecordingType[]; - - /** PAMRecordingsRequest risks. */ - public risks: PAM.PAMRecordingRiskLevel[]; - - /** PAMRecordingsRequest protocols. */ - public protocols: string[]; + constructor(properties?: PAM.IPAMControllersResponse); - /** PAMRecordingsRequest closeReasons. */ - public closeReasons: number[]; + /** PAMControllersResponse controllers. */ + public controllers: PAM.IPAMController[]; /** - * Creates a new PAMRecordingsRequest instance using the specified properties. + * Creates a new PAMControllersResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PAMRecordingsRequest instance + * @returns PAMControllersResponse instance */ - public static create(properties?: PAM.IPAMRecordingsRequest): PAM.PAMRecordingsRequest; + public static create(properties?: PAM.IPAMControllersResponse): PAM.PAMControllersResponse; /** - * Encodes the specified PAMRecordingsRequest message. Does not implicitly {@link PAM.PAMRecordingsRequest.verify|verify} messages. - * @param message PAMRecordingsRequest message or plain object to encode + * Encodes the specified PAMControllersResponse message. Does not implicitly {@link PAM.PAMControllersResponse.verify|verify} messages. + * @param message PAMControllersResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMRecordingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMControllersResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMRecordingsRequest message from the specified reader or buffer. + * Decodes a PAMControllersResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMRecordingsRequest + * @returns PAMControllersResponse * @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): PAM.PAMRecordingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMControllersResponse; /** - * Creates a PAMRecordingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMControllersResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMRecordingsRequest + * @returns PAMControllersResponse */ - public static fromObject(object: { [k: string]: any }): PAM.PAMRecordingsRequest; + public static fromObject(object: { [k: string]: any }): PAM.PAMControllersResponse; /** - * Creates a plain object from a PAMRecordingsRequest message. Also converts values to other types if specified. - * @param message PAMRecordingsRequest + * Creates a plain object from a PAMControllersResponse message. Also converts values to other types if specified. + * @param message PAMControllersResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMRecordingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMControllersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMRecordingsRequest to JSON. + * Converts this PAMControllersResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMRecordingsRequest + * Gets the default type url for PAMControllersResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMRecording. */ - interface IPAMRecording { - - /** PAMRecording connectionUid */ - connectionUid?: (Uint8Array|null); - - /** PAMRecording recordingType */ - recordingType?: (PAM.PAMRecordingType|null); - - /** PAMRecording recordUid */ - recordUid?: (Uint8Array|null); - - /** PAMRecording userName */ - userName?: (string|null); - - /** PAMRecording startedOn */ - startedOn?: (number|null); - - /** PAMRecording length */ - length?: (number|null); - - /** PAMRecording fileSize */ - fileSize?: (number|null); - - /** PAMRecording createdOn */ - createdOn?: (number|null); - - /** PAMRecording protocol */ - protocol?: (string|null); - - /** PAMRecording closeReason */ - closeReason?: (number|null); - - /** PAMRecording recordingDuration */ - recordingDuration?: (number|null); + /** Properties of a PAMRemoveController. */ + interface IPAMRemoveController { - /** PAMRecording aiOverallRiskLevel */ - aiOverallRiskLevel?: (PAM.PAMRecordingRiskLevel|null); + /** PAMRemoveController controllerUid */ + controllerUid?: (Uint8Array|null); - /** PAMRecording aiOverallSummary */ - aiOverallSummary?: (Uint8Array|null); + /** PAMRemoveController message */ + message?: (string|null); } - /** Represents a PAMRecording. */ - class PAMRecording implements IPAMRecording { + /** Represents a PAMRemoveController. */ + class PAMRemoveController implements IPAMRemoveController { /** - * Constructs a new PAMRecording. + * Constructs a new PAMRemoveController. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMRecording); - - /** PAMRecording connectionUid. */ - public connectionUid: Uint8Array; - - /** PAMRecording recordingType. */ - public recordingType: PAM.PAMRecordingType; - - /** PAMRecording recordUid. */ - public recordUid: Uint8Array; - - /** PAMRecording userName. */ - public userName: string; - - /** PAMRecording startedOn. */ - public startedOn: number; - - /** PAMRecording length. */ - public length: number; - - /** PAMRecording fileSize. */ - public fileSize: number; - - /** PAMRecording createdOn. */ - public createdOn: number; - - /** PAMRecording protocol. */ - public protocol: string; - - /** PAMRecording closeReason. */ - public closeReason: number; - - /** PAMRecording recordingDuration. */ - public recordingDuration: number; + constructor(properties?: PAM.IPAMRemoveController); - /** PAMRecording aiOverallRiskLevel. */ - public aiOverallRiskLevel: PAM.PAMRecordingRiskLevel; + /** PAMRemoveController controllerUid. */ + public controllerUid: Uint8Array; - /** PAMRecording aiOverallSummary. */ - public aiOverallSummary: Uint8Array; + /** PAMRemoveController message. */ + public message: string; /** - * Creates a new PAMRecording instance using the specified properties. + * Creates a new PAMRemoveController instance using the specified properties. * @param [properties] Properties to set - * @returns PAMRecording instance + * @returns PAMRemoveController instance */ - public static create(properties?: PAM.IPAMRecording): PAM.PAMRecording; + public static create(properties?: PAM.IPAMRemoveController): PAM.PAMRemoveController; /** - * Encodes the specified PAMRecording message. Does not implicitly {@link PAM.PAMRecording.verify|verify} messages. - * @param message PAMRecording message or plain object to encode + * Encodes the specified PAMRemoveController message. Does not implicitly {@link PAM.PAMRemoveController.verify|verify} messages. + * @param message PAMRemoveController message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMRecording, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMRemoveController, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMRecording message from the specified reader or buffer. + * Decodes a PAMRemoveController message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMRecording + * @returns PAMRemoveController * @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): PAM.PAMRecording; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRemoveController; /** - * Creates a PAMRecording message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRemoveController message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMRecording + * @returns PAMRemoveController */ - public static fromObject(object: { [k: string]: any }): PAM.PAMRecording; + public static fromObject(object: { [k: string]: any }): PAM.PAMRemoveController; /** - * Creates a plain object from a PAMRecording message. Also converts values to other types if specified. - * @param message PAMRecording + * Creates a plain object from a PAMRemoveController message. Also converts values to other types if specified. + * @param message PAMRemoveController * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMRecording, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMRemoveController, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMRecording to JSON. + * Converts this PAMRemoveController to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMRecording + * Gets the default type url for PAMRemoveController * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMRecordingsResponse. */ - interface IPAMRecordingsResponse { - - /** PAMRecordingsResponse recordings */ - recordings?: (PAM.IPAMRecording[]|null); + /** Properties of a PAMRemoveControllerResponse. */ + interface IPAMRemoveControllerResponse { - /** PAMRecordingsResponse hasMore */ - hasMore?: (boolean|null); + /** PAMRemoveControllerResponse controllers */ + controllers?: (PAM.IPAMRemoveController[]|null); } - /** Represents a PAMRecordingsResponse. */ - class PAMRecordingsResponse implements IPAMRecordingsResponse { + /** Represents a PAMRemoveControllerResponse. */ + class PAMRemoveControllerResponse implements IPAMRemoveControllerResponse { /** - * Constructs a new PAMRecordingsResponse. + * Constructs a new PAMRemoveControllerResponse. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMRecordingsResponse); - - /** PAMRecordingsResponse recordings. */ - public recordings: PAM.IPAMRecording[]; + constructor(properties?: PAM.IPAMRemoveControllerResponse); - /** PAMRecordingsResponse hasMore. */ - public hasMore: boolean; + /** PAMRemoveControllerResponse controllers. */ + public controllers: PAM.IPAMRemoveController[]; /** - * Creates a new PAMRecordingsResponse instance using the specified properties. + * Creates a new PAMRemoveControllerResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PAMRecordingsResponse instance + * @returns PAMRemoveControllerResponse instance */ - public static create(properties?: PAM.IPAMRecordingsResponse): PAM.PAMRecordingsResponse; + public static create(properties?: PAM.IPAMRemoveControllerResponse): PAM.PAMRemoveControllerResponse; /** - * Encodes the specified PAMRecordingsResponse message. Does not implicitly {@link PAM.PAMRecordingsResponse.verify|verify} messages. - * @param message PAMRecordingsResponse message or plain object to encode + * Encodes the specified PAMRemoveControllerResponse message. Does not implicitly {@link PAM.PAMRemoveControllerResponse.verify|verify} messages. + * @param message PAMRemoveControllerResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMRecordingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMRemoveControllerResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMRecordingsResponse message from the specified reader or buffer. + * Decodes a PAMRemoveControllerResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMRecordingsResponse + * @returns PAMRemoveControllerResponse * @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): PAM.PAMRecordingsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRemoveControllerResponse; /** - * Creates a PAMRecordingsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRemoveControllerResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMRecordingsResponse + * @returns PAMRemoveControllerResponse */ - public static fromObject(object: { [k: string]: any }): PAM.PAMRecordingsResponse; + public static fromObject(object: { [k: string]: any }): PAM.PAMRemoveControllerResponse; /** - * Creates a plain object from a PAMRecordingsResponse message. Also converts values to other types if specified. - * @param message PAMRecordingsResponse + * Creates a plain object from a PAMRemoveControllerResponse message. Also converts values to other types if specified. + * @param message PAMRemoveControllerResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMRecordingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMRemoveControllerResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMRecordingsResponse to JSON. + * Converts this PAMRemoveControllerResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMRecordingsResponse + * Gets the default type url for PAMRemoveControllerResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMData. */ - interface IPAMData { - - /** PAMData vertex */ - vertex?: (Uint8Array|null); + /** Properties of a PAMModifyRequest. */ + interface IPAMModifyRequest { - /** PAMData content */ - content?: (Uint8Array|null); + /** PAMModifyRequest operations */ + operations?: (PAM.IPAMDataOperation[]|null); } - /** Represents a PAMData. */ - class PAMData implements IPAMData { + /** Represents a PAMModifyRequest. */ + class PAMModifyRequest implements IPAMModifyRequest { /** - * Constructs a new PAMData. + * Constructs a new PAMModifyRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMData); - - /** PAMData vertex. */ - public vertex: Uint8Array; + constructor(properties?: PAM.IPAMModifyRequest); - /** PAMData content. */ - public content: Uint8Array; + /** PAMModifyRequest operations. */ + public operations: PAM.IPAMDataOperation[]; /** - * Creates a new PAMData instance using the specified properties. + * Creates a new PAMModifyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMData instance + * @returns PAMModifyRequest instance */ - public static create(properties?: PAM.IPAMData): PAM.PAMData; + public static create(properties?: PAM.IPAMModifyRequest): PAM.PAMModifyRequest; /** - * Encodes the specified PAMData message. Does not implicitly {@link PAM.PAMData.verify|verify} messages. - * @param message PAMData message or plain object to encode + * Encodes the specified PAMModifyRequest message. Does not implicitly {@link PAM.PAMModifyRequest.verify|verify} messages. + * @param message PAMModifyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMModifyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMData message from the specified reader or buffer. + * Decodes a PAMModifyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMData + * @returns PAMModifyRequest * @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): PAM.PAMData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMModifyRequest; /** - * Creates a PAMData message from a plain object. Also converts values to their respective internal types. + * Creates a PAMModifyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMData + * @returns PAMModifyRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMData; + public static fromObject(object: { [k: string]: any }): PAM.PAMModifyRequest; /** - * Creates a plain object from a PAMData message. Also converts values to other types if specified. - * @param message PAMData + * Creates a plain object from a PAMModifyRequest message. Also converts values to other types if specified. + * @param message PAMModifyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMModifyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMData to JSON. + * Converts this PAMModifyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMData + * Gets the default type url for PAMModifyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UidList. */ - interface IUidList { + /** Properties of a PAMDataOperation. */ + interface IPAMDataOperation { - /** UidList uids */ - uids?: (Uint8Array[]|null); + /** PAMDataOperation operationType */ + operationType?: (PAM.PAMOperationType|null); + + /** PAMDataOperation configuration */ + configuration?: (PAM.IPAMConfigurationData|null); + + /** PAMDataOperation element */ + element?: (PAM.IPAMElementData|null); } - /** Represents an UidList. */ - class UidList implements IUidList { + /** Represents a PAMDataOperation. */ + class PAMDataOperation implements IPAMDataOperation { /** - * Constructs a new UidList. + * Constructs a new PAMDataOperation. * @param [properties] Properties to set */ - constructor(properties?: PAM.IUidList); + constructor(properties?: PAM.IPAMDataOperation); - /** UidList uids. */ - public uids: Uint8Array[]; + /** PAMDataOperation operationType. */ + public operationType: PAM.PAMOperationType; + + /** PAMDataOperation configuration. */ + public configuration?: (PAM.IPAMConfigurationData|null); + + /** PAMDataOperation element. */ + public element?: (PAM.IPAMElementData|null); /** - * Creates a new UidList instance using the specified properties. + * Creates a new PAMDataOperation instance using the specified properties. * @param [properties] Properties to set - * @returns UidList instance + * @returns PAMDataOperation instance */ - public static create(properties?: PAM.IUidList): PAM.UidList; + public static create(properties?: PAM.IPAMDataOperation): PAM.PAMDataOperation; /** - * Encodes the specified UidList message. Does not implicitly {@link PAM.UidList.verify|verify} messages. - * @param message UidList message or plain object to encode + * Encodes the specified PAMDataOperation message. Does not implicitly {@link PAM.PAMDataOperation.verify|verify} messages. + * @param message PAMDataOperation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IUidList, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMDataOperation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UidList message from the specified reader or buffer. + * Decodes a PAMDataOperation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UidList + * @returns PAMDataOperation * @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): PAM.UidList; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMDataOperation; /** - * Creates an UidList message from a plain object. Also converts values to their respective internal types. + * Creates a PAMDataOperation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UidList + * @returns PAMDataOperation */ - public static fromObject(object: { [k: string]: any }): PAM.UidList; + public static fromObject(object: { [k: string]: any }): PAM.PAMDataOperation; /** - * Creates a plain object from an UidList message. Also converts values to other types if specified. - * @param message UidList + * Creates a plain object from a PAMDataOperation message. Also converts values to other types if specified. + * @param message PAMDataOperation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.UidList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMDataOperation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UidList to JSON. + * Converts this PAMDataOperation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UidList + * Gets the default type url for PAMDataOperation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMResourceConfig. */ - interface IPAMResourceConfig { - - /** PAMResourceConfig recordUid */ - recordUid?: (Uint8Array|null); - - /** PAMResourceConfig networkUid */ - networkUid?: (Uint8Array|null); - - /** PAMResourceConfig adminUid */ - adminUid?: (Uint8Array|null); - - /** PAMResourceConfig meta */ - meta?: (Uint8Array|null); - - /** PAMResourceConfig connectionSettings */ - connectionSettings?: (Uint8Array|null); + /** PAMOperationType enum. */ + enum PAMOperationType { + ADD = 0, + UPDATE = 1, + REPLACE = 2, + DELETE = 3 + } - /** PAMResourceConfig connectUsers */ - connectUsers?: (PAM.IUidList|null); + /** Properties of a PAMConfigurationData. */ + interface IPAMConfigurationData { - /** PAMResourceConfig domainUid */ - domainUid?: (Uint8Array|null); + /** PAMConfigurationData configurationUid */ + configurationUid?: (Uint8Array|null); - /** PAMResourceConfig jitSettings */ - jitSettings?: (Uint8Array|null); + /** PAMConfigurationData nodeId */ + nodeId?: (number|null); - /** PAMResourceConfig keeperAiSettings */ - keeperAiSettings?: (Uint8Array|null); + /** PAMConfigurationData controllerUid */ + controllerUid?: (Uint8Array|null); - /** PAMResourceConfig updateServices */ - updateServices?: (boolean|null); + /** PAMConfigurationData data */ + data?: (Uint8Array|null); } - /** Represents a PAMResourceConfig. */ - class PAMResourceConfig implements IPAMResourceConfig { + /** Represents a PAMConfigurationData. */ + class PAMConfigurationData implements IPAMConfigurationData { /** - * Constructs a new PAMResourceConfig. + * Constructs a new PAMConfigurationData. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMResourceConfig); - - /** PAMResourceConfig recordUid. */ - public recordUid: Uint8Array; - - /** PAMResourceConfig networkUid. */ - public networkUid?: (Uint8Array|null); - - /** PAMResourceConfig adminUid. */ - public adminUid?: (Uint8Array|null); - - /** PAMResourceConfig meta. */ - public meta?: (Uint8Array|null); - - /** PAMResourceConfig connectionSettings. */ - public connectionSettings?: (Uint8Array|null); - - /** PAMResourceConfig connectUsers. */ - public connectUsers?: (PAM.IUidList|null); + constructor(properties?: PAM.IPAMConfigurationData); - /** PAMResourceConfig domainUid. */ - public domainUid?: (Uint8Array|null); + /** PAMConfigurationData configurationUid. */ + public configurationUid: Uint8Array; - /** PAMResourceConfig jitSettings. */ - public jitSettings?: (Uint8Array|null); + /** PAMConfigurationData nodeId. */ + public nodeId: number; - /** PAMResourceConfig keeperAiSettings. */ - public keeperAiSettings?: (Uint8Array|null); + /** PAMConfigurationData controllerUid. */ + public controllerUid: Uint8Array; - /** PAMResourceConfig updateServices. */ - public updateServices?: (boolean|null); + /** PAMConfigurationData data. */ + public data: Uint8Array; /** - * Creates a new PAMResourceConfig instance using the specified properties. + * Creates a new PAMConfigurationData instance using the specified properties. * @param [properties] Properties to set - * @returns PAMResourceConfig instance + * @returns PAMConfigurationData instance */ - public static create(properties?: PAM.IPAMResourceConfig): PAM.PAMResourceConfig; + public static create(properties?: PAM.IPAMConfigurationData): PAM.PAMConfigurationData; /** - * Encodes the specified PAMResourceConfig message. Does not implicitly {@link PAM.PAMResourceConfig.verify|verify} messages. - * @param message PAMResourceConfig message or plain object to encode + * Encodes the specified PAMConfigurationData message. Does not implicitly {@link PAM.PAMConfigurationData.verify|verify} messages. + * @param message PAMConfigurationData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMResourceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMConfigurationData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMResourceConfig message from the specified reader or buffer. + * Decodes a PAMConfigurationData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMResourceConfig + * @returns PAMConfigurationData * @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): PAM.PAMResourceConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMConfigurationData; /** - * Creates a PAMResourceConfig message from a plain object. Also converts values to their respective internal types. + * Creates a PAMConfigurationData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMResourceConfig + * @returns PAMConfigurationData */ - public static fromObject(object: { [k: string]: any }): PAM.PAMResourceConfig; + public static fromObject(object: { [k: string]: any }): PAM.PAMConfigurationData; /** - * Creates a plain object from a PAMResourceConfig message. Also converts values to other types if specified. - * @param message PAMResourceConfig + * Creates a plain object from a PAMConfigurationData message. Also converts values to other types if specified. + * @param message PAMConfigurationData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMResourceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMConfigurationData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMResourceConfig to JSON. + * Converts this PAMConfigurationData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMResourceConfig + * Gets the default type url for PAMConfigurationData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMUniversalSyncFolder. */ - interface IPAMUniversalSyncFolder { + /** Properties of a PAMElementData. */ + interface IPAMElementData { - /** PAMUniversalSyncFolder uid */ - uid?: (Uint8Array|null); + /** PAMElementData elementUid */ + elementUid?: (Uint8Array|null); + + /** PAMElementData parentUid */ + parentUid?: (Uint8Array|null); + + /** PAMElementData data */ + data?: (Uint8Array|null); } - /** Represents a PAMUniversalSyncFolder. */ - class PAMUniversalSyncFolder implements IPAMUniversalSyncFolder { + /** Represents a PAMElementData. */ + class PAMElementData implements IPAMElementData { /** - * Constructs a new PAMUniversalSyncFolder. + * Constructs a new PAMElementData. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMUniversalSyncFolder); + constructor(properties?: PAM.IPAMElementData); - /** PAMUniversalSyncFolder uid. */ - public uid: Uint8Array; + /** PAMElementData elementUid. */ + public elementUid: Uint8Array; + + /** PAMElementData parentUid. */ + public parentUid: Uint8Array; + + /** PAMElementData data. */ + public data: Uint8Array; /** - * Creates a new PAMUniversalSyncFolder instance using the specified properties. + * Creates a new PAMElementData instance using the specified properties. * @param [properties] Properties to set - * @returns PAMUniversalSyncFolder instance + * @returns PAMElementData instance */ - public static create(properties?: PAM.IPAMUniversalSyncFolder): PAM.PAMUniversalSyncFolder; + public static create(properties?: PAM.IPAMElementData): PAM.PAMElementData; /** - * Encodes the specified PAMUniversalSyncFolder message. Does not implicitly {@link PAM.PAMUniversalSyncFolder.verify|verify} messages. - * @param message PAMUniversalSyncFolder message or plain object to encode + * Encodes the specified PAMElementData message. Does not implicitly {@link PAM.PAMElementData.verify|verify} messages. + * @param message PAMElementData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMUniversalSyncFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMElementData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMUniversalSyncFolder message from the specified reader or buffer. + * Decodes a PAMElementData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMUniversalSyncFolder + * @returns PAMElementData * @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): PAM.PAMUniversalSyncFolder; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMElementData; /** - * Creates a PAMUniversalSyncFolder message from a plain object. Also converts values to their respective internal types. + * Creates a PAMElementData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMUniversalSyncFolder + * @returns PAMElementData */ - public static fromObject(object: { [k: string]: any }): PAM.PAMUniversalSyncFolder; + public static fromObject(object: { [k: string]: any }): PAM.PAMElementData; /** - * Creates a plain object from a PAMUniversalSyncFolder message. Also converts values to other types if specified. - * @param message PAMUniversalSyncFolder + * Creates a plain object from a PAMElementData message. Also converts values to other types if specified. + * @param message PAMElementData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMUniversalSyncFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMElementData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMUniversalSyncFolder to JSON. + * Converts this PAMElementData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMUniversalSyncFolder + * Gets the default type url for PAMElementData * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMUniversalSyncConfig. */ - interface IPAMUniversalSyncConfig { - - /** PAMUniversalSyncConfig networkUid */ - networkUid?: (Uint8Array|null); - - /** PAMUniversalSyncConfig enabled */ - enabled?: (boolean|null); + /** PAMOperationResultType enum. */ + enum PAMOperationResultType { + POT_SUCCESS = 0, + POT_UNKNOWN_ERROR = 1, + POT_ALREADY_EXISTS = 2, + POT_DOES_NOT_EXIST = 3 + } - /** PAMUniversalSyncConfig dryRunEnabled */ - dryRunEnabled?: (boolean|null); + /** Properties of a PAMElementOperationResult. */ + interface IPAMElementOperationResult { - /** PAMUniversalSyncConfig folders */ - folders?: (PAM.IPAMUniversalSyncFolder[]|null); + /** PAMElementOperationResult elementUid */ + elementUid?: (Uint8Array|null); - /** PAMUniversalSyncConfig syncIdentity */ - syncIdentity?: (Uint8Array|null); + /** PAMElementOperationResult result */ + result?: (PAM.PAMOperationResultType|null); - /** PAMUniversalSyncConfig vaultName */ - vaultName?: (Uint8Array|null); + /** PAMElementOperationResult message */ + message?: (string|null); } - /** Represents a PAMUniversalSyncConfig. */ - class PAMUniversalSyncConfig implements IPAMUniversalSyncConfig { + /** Represents a PAMElementOperationResult. */ + class PAMElementOperationResult implements IPAMElementOperationResult { /** - * Constructs a new PAMUniversalSyncConfig. + * Constructs a new PAMElementOperationResult. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMUniversalSyncConfig); - - /** PAMUniversalSyncConfig networkUid. */ - public networkUid: Uint8Array; - - /** PAMUniversalSyncConfig enabled. */ - public enabled?: (boolean|null); - - /** PAMUniversalSyncConfig dryRunEnabled. */ - public dryRunEnabled?: (boolean|null); + constructor(properties?: PAM.IPAMElementOperationResult); - /** PAMUniversalSyncConfig folders. */ - public folders: PAM.IPAMUniversalSyncFolder[]; + /** PAMElementOperationResult elementUid. */ + public elementUid: Uint8Array; - /** PAMUniversalSyncConfig syncIdentity. */ - public syncIdentity?: (Uint8Array|null); + /** PAMElementOperationResult result. */ + public result: PAM.PAMOperationResultType; - /** PAMUniversalSyncConfig vaultName. */ - public vaultName?: (Uint8Array|null); + /** PAMElementOperationResult message. */ + public message: string; /** - * Creates a new PAMUniversalSyncConfig instance using the specified properties. + * Creates a new PAMElementOperationResult instance using the specified properties. * @param [properties] Properties to set - * @returns PAMUniversalSyncConfig instance + * @returns PAMElementOperationResult instance */ - public static create(properties?: PAM.IPAMUniversalSyncConfig): PAM.PAMUniversalSyncConfig; + public static create(properties?: PAM.IPAMElementOperationResult): PAM.PAMElementOperationResult; /** - * Encodes the specified PAMUniversalSyncConfig message. Does not implicitly {@link PAM.PAMUniversalSyncConfig.verify|verify} messages. - * @param message PAMUniversalSyncConfig message or plain object to encode + * Encodes the specified PAMElementOperationResult message. Does not implicitly {@link PAM.PAMElementOperationResult.verify|verify} messages. + * @param message PAMElementOperationResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMUniversalSyncConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMElementOperationResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMUniversalSyncConfig message from the specified reader or buffer. + * Decodes a PAMElementOperationResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMUniversalSyncConfig + * @returns PAMElementOperationResult * @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): PAM.PAMUniversalSyncConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMElementOperationResult; /** - * Creates a PAMUniversalSyncConfig message from a plain object. Also converts values to their respective internal types. + * Creates a PAMElementOperationResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMUniversalSyncConfig + * @returns PAMElementOperationResult */ - public static fromObject(object: { [k: string]: any }): PAM.PAMUniversalSyncConfig; + public static fromObject(object: { [k: string]: any }): PAM.PAMElementOperationResult; /** - * Creates a plain object from a PAMUniversalSyncConfig message. Also converts values to other types if specified. - * @param message PAMUniversalSyncConfig + * Creates a plain object from a PAMElementOperationResult message. Also converts values to other types if specified. + * @param message PAMElementOperationResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMUniversalSyncConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMElementOperationResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMUniversalSyncConfig to JSON. + * Converts this PAMElementOperationResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMUniversalSyncConfig + * Gets the default type url for PAMElementOperationResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NhiMetricsRequest. */ - interface INhiMetricsRequest { - - /** NhiMetricsRequest startTime */ - startTime?: (number|null); + /** Properties of a PAMModifyResult. */ + interface IPAMModifyResult { - /** NhiMetricsRequest endTime */ - endTime?: (number|null); + /** PAMModifyResult results */ + results?: (PAM.IPAMElementOperationResult[]|null); } - /** Represents a NhiMetricsRequest. */ - class NhiMetricsRequest implements INhiMetricsRequest { + /** Represents a PAMModifyResult. */ + class PAMModifyResult implements IPAMModifyResult { /** - * Constructs a new NhiMetricsRequest. + * Constructs a new PAMModifyResult. * @param [properties] Properties to set */ - constructor(properties?: PAM.INhiMetricsRequest); - - /** NhiMetricsRequest startTime. */ - public startTime: number; + constructor(properties?: PAM.IPAMModifyResult); - /** NhiMetricsRequest endTime. */ - public endTime: number; + /** PAMModifyResult results. */ + public results: PAM.IPAMElementOperationResult[]; /** - * Creates a new NhiMetricsRequest instance using the specified properties. + * Creates a new PAMModifyResult instance using the specified properties. * @param [properties] Properties to set - * @returns NhiMetricsRequest instance + * @returns PAMModifyResult instance */ - public static create(properties?: PAM.INhiMetricsRequest): PAM.NhiMetricsRequest; + public static create(properties?: PAM.IPAMModifyResult): PAM.PAMModifyResult; /** - * Encodes the specified NhiMetricsRequest message. Does not implicitly {@link PAM.NhiMetricsRequest.verify|verify} messages. - * @param message NhiMetricsRequest message or plain object to encode + * Encodes the specified PAMModifyResult message. Does not implicitly {@link PAM.PAMModifyResult.verify|verify} messages. + * @param message PAMModifyResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.INhiMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMModifyResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NhiMetricsRequest message from the specified reader or buffer. + * Decodes a PAMModifyResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NhiMetricsRequest + * @returns PAMModifyResult * @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): PAM.NhiMetricsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMModifyResult; /** - * Creates a NhiMetricsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMModifyResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NhiMetricsRequest + * @returns PAMModifyResult */ - public static fromObject(object: { [k: string]: any }): PAM.NhiMetricsRequest; + public static fromObject(object: { [k: string]: any }): PAM.PAMModifyResult; /** - * Creates a plain object from a NhiMetricsRequest message. Also converts values to other types if specified. - * @param message NhiMetricsRequest + * Creates a plain object from a PAMModifyResult message. Also converts values to other types if specified. + * @param message PAMModifyResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.NhiMetricsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMModifyResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NhiMetricsRequest to JSON. + * Converts this PAMModifyResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NhiMetricsRequest + * Gets the default type url for PAMModifyResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PamUsageByUser. */ - interface IPamUsageByUser { + /** Properties of a PAMElement. */ + interface IPAMElement { - /** PamUsageByUser userId */ - userId?: (number|null); + /** PAMElement elementUid */ + elementUid?: (Uint8Array|null); - /** PamUsageByUser recordRotationScheduledOk */ - recordRotationScheduledOk?: (number|null); + /** PAMElement data */ + data?: (Uint8Array|null); - /** PamUsageByUser pamConnectionStarted */ - pamConnectionStarted?: (number|null); + /** PAMElement created */ + created?: (number|null); - /** PamUsageByUser pamTunnelStarted */ - pamTunnelStarted?: (number|null); + /** PAMElement lastModified */ + lastModified?: (number|null); - /** PamUsageByUser discoveryJobStarted */ - discoveryJobStarted?: (number|null); + /** PAMElement children */ + children?: (PAM.IPAMElement[]|null); + } - /** PamUsageByUser recordRotationOnDemandOk */ - recordRotationOnDemandOk?: (number|null); + /** Represents a PAMElement. */ + class PAMElement implements IPAMElement { - /** PamUsageByUser pamSessionRecordingStarted */ - pamSessionRecordingStarted?: (number|null); + /** + * Constructs a new PAMElement. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.IPAMElement); - /** PamUsageByUser pamRbiStarted */ - pamRbiStarted?: (number|null); + /** PAMElement elementUid. */ + public elementUid: Uint8Array; - /** PamUsageByUser pamSessionRbiRecordingStarted */ - pamSessionRbiRecordingStarted?: (number|null); - } + /** PAMElement data. */ + public data: Uint8Array; - /** Represents a PamUsageByUser. */ - class PamUsageByUser implements IPamUsageByUser { + /** PAMElement created. */ + public created: number; + + /** PAMElement lastModified. */ + public lastModified: number; + + /** PAMElement children. */ + public children: PAM.IPAMElement[]; + + /** + * Creates a new PAMElement instance using the specified properties. + * @param [properties] Properties to set + * @returns PAMElement instance + */ + public static create(properties?: PAM.IPAMElement): PAM.PAMElement; + + /** + * Encodes the specified PAMElement message. Does not implicitly {@link PAM.PAMElement.verify|verify} messages. + * @param message PAMElement message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.IPAMElement, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PAMElement message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PAMElement + * @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): PAM.PAMElement; + + /** + * Creates a PAMElement message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PAMElement + */ + public static fromObject(object: { [k: string]: any }): PAM.PAMElement; /** - * Constructs a new PamUsageByUser. - * @param [properties] Properties to set + * Creates a plain object from a PAMElement message. Also converts values to other types if specified. + * @param message PAMElement + * @param [options] Conversion options + * @returns Plain object */ - constructor(properties?: PAM.IPamUsageByUser); - - /** PamUsageByUser userId. */ - public userId: number; - - /** PamUsageByUser recordRotationScheduledOk. */ - public recordRotationScheduledOk: number; + public static toObject(message: PAM.PAMElement, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** PamUsageByUser pamConnectionStarted. */ - public pamConnectionStarted: number; + /** + * Converts this PAMElement to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** PamUsageByUser pamTunnelStarted. */ - public pamTunnelStarted: number; + /** + * Gets the default type url for PAMElement + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** PamUsageByUser discoveryJobStarted. */ - public discoveryJobStarted: number; + /** Properties of a PAMGenericUidRequest. */ + interface IPAMGenericUidRequest { - /** PamUsageByUser recordRotationOnDemandOk. */ - public recordRotationOnDemandOk: number; + /** PAMGenericUidRequest uid */ + uid?: (Uint8Array|null); + } - /** PamUsageByUser pamSessionRecordingStarted. */ - public pamSessionRecordingStarted: number; + /** Represents a PAMGenericUidRequest. */ + class PAMGenericUidRequest implements IPAMGenericUidRequest { - /** PamUsageByUser pamRbiStarted. */ - public pamRbiStarted: number; + /** + * Constructs a new PAMGenericUidRequest. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.IPAMGenericUidRequest); - /** PamUsageByUser pamSessionRbiRecordingStarted. */ - public pamSessionRbiRecordingStarted: number; + /** PAMGenericUidRequest uid. */ + public uid: Uint8Array; /** - * Creates a new PamUsageByUser instance using the specified properties. + * Creates a new PAMGenericUidRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PamUsageByUser instance + * @returns PAMGenericUidRequest instance */ - public static create(properties?: PAM.IPamUsageByUser): PAM.PamUsageByUser; + public static create(properties?: PAM.IPAMGenericUidRequest): PAM.PAMGenericUidRequest; /** - * Encodes the specified PamUsageByUser message. Does not implicitly {@link PAM.PamUsageByUser.verify|verify} messages. - * @param message PamUsageByUser message or plain object to encode + * Encodes the specified PAMGenericUidRequest message. Does not implicitly {@link PAM.PAMGenericUidRequest.verify|verify} messages. + * @param message PAMGenericUidRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPamUsageByUser, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMGenericUidRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PamUsageByUser message from the specified reader or buffer. + * Decodes a PAMGenericUidRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PamUsageByUser + * @returns PAMGenericUidRequest * @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): PAM.PamUsageByUser; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMGenericUidRequest; /** - * Creates a PamUsageByUser message from a plain object. Also converts values to their respective internal types. + * Creates a PAMGenericUidRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PamUsageByUser + * @returns PAMGenericUidRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PamUsageByUser; + public static fromObject(object: { [k: string]: any }): PAM.PAMGenericUidRequest; /** - * Creates a plain object from a PamUsageByUser message. Also converts values to other types if specified. - * @param message PamUsageByUser + * Creates a plain object from a PAMGenericUidRequest message. Also converts values to other types if specified. + * @param message PAMGenericUidRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PamUsageByUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMGenericUidRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PamUsageByUser to JSON. + * Converts this PAMGenericUidRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PamUsageByUser + * Gets the default type url for PAMGenericUidRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NhiUsageByUser. */ - interface INhiUsageByUser { - - /** NhiUsageByUser userId */ - userId?: (number|null); - - /** NhiUsageByUser rotations */ - rotations?: (number|null); - - /** NhiUsageByUser tunnels */ - tunnels?: (number|null); - - /** NhiUsageByUser connections */ - connections?: (number|null); + /** Properties of a PAMGenericUidsRequest. */ + interface IPAMGenericUidsRequest { - /** NhiUsageByUser discoveryJobs */ - discoveryJobs?: (number|null); + /** PAMGenericUidsRequest uids */ + uids?: (Uint8Array[]|null); } - /** Represents a NhiUsageByUser. */ - class NhiUsageByUser implements INhiUsageByUser { + /** Represents a PAMGenericUidsRequest. */ + class PAMGenericUidsRequest implements IPAMGenericUidsRequest { /** - * Constructs a new NhiUsageByUser. + * Constructs a new PAMGenericUidsRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.INhiUsageByUser); - - /** NhiUsageByUser userId. */ - public userId: number; - - /** NhiUsageByUser rotations. */ - public rotations: number; - - /** NhiUsageByUser tunnels. */ - public tunnels: number; - - /** NhiUsageByUser connections. */ - public connections: number; + constructor(properties?: PAM.IPAMGenericUidsRequest); - /** NhiUsageByUser discoveryJobs. */ - public discoveryJobs: number; + /** PAMGenericUidsRequest uids. */ + public uids: Uint8Array[]; /** - * Creates a new NhiUsageByUser instance using the specified properties. + * Creates a new PAMGenericUidsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NhiUsageByUser instance + * @returns PAMGenericUidsRequest instance */ - public static create(properties?: PAM.INhiUsageByUser): PAM.NhiUsageByUser; + public static create(properties?: PAM.IPAMGenericUidsRequest): PAM.PAMGenericUidsRequest; /** - * Encodes the specified NhiUsageByUser message. Does not implicitly {@link PAM.NhiUsageByUser.verify|verify} messages. - * @param message NhiUsageByUser message or plain object to encode + * Encodes the specified PAMGenericUidsRequest message. Does not implicitly {@link PAM.PAMGenericUidsRequest.verify|verify} messages. + * @param message PAMGenericUidsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.INhiUsageByUser, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMGenericUidsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NhiUsageByUser message from the specified reader or buffer. + * Decodes a PAMGenericUidsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NhiUsageByUser + * @returns PAMGenericUidsRequest * @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): PAM.NhiUsageByUser; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMGenericUidsRequest; /** - * Creates a NhiUsageByUser message from a plain object. Also converts values to their respective internal types. + * Creates a PAMGenericUidsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NhiUsageByUser + * @returns PAMGenericUidsRequest */ - public static fromObject(object: { [k: string]: any }): PAM.NhiUsageByUser; + public static fromObject(object: { [k: string]: any }): PAM.PAMGenericUidsRequest; /** - * Creates a plain object from a NhiUsageByUser message. Also converts values to other types if specified. - * @param message NhiUsageByUser + * Creates a plain object from a PAMGenericUidsRequest message. Also converts values to other types if specified. + * @param message PAMGenericUidsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.NhiUsageByUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMGenericUidsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NhiUsageByUser to JSON. + * Converts this PAMGenericUidsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NhiUsageByUser + * Gets the default type url for PAMGenericUidsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NhiMetricsResponse. */ - interface INhiMetricsResponse { + /** Properties of a PAMConfiguration. */ + interface IPAMConfiguration { - /** NhiMetricsResponse enterpriseId */ - enterpriseId?: (number|null); + /** PAMConfiguration configurationUid */ + configurationUid?: (Uint8Array|null); - /** NhiMetricsResponse startTime */ - startTime?: (number|null); + /** PAMConfiguration nodeId */ + nodeId?: (number|null); - /** NhiMetricsResponse endTime */ - endTime?: (number|null); + /** PAMConfiguration controllerUid */ + controllerUid?: (Uint8Array|null); - /** NhiMetricsResponse uniqueKsmDevices */ - uniqueKsmDevices?: (number|null); + /** PAMConfiguration data */ + data?: (Uint8Array|null); - /** NhiMetricsResponse pamGatewayOnline */ - pamGatewayOnline?: (number|null); + /** PAMConfiguration created */ + created?: (number|null); - /** NhiMetricsResponse pamUsageByUser */ - pamUsageByUser?: (PAM.IPamUsageByUser[]|null); + /** PAMConfiguration lastModified */ + lastModified?: (number|null); - /** NhiMetricsResponse nhiCount */ - nhiCount?: (number|null); + /** PAMConfiguration children */ + children?: (PAM.IPAMElement[]|null); + } - /** NhiMetricsResponse ksmNhiCount */ - ksmNhiCount?: (number|null); + /** Represents a PAMConfiguration. */ + class PAMConfiguration implements IPAMConfiguration { - /** NhiMetricsResponse usageByUser */ - usageByUser?: (PAM.INhiUsageByUser[]|null); - } + /** + * Constructs a new PAMConfiguration. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.IPAMConfiguration); - /** Represents a NhiMetricsResponse. */ - class NhiMetricsResponse implements INhiMetricsResponse { + /** PAMConfiguration configurationUid. */ + public configurationUid: Uint8Array; + + /** PAMConfiguration nodeId. */ + public nodeId: number; + + /** PAMConfiguration controllerUid. */ + public controllerUid: Uint8Array; + + /** PAMConfiguration data. */ + public data: Uint8Array; + + /** PAMConfiguration created. */ + public created: number; + + /** PAMConfiguration lastModified. */ + public lastModified: number; + + /** PAMConfiguration children. */ + public children: PAM.IPAMElement[]; + + /** + * Creates a new PAMConfiguration instance using the specified properties. + * @param [properties] Properties to set + * @returns PAMConfiguration instance + */ + public static create(properties?: PAM.IPAMConfiguration): PAM.PAMConfiguration; + + /** + * Encodes the specified PAMConfiguration message. Does not implicitly {@link PAM.PAMConfiguration.verify|verify} messages. + * @param message PAMConfiguration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.IPAMConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PAMConfiguration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PAMConfiguration + * @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): PAM.PAMConfiguration; /** - * Constructs a new NhiMetricsResponse. - * @param [properties] Properties to set + * Creates a PAMConfiguration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PAMConfiguration */ - constructor(properties?: PAM.INhiMetricsResponse); - - /** NhiMetricsResponse enterpriseId. */ - public enterpriseId: number; + public static fromObject(object: { [k: string]: any }): PAM.PAMConfiguration; - /** NhiMetricsResponse startTime. */ - public startTime: number; + /** + * Creates a plain object from a PAMConfiguration message. Also converts values to other types if specified. + * @param message PAMConfiguration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.PAMConfiguration, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** NhiMetricsResponse endTime. */ - public endTime: number; + /** + * Converts this PAMConfiguration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** NhiMetricsResponse uniqueKsmDevices. */ - public uniqueKsmDevices: number; + /** + * Gets the default type url for PAMConfiguration + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** NhiMetricsResponse pamGatewayOnline. */ - public pamGatewayOnline: number; + /** Properties of a PAMConfigurations. */ + interface IPAMConfigurations { - /** NhiMetricsResponse pamUsageByUser. */ - public pamUsageByUser: PAM.IPamUsageByUser[]; + /** PAMConfigurations configurations */ + configurations?: (PAM.IPAMConfiguration[]|null); + } - /** NhiMetricsResponse nhiCount. */ - public nhiCount: number; + /** Represents a PAMConfigurations. */ + class PAMConfigurations implements IPAMConfigurations { - /** NhiMetricsResponse ksmNhiCount. */ - public ksmNhiCount: number; + /** + * Constructs a new PAMConfigurations. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.IPAMConfigurations); - /** NhiMetricsResponse usageByUser. */ - public usageByUser: PAM.INhiUsageByUser[]; + /** PAMConfigurations configurations. */ + public configurations: PAM.IPAMConfiguration[]; /** - * Creates a new NhiMetricsResponse instance using the specified properties. + * Creates a new PAMConfigurations instance using the specified properties. * @param [properties] Properties to set - * @returns NhiMetricsResponse instance + * @returns PAMConfigurations instance */ - public static create(properties?: PAM.INhiMetricsResponse): PAM.NhiMetricsResponse; + public static create(properties?: PAM.IPAMConfigurations): PAM.PAMConfigurations; /** - * Encodes the specified NhiMetricsResponse message. Does not implicitly {@link PAM.NhiMetricsResponse.verify|verify} messages. - * @param message NhiMetricsResponse message or plain object to encode + * Encodes the specified PAMConfigurations message. Does not implicitly {@link PAM.PAMConfigurations.verify|verify} messages. + * @param message PAMConfigurations message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.INhiMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMConfigurations, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NhiMetricsResponse message from the specified reader or buffer. + * Decodes a PAMConfigurations message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NhiMetricsResponse + * @returns PAMConfigurations * @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): PAM.NhiMetricsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMConfigurations; /** - * Creates a NhiMetricsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMConfigurations message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NhiMetricsResponse + * @returns PAMConfigurations */ - public static fromObject(object: { [k: string]: any }): PAM.NhiMetricsResponse; + public static fromObject(object: { [k: string]: any }): PAM.PAMConfigurations; /** - * Creates a plain object from a NhiMetricsResponse message. Also converts values to other types if specified. - * @param message NhiMetricsResponse + * Creates a plain object from a PAMConfigurations message. Also converts values to other types if specified. + * @param message PAMConfigurations * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.NhiMetricsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMConfigurations, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NhiMetricsResponse to JSON. + * Converts this PAMConfigurations to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NhiMetricsResponse + * Gets the default type url for PAMConfigurations * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NhiBulkMetricsResponse. */ - interface INhiBulkMetricsResponse { + /** Properties of a PAMController. */ + interface IPAMController { - /** NhiBulkMetricsResponse responses */ - responses?: (PAM.INhiMetricsResponse[]|null); + /** PAMController controllerUid */ + controllerUid?: (Uint8Array|null); + + /** PAMController controllerName */ + controllerName?: (string|null); + + /** PAMController deviceToken */ + deviceToken?: (string|null); + + /** PAMController deviceName */ + deviceName?: (string|null); + + /** PAMController nodeId */ + nodeId?: (number|null); + + /** PAMController created */ + created?: (number|null); + + /** PAMController lastModified */ + lastModified?: (number|null); + + /** PAMController applicationUid */ + applicationUid?: (Uint8Array|null); + + /** PAMController appClientType */ + appClientType?: (Enterprise.AppClientType|null); + + /** PAMController isInitialized */ + isInitialized?: (boolean|null); } - /** Represents a NhiBulkMetricsResponse. */ - class NhiBulkMetricsResponse implements INhiBulkMetricsResponse { + /** Represents a PAMController. */ + class PAMController implements IPAMController { /** - * Constructs a new NhiBulkMetricsResponse. + * Constructs a new PAMController. * @param [properties] Properties to set */ - constructor(properties?: PAM.INhiBulkMetricsResponse); + constructor(properties?: PAM.IPAMController); - /** NhiBulkMetricsResponse responses. */ - public responses: PAM.INhiMetricsResponse[]; + /** PAMController controllerUid. */ + public controllerUid: Uint8Array; + + /** PAMController controllerName. */ + public controllerName: string; + + /** PAMController deviceToken. */ + public deviceToken: string; + + /** PAMController deviceName. */ + public deviceName: string; + + /** PAMController nodeId. */ + public nodeId: number; + + /** PAMController created. */ + public created: number; + + /** PAMController lastModified. */ + public lastModified: number; + + /** PAMController applicationUid. */ + public applicationUid: Uint8Array; + + /** PAMController appClientType. */ + public appClientType: Enterprise.AppClientType; + + /** PAMController isInitialized. */ + public isInitialized: boolean; /** - * Creates a new NhiBulkMetricsResponse instance using the specified properties. + * Creates a new PAMController instance using the specified properties. * @param [properties] Properties to set - * @returns NhiBulkMetricsResponse instance + * @returns PAMController instance */ - public static create(properties?: PAM.INhiBulkMetricsResponse): PAM.NhiBulkMetricsResponse; + public static create(properties?: PAM.IPAMController): PAM.PAMController; /** - * Encodes the specified NhiBulkMetricsResponse message. Does not implicitly {@link PAM.NhiBulkMetricsResponse.verify|verify} messages. - * @param message NhiBulkMetricsResponse message or plain object to encode + * Encodes the specified PAMController message. Does not implicitly {@link PAM.PAMController.verify|verify} messages. + * @param message PAMController message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.INhiBulkMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMController, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NhiBulkMetricsResponse message from the specified reader or buffer. + * Decodes a PAMController message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NhiBulkMetricsResponse + * @returns PAMController * @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): PAM.NhiBulkMetricsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMController; /** - * Creates a NhiBulkMetricsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMController message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NhiBulkMetricsResponse + * @returns PAMController */ - public static fromObject(object: { [k: string]: any }): PAM.NhiBulkMetricsResponse; + public static fromObject(object: { [k: string]: any }): PAM.PAMController; /** - * Creates a plain object from a NhiBulkMetricsResponse message. Also converts values to other types if specified. - * @param message NhiBulkMetricsResponse + * Creates a plain object from a PAMController message. Also converts values to other types if specified. + * @param message PAMController * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.NhiBulkMetricsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMController, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NhiBulkMetricsResponse to JSON. + * Converts this PAMController to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NhiBulkMetricsResponse + * Gets the default type url for PAMController * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** NhiCategory enum. */ - enum NhiCategory { - NHI_CATEGORY_UNKNOWN = 0, - PAM_USER = 1, - PAM_RESOURCE = 2, - GATEWAY = 3, - DEVICE = 4 - } - - /** Properties of a NhiUidEntry. */ - interface INhiUidEntry { - - /** NhiUidEntry uid */ - uid?: (string|null); - - /** NhiUidEntry category */ - category?: (PAM.NhiCategory|null); + /** Properties of a PAMSetMaxInstanceCountRequest. */ + interface IPAMSetMaxInstanceCountRequest { - /** NhiUidEntry ksmNhi */ - ksmNhi?: (boolean|null); + /** PAMSetMaxInstanceCountRequest controllerUid */ + controllerUid?: (Uint8Array|null); - /** NhiUidEntry appUid */ - appUid?: (string|null); + /** PAMSetMaxInstanceCountRequest maxInstanceCount */ + maxInstanceCount?: (number|null); } - /** Represents a NhiUidEntry. */ - class NhiUidEntry implements INhiUidEntry { + /** Represents a PAMSetMaxInstanceCountRequest. */ + class PAMSetMaxInstanceCountRequest implements IPAMSetMaxInstanceCountRequest { /** - * Constructs a new NhiUidEntry. + * Constructs a new PAMSetMaxInstanceCountRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.INhiUidEntry); - - /** NhiUidEntry uid. */ - public uid: string; - - /** NhiUidEntry category. */ - public category: PAM.NhiCategory; + constructor(properties?: PAM.IPAMSetMaxInstanceCountRequest); - /** NhiUidEntry ksmNhi. */ - public ksmNhi: boolean; + /** PAMSetMaxInstanceCountRequest controllerUid. */ + public controllerUid: Uint8Array; - /** NhiUidEntry appUid. */ - public appUid: string; + /** PAMSetMaxInstanceCountRequest maxInstanceCount. */ + public maxInstanceCount: number; /** - * Creates a new NhiUidEntry instance using the specified properties. + * Creates a new PAMSetMaxInstanceCountRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NhiUidEntry instance + * @returns PAMSetMaxInstanceCountRequest instance */ - public static create(properties?: PAM.INhiUidEntry): PAM.NhiUidEntry; + public static create(properties?: PAM.IPAMSetMaxInstanceCountRequest): PAM.PAMSetMaxInstanceCountRequest; /** - * Encodes the specified NhiUidEntry message. Does not implicitly {@link PAM.NhiUidEntry.verify|verify} messages. - * @param message NhiUidEntry message or plain object to encode + * Encodes the specified PAMSetMaxInstanceCountRequest message. Does not implicitly {@link PAM.PAMSetMaxInstanceCountRequest.verify|verify} messages. + * @param message PAMSetMaxInstanceCountRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.INhiUidEntry, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMSetMaxInstanceCountRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NhiUidEntry message from the specified reader or buffer. + * Decodes a PAMSetMaxInstanceCountRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NhiUidEntry + * @returns PAMSetMaxInstanceCountRequest * @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): PAM.NhiUidEntry; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMSetMaxInstanceCountRequest; /** - * Creates a NhiUidEntry message from a plain object. Also converts values to their respective internal types. + * Creates a PAMSetMaxInstanceCountRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NhiUidEntry + * @returns PAMSetMaxInstanceCountRequest */ - public static fromObject(object: { [k: string]: any }): PAM.NhiUidEntry; + public static fromObject(object: { [k: string]: any }): PAM.PAMSetMaxInstanceCountRequest; /** - * Creates a plain object from a NhiUidEntry message. Also converts values to other types if specified. - * @param message NhiUidEntry + * Creates a plain object from a PAMSetMaxInstanceCountRequest message. Also converts values to other types if specified. + * @param message PAMSetMaxInstanceCountRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.NhiUidEntry, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMSetMaxInstanceCountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NhiUidEntry to JSON. + * Converts this PAMSetMaxInstanceCountRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NhiUidEntry + * Gets the default type url for PAMSetMaxInstanceCountRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetNhiUidsRequest. */ - interface IGetNhiUidsRequest { + /** ControllerMessageType enum. */ + enum ControllerMessageType { + CMT_GENERAL = 0, + CMT_ROTATE = 1, + CMT_DISCOVERY = 2, + CMT_CONNECT = 3, + CMT_ANALYZE_RECORDING = 4, + CMT_WORKFLOW_ACCESS_ELEVATION = 5, + CMT_USS = 6, + CMT_INFO = 7, + CMT_AUTOMATION = 8 + } - /** GetNhiUidsRequest startTime */ - startTime?: (number|null); + /** Properties of a ControllerResponse. */ + interface IControllerResponse { - /** GetNhiUidsRequest endTime */ - endTime?: (number|null); + /** ControllerResponse payload */ + payload?: (string|null); } - /** Represents a GetNhiUidsRequest. */ - class GetNhiUidsRequest implements IGetNhiUidsRequest { + /** Represents a ControllerResponse. */ + class ControllerResponse implements IControllerResponse { /** - * Constructs a new GetNhiUidsRequest. + * Constructs a new ControllerResponse. * @param [properties] Properties to set */ - constructor(properties?: PAM.IGetNhiUidsRequest); - - /** GetNhiUidsRequest startTime. */ - public startTime: number; + constructor(properties?: PAM.IControllerResponse); - /** GetNhiUidsRequest endTime. */ - public endTime: number; + /** ControllerResponse payload. */ + public payload: string; /** - * Creates a new GetNhiUidsRequest instance using the specified properties. + * Creates a new ControllerResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetNhiUidsRequest instance + * @returns ControllerResponse instance */ - public static create(properties?: PAM.IGetNhiUidsRequest): PAM.GetNhiUidsRequest; + public static create(properties?: PAM.IControllerResponse): PAM.ControllerResponse; /** - * Encodes the specified GetNhiUidsRequest message. Does not implicitly {@link PAM.GetNhiUidsRequest.verify|verify} messages. - * @param message GetNhiUidsRequest message or plain object to encode + * Encodes the specified ControllerResponse message. Does not implicitly {@link PAM.ControllerResponse.verify|verify} messages. + * @param message ControllerResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IGetNhiUidsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IControllerResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetNhiUidsRequest message from the specified reader or buffer. + * Decodes a ControllerResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetNhiUidsRequest + * @returns ControllerResponse * @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): PAM.GetNhiUidsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.ControllerResponse; /** - * Creates a GetNhiUidsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ControllerResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetNhiUidsRequest + * @returns ControllerResponse */ - public static fromObject(object: { [k: string]: any }): PAM.GetNhiUidsRequest; + public static fromObject(object: { [k: string]: any }): PAM.ControllerResponse; /** - * Creates a plain object from a GetNhiUidsRequest message. Also converts values to other types if specified. - * @param message GetNhiUidsRequest + * Creates a plain object from a ControllerResponse message. Also converts values to other types if specified. + * @param message ControllerResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.GetNhiUidsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.ControllerResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetNhiUidsRequest to JSON. + * Converts this ControllerResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetNhiUidsRequest + * Gets the default type url for ControllerResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetNhiUidsResponse. */ - interface IGetNhiUidsResponse { + /** Properties of a PAMConfigurationController. */ + interface IPAMConfigurationController { - /** GetNhiUidsResponse uids */ - uids?: (PAM.INhiUidEntry[]|null); + /** PAMConfigurationController configurationUid */ + configurationUid?: (Uint8Array|null); + + /** PAMConfigurationController controllerUid */ + controllerUid?: (Uint8Array|null); } - /** Represents a GetNhiUidsResponse. */ - class GetNhiUidsResponse implements IGetNhiUidsResponse { + /** Represents a PAMConfigurationController. */ + class PAMConfigurationController implements IPAMConfigurationController { /** - * Constructs a new GetNhiUidsResponse. + * Constructs a new PAMConfigurationController. * @param [properties] Properties to set */ - constructor(properties?: PAM.IGetNhiUidsResponse); + constructor(properties?: PAM.IPAMConfigurationController); - /** GetNhiUidsResponse uids. */ - public uids: PAM.INhiUidEntry[]; + /** PAMConfigurationController configurationUid. */ + public configurationUid: Uint8Array; + + /** PAMConfigurationController controllerUid. */ + public controllerUid: Uint8Array; /** - * Creates a new GetNhiUidsResponse instance using the specified properties. + * Creates a new PAMConfigurationController instance using the specified properties. * @param [properties] Properties to set - * @returns GetNhiUidsResponse instance + * @returns PAMConfigurationController instance */ - public static create(properties?: PAM.IGetNhiUidsResponse): PAM.GetNhiUidsResponse; + public static create(properties?: PAM.IPAMConfigurationController): PAM.PAMConfigurationController; /** - * Encodes the specified GetNhiUidsResponse message. Does not implicitly {@link PAM.GetNhiUidsResponse.verify|verify} messages. - * @param message GetNhiUidsResponse message or plain object to encode + * Encodes the specified PAMConfigurationController message. Does not implicitly {@link PAM.PAMConfigurationController.verify|verify} messages. + * @param message PAMConfigurationController message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IGetNhiUidsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMConfigurationController, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetNhiUidsResponse message from the specified reader or buffer. + * Decodes a PAMConfigurationController message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetNhiUidsResponse + * @returns PAMConfigurationController * @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): PAM.GetNhiUidsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMConfigurationController; /** - * Creates a GetNhiUidsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMConfigurationController message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetNhiUidsResponse + * @returns PAMConfigurationController */ - public static fromObject(object: { [k: string]: any }): PAM.GetNhiUidsResponse; + public static fromObject(object: { [k: string]: any }): PAM.PAMConfigurationController; /** - * Creates a plain object from a GetNhiUidsResponse message. Also converts values to other types if specified. - * @param message GetNhiUidsResponse + * Creates a plain object from a PAMConfigurationController message. Also converts values to other types if specified. + * @param message PAMConfigurationController * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.GetNhiUidsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMConfigurationController, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetNhiUidsResponse to JSON. + * Converts this PAMConfigurationController to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetNhiUidsResponse + * Gets the default type url for PAMConfigurationController * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SetNhiKsmEffectiveDateRequest. */ - interface ISetNhiKsmEffectiveDateRequest { + /** Properties of a ConfigurationAddRequest. */ + interface IConfigurationAddRequest { - /** SetNhiKsmEffectiveDateRequest effectiveDate */ - effectiveDate?: (number|null); + /** ConfigurationAddRequest configurationUid */ + configurationUid?: (Uint8Array|null); + + /** ConfigurationAddRequest recordKey */ + recordKey?: (Uint8Array|null); + + /** ConfigurationAddRequest data */ + data?: (Uint8Array|null); + + /** ConfigurationAddRequest recordLinks */ + recordLinks?: (Records.IRecordLink[]|null); + + /** ConfigurationAddRequest audit */ + audit?: (Records.IRecordAudit|null); } - /** Represents a SetNhiKsmEffectiveDateRequest. */ - class SetNhiKsmEffectiveDateRequest implements ISetNhiKsmEffectiveDateRequest { + /** Represents a ConfigurationAddRequest. */ + class ConfigurationAddRequest implements IConfigurationAddRequest { /** - * Constructs a new SetNhiKsmEffectiveDateRequest. + * Constructs a new ConfigurationAddRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.ISetNhiKsmEffectiveDateRequest); + constructor(properties?: PAM.IConfigurationAddRequest); - /** SetNhiKsmEffectiveDateRequest effectiveDate. */ - public effectiveDate: number; + /** ConfigurationAddRequest configurationUid. */ + public configurationUid: Uint8Array; + + /** ConfigurationAddRequest recordKey. */ + public recordKey: Uint8Array; + + /** ConfigurationAddRequest data. */ + public data: Uint8Array; + + /** ConfigurationAddRequest recordLinks. */ + public recordLinks: Records.IRecordLink[]; + + /** ConfigurationAddRequest audit. */ + public audit?: (Records.IRecordAudit|null); /** - * Creates a new SetNhiKsmEffectiveDateRequest instance using the specified properties. + * Creates a new ConfigurationAddRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SetNhiKsmEffectiveDateRequest instance + * @returns ConfigurationAddRequest instance */ - public static create(properties?: PAM.ISetNhiKsmEffectiveDateRequest): PAM.SetNhiKsmEffectiveDateRequest; + public static create(properties?: PAM.IConfigurationAddRequest): PAM.ConfigurationAddRequest; /** - * Encodes the specified SetNhiKsmEffectiveDateRequest message. Does not implicitly {@link PAM.SetNhiKsmEffectiveDateRequest.verify|verify} messages. - * @param message SetNhiKsmEffectiveDateRequest message or plain object to encode + * Encodes the specified ConfigurationAddRequest message. Does not implicitly {@link PAM.ConfigurationAddRequest.verify|verify} messages. + * @param message ConfigurationAddRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.ISetNhiKsmEffectiveDateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IConfigurationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetNhiKsmEffectiveDateRequest message from the specified reader or buffer. + * Decodes a ConfigurationAddRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SetNhiKsmEffectiveDateRequest + * @returns ConfigurationAddRequest * @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): PAM.SetNhiKsmEffectiveDateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.ConfigurationAddRequest; /** - * Creates a SetNhiKsmEffectiveDateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ConfigurationAddRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetNhiKsmEffectiveDateRequest + * @returns ConfigurationAddRequest */ - public static fromObject(object: { [k: string]: any }): PAM.SetNhiKsmEffectiveDateRequest; + public static fromObject(object: { [k: string]: any }): PAM.ConfigurationAddRequest; /** - * Creates a plain object from a SetNhiKsmEffectiveDateRequest message. Also converts values to other types if specified. - * @param message SetNhiKsmEffectiveDateRequest + * Creates a plain object from a ConfigurationAddRequest message. Also converts values to other types if specified. + * @param message ConfigurationAddRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.SetNhiKsmEffectiveDateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.ConfigurationAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetNhiKsmEffectiveDateRequest to JSON. + * Converts this ConfigurationAddRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SetNhiKsmEffectiveDateRequest + * Gets the default type url for ConfigurationAddRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetNhiKsmEffectiveDateResponse. */ - interface IGetNhiKsmEffectiveDateResponse { + /** Properties of a RelayAccessCreds. */ + interface IRelayAccessCreds { - /** GetNhiKsmEffectiveDateResponse effectiveDate */ - effectiveDate?: (number|null); + /** RelayAccessCreds username */ + username?: (string|null); - /** GetNhiKsmEffectiveDateResponse defaultDate */ - defaultDate?: (number|null); + /** RelayAccessCreds password */ + password?: (string|null); + + /** RelayAccessCreds serverTime */ + serverTime?: (number|null); } - /** Represents a GetNhiKsmEffectiveDateResponse. */ - class GetNhiKsmEffectiveDateResponse implements IGetNhiKsmEffectiveDateResponse { + /** Represents a RelayAccessCreds. */ + class RelayAccessCreds implements IRelayAccessCreds { /** - * Constructs a new GetNhiKsmEffectiveDateResponse. + * Constructs a new RelayAccessCreds. * @param [properties] Properties to set */ - constructor(properties?: PAM.IGetNhiKsmEffectiveDateResponse); + constructor(properties?: PAM.IRelayAccessCreds); - /** GetNhiKsmEffectiveDateResponse effectiveDate. */ - public effectiveDate: number; + /** RelayAccessCreds username. */ + public username: string; - /** GetNhiKsmEffectiveDateResponse defaultDate. */ - public defaultDate: number; + /** RelayAccessCreds password. */ + public password: string; + + /** RelayAccessCreds serverTime. */ + public serverTime: number; /** - * Creates a new GetNhiKsmEffectiveDateResponse instance using the specified properties. + * Creates a new RelayAccessCreds instance using the specified properties. * @param [properties] Properties to set - * @returns GetNhiKsmEffectiveDateResponse instance + * @returns RelayAccessCreds instance */ - public static create(properties?: PAM.IGetNhiKsmEffectiveDateResponse): PAM.GetNhiKsmEffectiveDateResponse; + public static create(properties?: PAM.IRelayAccessCreds): PAM.RelayAccessCreds; /** - * Encodes the specified GetNhiKsmEffectiveDateResponse message. Does not implicitly {@link PAM.GetNhiKsmEffectiveDateResponse.verify|verify} messages. - * @param message GetNhiKsmEffectiveDateResponse message or plain object to encode + * Encodes the specified RelayAccessCreds message. Does not implicitly {@link PAM.RelayAccessCreds.verify|verify} messages. + * @param message RelayAccessCreds message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IGetNhiKsmEffectiveDateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IRelayAccessCreds, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetNhiKsmEffectiveDateResponse message from the specified reader or buffer. + * Decodes a RelayAccessCreds message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetNhiKsmEffectiveDateResponse + * @returns RelayAccessCreds * @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): PAM.GetNhiKsmEffectiveDateResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.RelayAccessCreds; /** - * Creates a GetNhiKsmEffectiveDateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RelayAccessCreds message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetNhiKsmEffectiveDateResponse + * @returns RelayAccessCreds */ - public static fromObject(object: { [k: string]: any }): PAM.GetNhiKsmEffectiveDateResponse; + public static fromObject(object: { [k: string]: any }): PAM.RelayAccessCreds; /** - * Creates a plain object from a GetNhiKsmEffectiveDateResponse message. Also converts values to other types if specified. - * @param message GetNhiKsmEffectiveDateResponse + * Creates a plain object from a RelayAccessCreds message. Also converts values to other types if specified. + * @param message RelayAccessCreds * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.GetNhiKsmEffectiveDateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.RelayAccessCreds, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetNhiKsmEffectiveDateResponse to JSON. + * Converts this RelayAccessCreds to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetNhiKsmEffectiveDateResponse + * Gets the default type url for RelayAccessCreds * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMUniversalSyncPreCheckRequest. */ - interface IPAMUniversalSyncPreCheckRequest { + /** PAMRecordingType enum. */ + enum PAMRecordingType { + PRT_SESSION = 0, + PRT_TYPESCRIPT = 1, + PRT_TIME = 2, + PRT_SUMMARY = 3 + } - /** PAMUniversalSyncPreCheckRequest networkUid */ - networkUid?: (Uint8Array|null); + /** PAMRecordingRiskLevel enum. */ + enum PAMRecordingRiskLevel { + PRR_UNSPECIFIED = 0, + PRR_LOW = 1, + PRR_MEDIUM = 2, + PRR_HIGH = 3, + PRR_CRITICAL = 4 + } - /** PAMUniversalSyncPreCheckRequest folderUids */ - folderUids?: (Uint8Array[]|null); + /** Properties of a PAMRecordingsRequest. */ + interface IPAMRecordingsRequest { + + /** PAMRecordingsRequest recordUid */ + recordUid?: (Uint8Array|null); + + /** PAMRecordingsRequest maxCount */ + maxCount?: (number|null); + + /** PAMRecordingsRequest rangeStart */ + rangeStart?: (number|null); + + /** PAMRecordingsRequest rangeEnd */ + rangeEnd?: (number|null); + + /** PAMRecordingsRequest types */ + types?: (PAM.PAMRecordingType[]|null); + + /** PAMRecordingsRequest risks */ + risks?: (PAM.PAMRecordingRiskLevel[]|null); + + /** PAMRecordingsRequest protocols */ + protocols?: (string[]|null); + + /** PAMRecordingsRequest closeReasons */ + closeReasons?: (number[]|null); } - /** Represents a PAMUniversalSyncPreCheckRequest. */ - class PAMUniversalSyncPreCheckRequest implements IPAMUniversalSyncPreCheckRequest { + /** Represents a PAMRecordingsRequest. */ + class PAMRecordingsRequest implements IPAMRecordingsRequest { /** - * Constructs a new PAMUniversalSyncPreCheckRequest. + * Constructs a new PAMRecordingsRequest. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMUniversalSyncPreCheckRequest); + constructor(properties?: PAM.IPAMRecordingsRequest); - /** PAMUniversalSyncPreCheckRequest networkUid. */ - public networkUid: Uint8Array; + /** PAMRecordingsRequest recordUid. */ + public recordUid: Uint8Array; - /** PAMUniversalSyncPreCheckRequest folderUids. */ - public folderUids: Uint8Array[]; + /** PAMRecordingsRequest maxCount. */ + public maxCount: number; + + /** PAMRecordingsRequest rangeStart. */ + public rangeStart?: (number|null); + + /** PAMRecordingsRequest rangeEnd. */ + public rangeEnd?: (number|null); + + /** PAMRecordingsRequest types. */ + public types: PAM.PAMRecordingType[]; + + /** PAMRecordingsRequest risks. */ + public risks: PAM.PAMRecordingRiskLevel[]; + + /** PAMRecordingsRequest protocols. */ + public protocols: string[]; + + /** PAMRecordingsRequest closeReasons. */ + public closeReasons: number[]; /** - * Creates a new PAMUniversalSyncPreCheckRequest instance using the specified properties. + * Creates a new PAMRecordingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PAMUniversalSyncPreCheckRequest instance + * @returns PAMRecordingsRequest instance */ - public static create(properties?: PAM.IPAMUniversalSyncPreCheckRequest): PAM.PAMUniversalSyncPreCheckRequest; + public static create(properties?: PAM.IPAMRecordingsRequest): PAM.PAMRecordingsRequest; /** - * Encodes the specified PAMUniversalSyncPreCheckRequest message. Does not implicitly {@link PAM.PAMUniversalSyncPreCheckRequest.verify|verify} messages. - * @param message PAMUniversalSyncPreCheckRequest message or plain object to encode + * Encodes the specified PAMRecordingsRequest message. Does not implicitly {@link PAM.PAMRecordingsRequest.verify|verify} messages. + * @param message PAMRecordingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMUniversalSyncPreCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMRecordingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMUniversalSyncPreCheckRequest message from the specified reader or buffer. + * Decodes a PAMRecordingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMUniversalSyncPreCheckRequest + * @returns PAMRecordingsRequest * @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): PAM.PAMUniversalSyncPreCheckRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRecordingsRequest; /** - * Creates a PAMUniversalSyncPreCheckRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRecordingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMUniversalSyncPreCheckRequest + * @returns PAMRecordingsRequest */ - public static fromObject(object: { [k: string]: any }): PAM.PAMUniversalSyncPreCheckRequest; + public static fromObject(object: { [k: string]: any }): PAM.PAMRecordingsRequest; /** - * Creates a plain object from a PAMUniversalSyncPreCheckRequest message. Also converts values to other types if specified. - * @param message PAMUniversalSyncPreCheckRequest + * Creates a plain object from a PAMRecordingsRequest message. Also converts values to other types if specified. + * @param message PAMRecordingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMUniversalSyncPreCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMRecordingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMUniversalSyncPreCheckRequest to JSON. + * Converts this PAMRecordingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMUniversalSyncPreCheckRequest + * Gets the default type url for PAMRecordingsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMUniversalSyncPreCheckResult. */ - interface IPAMUniversalSyncPreCheckResult { + /** Properties of a PAMRecording. */ + interface IPAMRecording { - /** PAMUniversalSyncPreCheckResult folderUid */ - folderUid?: (Uint8Array|null); + /** PAMRecording connectionUid */ + connectionUid?: (Uint8Array|null); - /** PAMUniversalSyncPreCheckResult isUsed */ - isUsed?: (boolean|null); + /** PAMRecording recordingType */ + recordingType?: (PAM.PAMRecordingType|null); + + /** PAMRecording recordUid */ + recordUid?: (Uint8Array|null); + + /** PAMRecording userName */ + userName?: (string|null); + + /** PAMRecording startedOn */ + startedOn?: (number|null); + + /** PAMRecording length */ + length?: (number|null); + + /** PAMRecording fileSize */ + fileSize?: (number|null); + + /** PAMRecording createdOn */ + createdOn?: (number|null); + + /** PAMRecording protocol */ + protocol?: (string|null); + + /** PAMRecording closeReason */ + closeReason?: (number|null); + + /** PAMRecording recordingDuration */ + recordingDuration?: (number|null); + + /** PAMRecording aiOverallRiskLevel */ + aiOverallRiskLevel?: (PAM.PAMRecordingRiskLevel|null); + + /** PAMRecording aiOverallSummary */ + aiOverallSummary?: (Uint8Array|null); } - /** Represents a PAMUniversalSyncPreCheckResult. */ - class PAMUniversalSyncPreCheckResult implements IPAMUniversalSyncPreCheckResult { + /** Represents a PAMRecording. */ + class PAMRecording implements IPAMRecording { /** - * Constructs a new PAMUniversalSyncPreCheckResult. + * Constructs a new PAMRecording. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMUniversalSyncPreCheckResult); + constructor(properties?: PAM.IPAMRecording); - /** PAMUniversalSyncPreCheckResult folderUid. */ - public folderUid: Uint8Array; + /** PAMRecording connectionUid. */ + public connectionUid: Uint8Array; + + /** PAMRecording recordingType. */ + public recordingType: PAM.PAMRecordingType; + + /** PAMRecording recordUid. */ + public recordUid: Uint8Array; + + /** PAMRecording userName. */ + public userName: string; + + /** PAMRecording startedOn. */ + public startedOn: number; + + /** PAMRecording length. */ + public length: number; + + /** PAMRecording fileSize. */ + public fileSize: number; + + /** PAMRecording createdOn. */ + public createdOn: number; + + /** PAMRecording protocol. */ + public protocol: string; + + /** PAMRecording closeReason. */ + public closeReason: number; + + /** PAMRecording recordingDuration. */ + public recordingDuration: number; + + /** PAMRecording aiOverallRiskLevel. */ + public aiOverallRiskLevel: PAM.PAMRecordingRiskLevel; - /** PAMUniversalSyncPreCheckResult isUsed. */ - public isUsed: boolean; + /** PAMRecording aiOverallSummary. */ + public aiOverallSummary: Uint8Array; /** - * Creates a new PAMUniversalSyncPreCheckResult instance using the specified properties. + * Creates a new PAMRecording instance using the specified properties. * @param [properties] Properties to set - * @returns PAMUniversalSyncPreCheckResult instance + * @returns PAMRecording instance */ - public static create(properties?: PAM.IPAMUniversalSyncPreCheckResult): PAM.PAMUniversalSyncPreCheckResult; + public static create(properties?: PAM.IPAMRecording): PAM.PAMRecording; /** - * Encodes the specified PAMUniversalSyncPreCheckResult message. Does not implicitly {@link PAM.PAMUniversalSyncPreCheckResult.verify|verify} messages. - * @param message PAMUniversalSyncPreCheckResult message or plain object to encode + * Encodes the specified PAMRecording message. Does not implicitly {@link PAM.PAMRecording.verify|verify} messages. + * @param message PAMRecording message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMUniversalSyncPreCheckResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMRecording, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMUniversalSyncPreCheckResult message from the specified reader or buffer. + * Decodes a PAMRecording message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMUniversalSyncPreCheckResult + * @returns PAMRecording * @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): PAM.PAMUniversalSyncPreCheckResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRecording; /** - * Creates a PAMUniversalSyncPreCheckResult message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRecording message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMUniversalSyncPreCheckResult + * @returns PAMRecording */ - public static fromObject(object: { [k: string]: any }): PAM.PAMUniversalSyncPreCheckResult; + public static fromObject(object: { [k: string]: any }): PAM.PAMRecording; /** - * Creates a plain object from a PAMUniversalSyncPreCheckResult message. Also converts values to other types if specified. - * @param message PAMUniversalSyncPreCheckResult + * Creates a plain object from a PAMRecording message. Also converts values to other types if specified. + * @param message PAMRecording * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMUniversalSyncPreCheckResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMRecording, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMUniversalSyncPreCheckResult to JSON. + * Converts this PAMRecording to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMUniversalSyncPreCheckResult + * Gets the default type url for PAMRecording * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PAMUniversalSyncPreCheckResponse. */ - interface IPAMUniversalSyncPreCheckResponse { + /** Properties of a PAMRecordingsResponse. */ + interface IPAMRecordingsResponse { - /** PAMUniversalSyncPreCheckResponse results */ - results?: (PAM.IPAMUniversalSyncPreCheckResult[]|null); + /** PAMRecordingsResponse recordings */ + recordings?: (PAM.IPAMRecording[]|null); + + /** PAMRecordingsResponse hasMore */ + hasMore?: (boolean|null); } - /** Represents a PAMUniversalSyncPreCheckResponse. */ - class PAMUniversalSyncPreCheckResponse implements IPAMUniversalSyncPreCheckResponse { + /** Represents a PAMRecordingsResponse. */ + class PAMRecordingsResponse implements IPAMRecordingsResponse { /** - * Constructs a new PAMUniversalSyncPreCheckResponse. + * Constructs a new PAMRecordingsResponse. * @param [properties] Properties to set */ - constructor(properties?: PAM.IPAMUniversalSyncPreCheckResponse); + constructor(properties?: PAM.IPAMRecordingsResponse); - /** PAMUniversalSyncPreCheckResponse results. */ - public results: PAM.IPAMUniversalSyncPreCheckResult[]; + /** PAMRecordingsResponse recordings. */ + public recordings: PAM.IPAMRecording[]; + + /** PAMRecordingsResponse hasMore. */ + public hasMore: boolean; /** - * Creates a new PAMUniversalSyncPreCheckResponse instance using the specified properties. + * Creates a new PAMRecordingsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PAMUniversalSyncPreCheckResponse instance + * @returns PAMRecordingsResponse instance */ - public static create(properties?: PAM.IPAMUniversalSyncPreCheckResponse): PAM.PAMUniversalSyncPreCheckResponse; + public static create(properties?: PAM.IPAMRecordingsResponse): PAM.PAMRecordingsResponse; /** - * Encodes the specified PAMUniversalSyncPreCheckResponse message. Does not implicitly {@link PAM.PAMUniversalSyncPreCheckResponse.verify|verify} messages. - * @param message PAMUniversalSyncPreCheckResponse message or plain object to encode + * Encodes the specified PAMRecordingsResponse message. Does not implicitly {@link PAM.PAMRecordingsResponse.verify|verify} messages. + * @param message PAMRecordingsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: PAM.IPAMUniversalSyncPreCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: PAM.IPAMRecordingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PAMUniversalSyncPreCheckResponse message from the specified reader or buffer. + * Decodes a PAMRecordingsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PAMUniversalSyncPreCheckResponse + * @returns PAMRecordingsResponse * @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): PAM.PAMUniversalSyncPreCheckResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PAM.PAMRecordingsResponse; /** - * Creates a PAMUniversalSyncPreCheckResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PAMRecordingsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PAMUniversalSyncPreCheckResponse + * @returns PAMRecordingsResponse */ - public static fromObject(object: { [k: string]: any }): PAM.PAMUniversalSyncPreCheckResponse; + public static fromObject(object: { [k: string]: any }): PAM.PAMRecordingsResponse; /** - * Creates a plain object from a PAMUniversalSyncPreCheckResponse message. Also converts values to other types if specified. - * @param message PAMUniversalSyncPreCheckResponse + * Creates a plain object from a PAMRecordingsResponse message. Also converts values to other types if specified. + * @param message PAMRecordingsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: PAM.PAMUniversalSyncPreCheckResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: PAM.PAMRecordingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PAMUniversalSyncPreCheckResponse to JSON. + * Converts this PAMRecordingsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PAMUniversalSyncPreCheckResponse + * Gets the default type url for PAMRecordingsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } -} - -/** Namespace folder. */ -export namespace folder { - - /** Namespace v3. */ - namespace v3 { - - /** Namespace remove. */ - namespace remove { - - /** Represents a RemoveService */ - class RemoveService extends $protobuf.rpc.Service { - - /** - * Constructs a new RemoveService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new RemoveService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RemoveService; - - /** - * Preview or execute record removal from folders. - * PREVIEW: Computes impact metrics and returns a signed confirmation token. - * CONFIRM: Validates token and executes the removal operation. - * @param request RemoveRecordRequest message or plain object - * @param callback Node-style callback called with the error, if any, and RemoveResponse - */ - public removeRecord(request: folder.v3.remove.IRemoveRecordRequest, callback: folder.v3.remove.RemoveService.RemoveRecordCallback): void; - - /** - * Preview or execute record removal from folders. - * PREVIEW: Computes impact metrics and returns a signed confirmation token. - * CONFIRM: Validates token and executes the removal operation. - * @param request RemoveRecordRequest message or plain object - * @returns Promise - */ - public removeRecord(request: folder.v3.remove.IRemoveRecordRequest): Promise; - - /** - * Preview or execute folder deletion. - * PREVIEW: Computes impact metrics and returns a signed confirmation token. - * CONFIRM: Validates token and executes the deletion operation. - * @param request RemoveFolderRequest message or plain object - * @param callback Node-style callback called with the error, if any, and RemoveResponse - */ - public removeFolder(request: folder.v3.remove.IRemoveFolderRequest, callback: folder.v3.remove.RemoveService.RemoveFolderCallback): void; - - /** - * Preview or execute folder deletion. - * PREVIEW: Computes impact metrics and returns a signed confirmation token. - * CONFIRM: Validates token and executes the deletion operation. - * @param request RemoveFolderRequest message or plain object - * @returns Promise - */ - public removeFolder(request: folder.v3.remove.IRemoveFolderRequest): Promise; - - /** - * Restore records and/or folders from the caller's trashcan into a target folder (KA-8144). - * Each input item is validated independently; failures are reported per-item via - * TrashcanRestoreResponse.results — a failed item does not poison the batch. - * @param request TrashcanRestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TrashcanRestoreResponse - */ - public trashcanRestore(request: folder.v3.remove.ITrashcanRestoreRequest, callback: folder.v3.remove.RemoveService.TrashcanRestoreCallback): void; - - /** - * Restore records and/or folders from the caller's trashcan into a target folder (KA-8144). - * Each input item is validated independently; failures are reported per-item via - * TrashcanRestoreResponse.results — a failed item does not poison the batch. - * @param request TrashcanRestoreRequest message or plain object - * @returns Promise - */ - public trashcanRestore(request: folder.v3.remove.ITrashcanRestoreRequest): Promise; - } - - namespace RemoveService { - - /** - * Callback as used by {@link folder.v3.remove.RemoveService#removeRecord}. - * @param error Error, if any - * @param [response] RemoveResponse - */ - type RemoveRecordCallback = (error: (Error|null), response?: folder.v3.remove.RemoveResponse) => void; - - /** - * Callback as used by {@link folder.v3.remove.RemoveService#removeFolder}. - * @param error Error, if any - * @param [response] RemoveResponse - */ - type RemoveFolderCallback = (error: (Error|null), response?: folder.v3.remove.RemoveResponse) => void; - - /** - * Callback as used by {@link folder.v3.remove.RemoveService#trashcanRestore}. - * @param error Error, if any - * @param [response] TrashcanRestoreResponse - */ - type TrashcanRestoreCallback = (error: (Error|null), response?: folder.v3.remove.TrashcanRestoreResponse) => void; - } - - /** RemoveAction enum. */ - enum RemoveAction { - REMOVE_ACTION_PREVIEW = 0, - REMOVE_ACTION_CONFIRM = 1 - } - - /** RecordOperationType enum. */ - enum RecordOperationType { - RECORD_OPERATION_UNKNOWN = 0, - UNLINK_FROM_FOLDER = 1, - MOVE_TO_FOLDER_TRASH = 2, - MOVE_TO_OWNER_TRASH = 3 - } - - /** FolderOperationType enum. */ - enum FolderOperationType { - FOLDER_OPERATION_UNKNOWN = 0, - FOLDER_MOVE_TO_FOLDER_TRASH = 1, - FOLDER_MOVE_TO_OWNER_TRASH = 2, - FOLDER_DELETE_PERMANENT = 3 - } - - /** RemoveErrorCode enum. */ - enum RemoveErrorCode { - REMOVE_ERROR_UNKNOWN = 0, - REMOVE_ERROR_NOT_FOUND = 1, - REMOVE_ERROR_ACCESS_DENIED = 2, - REMOVE_ERROR_TRASHCAN_FOLDER = 3, - REMOVE_ERROR_ROOT_FOLDER = 4, - REMOVE_ERROR_DESCENDANT_DENIED = 5 - } - - /** RemoveStatus enum. */ - enum RemoveStatus { - REMOVE_STATUS_UNKNOWN = 0, - REMOVE_STATUS_SUCCESS = 1, - REMOVE_STATUS_STALE_PREVIEW = 2, - REMOVE_STATUS_TOKEN_EXPIRED = 3, - REMOVE_STATUS_TOKEN_INVALID = 4, - REMOVE_STATUS_ACCESS_DENIED = 5, - REMOVE_STATUS_VALIDATION_ERROR = 6 - } - /** Properties of a RecordRemoval. */ - interface IRecordRemoval { + /** Properties of a PAMData. */ + interface IPAMData { - /** RecordRemoval folderUid */ - folderUid?: (Uint8Array|null); + /** PAMData vertex */ + vertex?: (Uint8Array|null); - /** RecordRemoval recordUid */ - recordUid?: (Uint8Array|null); + /** PAMData content */ + content?: (Uint8Array|null); + } - /** RecordRemoval operationType */ - operationType?: (folder.v3.remove.RecordOperationType|null); - } + /** Represents a PAMData. */ + class PAMData implements IPAMData { - /** Represents a RecordRemoval. */ - class RecordRemoval implements IRecordRemoval { + /** + * Constructs a new PAMData. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.IPAMData); - /** - * Constructs a new RecordRemoval. - * @param [properties] Properties to set - */ - constructor(properties?: folder.v3.remove.IRecordRemoval); + /** PAMData vertex. */ + public vertex: Uint8Array; - /** RecordRemoval folderUid. */ - public folderUid: Uint8Array; + /** PAMData content. */ + public content: Uint8Array; - /** RecordRemoval recordUid. */ - public recordUid: Uint8Array; + /** + * Creates a new PAMData instance using the specified properties. + * @param [properties] Properties to set + * @returns PAMData instance + */ + public static create(properties?: PAM.IPAMData): PAM.PAMData; - /** RecordRemoval operationType. */ - public operationType: folder.v3.remove.RecordOperationType; + /** + * Encodes the specified PAMData message. Does not implicitly {@link PAM.PAMData.verify|verify} messages. + * @param message PAMData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.IPAMData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new RecordRemoval instance using the specified properties. - * @param [properties] Properties to set - * @returns RecordRemoval instance - */ - public static create(properties?: folder.v3.remove.IRecordRemoval): folder.v3.remove.RecordRemoval; + /** + * Decodes a PAMData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PAMData + * @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): PAM.PAMData; - /** - * Encodes the specified RecordRemoval message. Does not implicitly {@link folder.v3.remove.RecordRemoval.verify|verify} messages. - * @param message RecordRemoval message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: folder.v3.remove.IRecordRemoval, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a PAMData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PAMData + */ + public static fromObject(object: { [k: string]: any }): PAM.PAMData; - /** - * Decodes a RecordRemoval message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RecordRemoval - * @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): folder.v3.remove.RecordRemoval; + /** + * Creates a plain object from a PAMData message. Also converts values to other types if specified. + * @param message PAMData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.PAMData, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a RecordRemoval message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RecordRemoval - */ - public static fromObject(object: { [k: string]: any }): folder.v3.remove.RecordRemoval; + /** + * Converts this PAMData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a RecordRemoval message. Also converts values to other types if specified. - * @param message RecordRemoval - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: folder.v3.remove.RecordRemoval, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for PAMData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this RecordRemoval to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of an UidList. */ + interface IUidList { - /** - * Gets the default type url for RecordRemoval - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** UidList uids */ + uids?: (Uint8Array[]|null); + } - /** Properties of a FolderRemoval. */ - interface IFolderRemoval { + /** Represents an UidList. */ + class UidList implements IUidList { - /** FolderRemoval folderUid */ - folderUid?: (Uint8Array|null); + /** + * Constructs a new UidList. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.IUidList); - /** FolderRemoval operationType */ - operationType?: (folder.v3.remove.FolderOperationType|null); - } + /** UidList uids. */ + public uids: Uint8Array[]; - /** Represents a FolderRemoval. */ - class FolderRemoval implements IFolderRemoval { + /** + * Creates a new UidList instance using the specified properties. + * @param [properties] Properties to set + * @returns UidList instance + */ + public static create(properties?: PAM.IUidList): PAM.UidList; - /** - * Constructs a new FolderRemoval. - * @param [properties] Properties to set - */ - constructor(properties?: folder.v3.remove.IFolderRemoval); + /** + * Encodes the specified UidList message. Does not implicitly {@link PAM.UidList.verify|verify} messages. + * @param message UidList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.IUidList, writer?: $protobuf.Writer): $protobuf.Writer; - /** FolderRemoval folderUid. */ - public folderUid: Uint8Array; + /** + * Decodes an UidList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UidList + * @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): PAM.UidList; - /** FolderRemoval operationType. */ - public operationType: folder.v3.remove.FolderOperationType; + /** + * Creates an UidList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UidList + */ + public static fromObject(object: { [k: string]: any }): PAM.UidList; - /** - * Creates a new FolderRemoval instance using the specified properties. - * @param [properties] Properties to set - * @returns FolderRemoval instance - */ - public static create(properties?: folder.v3.remove.IFolderRemoval): folder.v3.remove.FolderRemoval; + /** + * Creates a plain object from an UidList message. Also converts values to other types if specified. + * @param message UidList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.UidList, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified FolderRemoval message. Does not implicitly {@link folder.v3.remove.FolderRemoval.verify|verify} messages. - * @param message FolderRemoval message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: folder.v3.remove.IFolderRemoval, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this UidList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a FolderRemoval message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FolderRemoval - * @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): folder.v3.remove.FolderRemoval; + /** + * Gets the default type url for UidList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a FolderRemoval message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FolderRemoval - */ - public static fromObject(object: { [k: string]: any }): folder.v3.remove.FolderRemoval; + /** Properties of a PAMResourceConfig. */ + interface IPAMResourceConfig { - /** - * Creates a plain object from a FolderRemoval message. Also converts values to other types if specified. - * @param message FolderRemoval - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: folder.v3.remove.FolderRemoval, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** PAMResourceConfig recordUid */ + recordUid?: (Uint8Array|null); - /** - * Converts this FolderRemoval to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** PAMResourceConfig networkUid */ + networkUid?: (Uint8Array|null); + + /** PAMResourceConfig adminUid */ + adminUid?: (Uint8Array|null); - /** - * Gets the default type url for FolderRemoval - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** PAMResourceConfig meta */ + meta?: (Uint8Array|null); - /** Properties of a RemoveRecordRequest. */ - interface IRemoveRecordRequest { + /** PAMResourceConfig connectionSettings */ + connectionSettings?: (Uint8Array|null); - /** RemoveRecordRequest action */ - action?: (folder.v3.remove.RemoveAction|null); + /** PAMResourceConfig connectUsers */ + connectUsers?: (PAM.IUidList|null); - /** RemoveRecordRequest records */ - records?: (folder.v3.remove.IRecordRemoval[]|null); + /** PAMResourceConfig domainUid */ + domainUid?: (Uint8Array|null); - /** RemoveRecordRequest confirmationToken */ - confirmationToken?: (Uint8Array|null); - } + /** PAMResourceConfig jitSettings */ + jitSettings?: (Uint8Array|null); - /** Represents a RemoveRecordRequest. */ - class RemoveRecordRequest implements IRemoveRecordRequest { + /** PAMResourceConfig keeperAiSettings */ + keeperAiSettings?: (Uint8Array|null); - /** - * Constructs a new RemoveRecordRequest. - * @param [properties] Properties to set - */ - constructor(properties?: folder.v3.remove.IRemoveRecordRequest); + /** PAMResourceConfig updateServices */ + updateServices?: (boolean|null); + } - /** RemoveRecordRequest action. */ - public action: folder.v3.remove.RemoveAction; + /** Represents a PAMResourceConfig. */ + class PAMResourceConfig implements IPAMResourceConfig { - /** RemoveRecordRequest records. */ - public records: folder.v3.remove.IRecordRemoval[]; + /** + * Constructs a new PAMResourceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.IPAMResourceConfig); - /** RemoveRecordRequest confirmationToken. */ - public confirmationToken: Uint8Array; + /** PAMResourceConfig recordUid. */ + public recordUid: Uint8Array; - /** - * Creates a new RemoveRecordRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RemoveRecordRequest instance - */ - public static create(properties?: folder.v3.remove.IRemoveRecordRequest): folder.v3.remove.RemoveRecordRequest; + /** PAMResourceConfig networkUid. */ + public networkUid?: (Uint8Array|null); - /** - * Encodes the specified RemoveRecordRequest message. Does not implicitly {@link folder.v3.remove.RemoveRecordRequest.verify|verify} messages. - * @param message RemoveRecordRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: folder.v3.remove.IRemoveRecordRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** PAMResourceConfig adminUid. */ + public adminUid?: (Uint8Array|null); - /** - * Decodes a RemoveRecordRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RemoveRecordRequest - * @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): folder.v3.remove.RemoveRecordRequest; + /** PAMResourceConfig meta. */ + public meta?: (Uint8Array|null); - /** - * Creates a RemoveRecordRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RemoveRecordRequest - */ - public static fromObject(object: { [k: string]: any }): folder.v3.remove.RemoveRecordRequest; + /** PAMResourceConfig connectionSettings. */ + public connectionSettings?: (Uint8Array|null); - /** - * Creates a plain object from a RemoveRecordRequest message. Also converts values to other types if specified. - * @param message RemoveRecordRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: folder.v3.remove.RemoveRecordRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** PAMResourceConfig connectUsers. */ + public connectUsers?: (PAM.IUidList|null); - /** - * Converts this RemoveRecordRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** PAMResourceConfig domainUid. */ + public domainUid?: (Uint8Array|null); - /** - * Gets the default type url for RemoveRecordRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** PAMResourceConfig jitSettings. */ + public jitSettings?: (Uint8Array|null); - /** Properties of a RemoveFolderRequest. */ - interface IRemoveFolderRequest { + /** PAMResourceConfig keeperAiSettings. */ + public keeperAiSettings?: (Uint8Array|null); - /** RemoveFolderRequest action */ - action?: (folder.v3.remove.RemoveAction|null); + /** PAMResourceConfig updateServices. */ + public updateServices?: (boolean|null); - /** RemoveFolderRequest folders */ - folders?: (folder.v3.remove.IFolderRemoval[]|null); + /** + * Creates a new PAMResourceConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PAMResourceConfig instance + */ + public static create(properties?: PAM.IPAMResourceConfig): PAM.PAMResourceConfig; - /** RemoveFolderRequest confirmationToken */ - confirmationToken?: (Uint8Array|null); - } + /** + * Encodes the specified PAMResourceConfig message. Does not implicitly {@link PAM.PAMResourceConfig.verify|verify} messages. + * @param message PAMResourceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.IPAMResourceConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a RemoveFolderRequest. */ - class RemoveFolderRequest implements IRemoveFolderRequest { + /** + * Decodes a PAMResourceConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PAMResourceConfig + * @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): PAM.PAMResourceConfig; - /** - * Constructs a new RemoveFolderRequest. - * @param [properties] Properties to set - */ - constructor(properties?: folder.v3.remove.IRemoveFolderRequest); + /** + * Creates a PAMResourceConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PAMResourceConfig + */ + public static fromObject(object: { [k: string]: any }): PAM.PAMResourceConfig; - /** RemoveFolderRequest action. */ - public action: folder.v3.remove.RemoveAction; + /** + * Creates a plain object from a PAMResourceConfig message. Also converts values to other types if specified. + * @param message PAMResourceConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.PAMResourceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** RemoveFolderRequest folders. */ - public folders: folder.v3.remove.IFolderRemoval[]; + /** + * Converts this PAMResourceConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** RemoveFolderRequest confirmationToken. */ - public confirmationToken: Uint8Array; + /** + * Gets the default type url for PAMResourceConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a new RemoveFolderRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RemoveFolderRequest instance - */ - public static create(properties?: folder.v3.remove.IRemoveFolderRequest): folder.v3.remove.RemoveFolderRequest; + /** Properties of a PAMUniversalSyncFolder. */ + interface IPAMUniversalSyncFolder { - /** - * Encodes the specified RemoveFolderRequest message. Does not implicitly {@link folder.v3.remove.RemoveFolderRequest.verify|verify} messages. - * @param message RemoveFolderRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: folder.v3.remove.IRemoveFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** PAMUniversalSyncFolder uid */ + uid?: (Uint8Array|null); + } - /** - * Decodes a RemoveFolderRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RemoveFolderRequest - * @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): folder.v3.remove.RemoveFolderRequest; + /** Represents a PAMUniversalSyncFolder. */ + class PAMUniversalSyncFolder implements IPAMUniversalSyncFolder { - /** - * Creates a RemoveFolderRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RemoveFolderRequest - */ - public static fromObject(object: { [k: string]: any }): folder.v3.remove.RemoveFolderRequest; + /** + * Constructs a new PAMUniversalSyncFolder. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.IPAMUniversalSyncFolder); - /** - * Creates a plain object from a RemoveFolderRequest message. Also converts values to other types if specified. - * @param message RemoveFolderRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: folder.v3.remove.RemoveFolderRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** PAMUniversalSyncFolder uid. */ + public uid: Uint8Array; - /** - * Converts this RemoveFolderRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new PAMUniversalSyncFolder instance using the specified properties. + * @param [properties] Properties to set + * @returns PAMUniversalSyncFolder instance + */ + public static create(properties?: PAM.IPAMUniversalSyncFolder): PAM.PAMUniversalSyncFolder; + + /** + * Encodes the specified PAMUniversalSyncFolder message. Does not implicitly {@link PAM.PAMUniversalSyncFolder.verify|verify} messages. + * @param message PAMUniversalSyncFolder message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.IPAMUniversalSyncFolder, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for RemoveFolderRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a PAMUniversalSyncFolder message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PAMUniversalSyncFolder + * @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): PAM.PAMUniversalSyncFolder; - /** Properties of a RemoveResponse. */ - interface IRemoveResponse { + /** + * Creates a PAMUniversalSyncFolder message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PAMUniversalSyncFolder + */ + public static fromObject(object: { [k: string]: any }): PAM.PAMUniversalSyncFolder; - /** RemoveResponse confirmationToken */ - confirmationToken?: (Uint8Array|null); + /** + * Creates a plain object from a PAMUniversalSyncFolder message. Also converts values to other types if specified. + * @param message PAMUniversalSyncFolder + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.PAMUniversalSyncFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** RemoveResponse tokenExpiresAt */ - tokenExpiresAt?: (number|null); + /** + * Converts this PAMUniversalSyncFolder to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** RemoveResponse results */ - results?: (folder.v3.remove.IRemoveResult[]|null); + /** + * Gets the default type url for PAMUniversalSyncFolder + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** RemoveResponse errorMessage */ - errorMessage?: (string|null); - } + /** Properties of a PAMUniversalSyncConfig. */ + interface IPAMUniversalSyncConfig { - /** - * Response for remove operations (both record and folder). - * - * For PREVIEW: Contains confirmation_token and per-item results with impact. - * For CONFIRM: Contains per-item results with execution status. - */ - class RemoveResponse implements IRemoveResponse { + /** PAMUniversalSyncConfig networkUid */ + networkUid?: (Uint8Array|null); - /** - * Constructs a new RemoveResponse. - * @param [properties] Properties to set - */ - constructor(properties?: folder.v3.remove.IRemoveResponse); + /** PAMUniversalSyncConfig enabled */ + enabled?: (boolean|null); - /** RemoveResponse confirmationToken. */ - public confirmationToken: Uint8Array; + /** PAMUniversalSyncConfig dryRunEnabled */ + dryRunEnabled?: (boolean|null); - /** RemoveResponse tokenExpiresAt. */ - public tokenExpiresAt: number; + /** PAMUniversalSyncConfig folders */ + folders?: (PAM.IPAMUniversalSyncFolder[]|null); - /** RemoveResponse results. */ - public results: folder.v3.remove.IRemoveResult[]; + /** PAMUniversalSyncConfig syncIdentity */ + syncIdentity?: (Uint8Array|null); - /** RemoveResponse errorMessage. */ - public errorMessage: string; + /** PAMUniversalSyncConfig vaultName */ + vaultName?: (Uint8Array|null); + } - /** - * Creates a new RemoveResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RemoveResponse instance - */ - public static create(properties?: folder.v3.remove.IRemoveResponse): folder.v3.remove.RemoveResponse; + /** Represents a PAMUniversalSyncConfig. */ + class PAMUniversalSyncConfig implements IPAMUniversalSyncConfig { - /** - * Encodes the specified RemoveResponse message. Does not implicitly {@link folder.v3.remove.RemoveResponse.verify|verify} messages. - * @param message RemoveResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: folder.v3.remove.IRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new PAMUniversalSyncConfig. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.IPAMUniversalSyncConfig); - /** - * Decodes a RemoveResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RemoveResponse - * @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): folder.v3.remove.RemoveResponse; + /** PAMUniversalSyncConfig networkUid. */ + public networkUid: Uint8Array; - /** - * Creates a RemoveResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RemoveResponse - */ - public static fromObject(object: { [k: string]: any }): folder.v3.remove.RemoveResponse; + /** PAMUniversalSyncConfig enabled. */ + public enabled?: (boolean|null); - /** - * Creates a plain object from a RemoveResponse message. Also converts values to other types if specified. - * @param message RemoveResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: folder.v3.remove.RemoveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** PAMUniversalSyncConfig dryRunEnabled. */ + public dryRunEnabled?: (boolean|null); - /** - * Converts this RemoveResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** PAMUniversalSyncConfig folders. */ + public folders: PAM.IPAMUniversalSyncFolder[]; - /** - * Gets the default type url for RemoveResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** PAMUniversalSyncConfig syncIdentity. */ + public syncIdentity?: (Uint8Array|null); - /** Properties of a RemoveResult. */ - interface IRemoveResult { + /** PAMUniversalSyncConfig vaultName. */ + public vaultName?: (Uint8Array|null); - /** RemoveResult itemUid */ - itemUid?: (Uint8Array|null); + /** + * Creates a new PAMUniversalSyncConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PAMUniversalSyncConfig instance + */ + public static create(properties?: PAM.IPAMUniversalSyncConfig): PAM.PAMUniversalSyncConfig; - /** RemoveResult folderUid */ - folderUid?: (Uint8Array|null); + /** + * Encodes the specified PAMUniversalSyncConfig message. Does not implicitly {@link PAM.PAMUniversalSyncConfig.verify|verify} messages. + * @param message PAMUniversalSyncConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.IPAMUniversalSyncConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** RemoveResult status */ - status?: (folder.v3.remove.RemoveStatus|null); + /** + * Decodes a PAMUniversalSyncConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PAMUniversalSyncConfig + * @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): PAM.PAMUniversalSyncConfig; - /** RemoveResult impact */ - impact?: (folder.v3.remove.IImpact|null); + /** + * Creates a PAMUniversalSyncConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PAMUniversalSyncConfig + */ + public static fromObject(object: { [k: string]: any }): PAM.PAMUniversalSyncConfig; - /** RemoveResult error */ - error?: (folder.v3.remove.IItemError|null); - } + /** + * Creates a plain object from a PAMUniversalSyncConfig message. Also converts values to other types if specified. + * @param message PAMUniversalSyncConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.PAMUniversalSyncConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Per-item result for a single record or folder. */ - class RemoveResult implements IRemoveResult { + /** + * Converts this PAMUniversalSyncConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Constructs a new RemoveResult. - * @param [properties] Properties to set - */ - constructor(properties?: folder.v3.remove.IRemoveResult); + /** + * Gets the default type url for PAMUniversalSyncConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** RemoveResult itemUid. */ - public itemUid: Uint8Array; + /** Properties of a NhiMetricsRequest. */ + interface INhiMetricsRequest { - /** RemoveResult folderUid. */ - public folderUid: Uint8Array; + /** NhiMetricsRequest startTime */ + startTime?: (number|null); - /** RemoveResult status. */ - public status: folder.v3.remove.RemoveStatus; + /** NhiMetricsRequest endTime */ + endTime?: (number|null); + } - /** RemoveResult impact. */ - public impact?: (folder.v3.remove.IImpact|null); + /** Represents a NhiMetricsRequest. */ + class NhiMetricsRequest implements INhiMetricsRequest { - /** RemoveResult error. */ - public error?: (folder.v3.remove.IItemError|null); + /** + * Constructs a new NhiMetricsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.INhiMetricsRequest); - /** - * Creates a new RemoveResult instance using the specified properties. - * @param [properties] Properties to set - * @returns RemoveResult instance - */ - public static create(properties?: folder.v3.remove.IRemoveResult): folder.v3.remove.RemoveResult; + /** NhiMetricsRequest startTime. */ + public startTime: number; + + /** NhiMetricsRequest endTime. */ + public endTime: number; - /** - * Encodes the specified RemoveResult message. Does not implicitly {@link folder.v3.remove.RemoveResult.verify|verify} messages. - * @param message RemoveResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: folder.v3.remove.IRemoveResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new NhiMetricsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NhiMetricsRequest instance + */ + public static create(properties?: PAM.INhiMetricsRequest): PAM.NhiMetricsRequest; - /** - * Decodes a RemoveResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RemoveResult - * @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): folder.v3.remove.RemoveResult; + /** + * Encodes the specified NhiMetricsRequest message. Does not implicitly {@link PAM.NhiMetricsRequest.verify|verify} messages. + * @param message NhiMetricsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.INhiMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a RemoveResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RemoveResult - */ - public static fromObject(object: { [k: string]: any }): folder.v3.remove.RemoveResult; + /** + * Decodes a NhiMetricsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NhiMetricsRequest + * @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): PAM.NhiMetricsRequest; - /** - * Creates a plain object from a RemoveResult message. Also converts values to other types if specified. - * @param message RemoveResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: folder.v3.remove.RemoveResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a NhiMetricsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NhiMetricsRequest + */ + public static fromObject(object: { [k: string]: any }): PAM.NhiMetricsRequest; - /** - * Converts this RemoveResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a NhiMetricsRequest message. Also converts values to other types if specified. + * @param message NhiMetricsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.NhiMetricsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for RemoveResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this NhiMetricsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of an Impact. */ - interface IImpact { + /** + * Gets the default type url for NhiMetricsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Impact foldersCount */ - foldersCount?: (number|null); + /** Properties of a PamUsageByUser. */ + interface IPamUsageByUser { - /** Impact recordsCount */ - recordsCount?: (number|null); + /** PamUsageByUser userId */ + userId?: (number|null); - /** Impact affectedUsersCount */ - affectedUsersCount?: (number|null); + /** PamUsageByUser recordRotationScheduledOk */ + recordRotationScheduledOk?: (number|null); - /** Impact affectedTeamsCount */ - affectedTeamsCount?: (number|null); + /** PamUsageByUser pamConnectionStarted */ + pamConnectionStarted?: (number|null); - /** Impact recordInfo */ - recordInfo?: (folder.v3.remove.IRecordInfo[]|null); + /** PamUsageByUser pamTunnelStarted */ + pamTunnelStarted?: (number|null); - /** Impact warnings */ - warnings?: (string[]|null); - } + /** PamUsageByUser discoveryJobStarted */ + discoveryJobStarted?: (number|null); - /** Impact metrics for a single item (record or folder tree). */ - class Impact implements IImpact { + /** PamUsageByUser recordRotationOnDemandOk */ + recordRotationOnDemandOk?: (number|null); - /** - * Constructs a new Impact. - * @param [properties] Properties to set - */ - constructor(properties?: folder.v3.remove.IImpact); + /** PamUsageByUser pamSessionRecordingStarted */ + pamSessionRecordingStarted?: (number|null); - /** Impact foldersCount. */ - public foldersCount: number; + /** PamUsageByUser pamRbiStarted */ + pamRbiStarted?: (number|null); - /** Impact recordsCount. */ - public recordsCount: number; + /** PamUsageByUser pamSessionRbiRecordingStarted */ + pamSessionRbiRecordingStarted?: (number|null); + } - /** Impact affectedUsersCount. */ - public affectedUsersCount: number; + /** Represents a PamUsageByUser. */ + class PamUsageByUser implements IPamUsageByUser { - /** Impact affectedTeamsCount. */ - public affectedTeamsCount: number; + /** + * Constructs a new PamUsageByUser. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.IPamUsageByUser); - /** Impact recordInfo. */ - public recordInfo: folder.v3.remove.IRecordInfo[]; + /** PamUsageByUser userId. */ + public userId: number; - /** Impact warnings. */ - public warnings: string[]; + /** PamUsageByUser recordRotationScheduledOk. */ + public recordRotationScheduledOk: number; - /** - * Creates a new Impact instance using the specified properties. - * @param [properties] Properties to set - * @returns Impact instance - */ - public static create(properties?: folder.v3.remove.IImpact): folder.v3.remove.Impact; + /** PamUsageByUser pamConnectionStarted. */ + public pamConnectionStarted: number; - /** - * Encodes the specified Impact message. Does not implicitly {@link folder.v3.remove.Impact.verify|verify} messages. - * @param message Impact message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: folder.v3.remove.IImpact, writer?: $protobuf.Writer): $protobuf.Writer; + /** PamUsageByUser pamTunnelStarted. */ + public pamTunnelStarted: number; - /** - * Decodes an Impact message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Impact - * @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): folder.v3.remove.Impact; + /** PamUsageByUser discoveryJobStarted. */ + public discoveryJobStarted: number; - /** - * Creates an Impact message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Impact - */ - public static fromObject(object: { [k: string]: any }): folder.v3.remove.Impact; + /** PamUsageByUser recordRotationOnDemandOk. */ + public recordRotationOnDemandOk: number; - /** - * Creates a plain object from an Impact message. Also converts values to other types if specified. - * @param message Impact - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: folder.v3.remove.Impact, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** PamUsageByUser pamSessionRecordingStarted. */ + public pamSessionRecordingStarted: number; - /** - * Converts this Impact to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** PamUsageByUser pamRbiStarted. */ + public pamRbiStarted: number; - /** - * Gets the default type url for Impact - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** PamUsageByUser pamSessionRbiRecordingStarted. */ + public pamSessionRbiRecordingStarted: number; - /** Properties of a RecordInfo. */ - interface IRecordInfo { + /** + * Creates a new PamUsageByUser instance using the specified properties. + * @param [properties] Properties to set + * @returns PamUsageByUser instance + */ + public static create(properties?: PAM.IPamUsageByUser): PAM.PamUsageByUser; - /** RecordInfo recordUid */ - recordUid?: (Uint8Array|null); + /** + * Encodes the specified PamUsageByUser message. Does not implicitly {@link PAM.PamUsageByUser.verify|verify} messages. + * @param message PamUsageByUser message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.IPamUsageByUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** RecordInfo locationsCount */ - locationsCount?: (number|null); - } + /** + * Decodes a PamUsageByUser message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PamUsageByUser + * @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): PAM.PamUsageByUser; - /** - * Additional info for a record being removed. - * Only populated for MOVE_TO_OWNER_TRASH to show "also in X other folders". - */ - class RecordInfo implements IRecordInfo { + /** + * Creates a PamUsageByUser message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PamUsageByUser + */ + public static fromObject(object: { [k: string]: any }): PAM.PamUsageByUser; + + /** + * Creates a plain object from a PamUsageByUser message. Also converts values to other types if specified. + * @param message PamUsageByUser + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.PamUsageByUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new RecordInfo. - * @param [properties] Properties to set - */ - constructor(properties?: folder.v3.remove.IRecordInfo); + /** + * Converts this PamUsageByUser to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** RecordInfo recordUid. */ - public recordUid: Uint8Array; + /** + * Gets the default type url for PamUsageByUser + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** RecordInfo locationsCount. */ - public locationsCount: number; + /** Properties of a NhiUsageByUser. */ + interface INhiUsageByUser { - /** - * Creates a new RecordInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns RecordInfo instance - */ - public static create(properties?: folder.v3.remove.IRecordInfo): folder.v3.remove.RecordInfo; + /** NhiUsageByUser userId */ + userId?: (number|null); - /** - * Encodes the specified RecordInfo message. Does not implicitly {@link folder.v3.remove.RecordInfo.verify|verify} messages. - * @param message RecordInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: folder.v3.remove.IRecordInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** NhiUsageByUser rotations */ + rotations?: (number|null); - /** - * Decodes a RecordInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RecordInfo - * @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): folder.v3.remove.RecordInfo; + /** NhiUsageByUser tunnels */ + tunnels?: (number|null); - /** - * Creates a RecordInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RecordInfo - */ - public static fromObject(object: { [k: string]: any }): folder.v3.remove.RecordInfo; + /** NhiUsageByUser connections */ + connections?: (number|null); - /** - * Creates a plain object from a RecordInfo message. Also converts values to other types if specified. - * @param message RecordInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: folder.v3.remove.RecordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** NhiUsageByUser discoveryJobs */ + discoveryJobs?: (number|null); + } - /** - * Converts this RecordInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a NhiUsageByUser. */ + class NhiUsageByUser implements INhiUsageByUser { - /** - * Gets the default type url for RecordInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new NhiUsageByUser. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.INhiUsageByUser); - /** Properties of an ItemError. */ - interface IItemError { + /** NhiUsageByUser userId. */ + public userId: number; - /** ItemError code */ - code?: (folder.v3.remove.RemoveErrorCode|null); + /** NhiUsageByUser rotations. */ + public rotations: number; - /** ItemError message */ - message?: (string|null); - } + /** NhiUsageByUser tunnels. */ + public tunnels: number; - /** Error details for a failed item. */ - class ItemError implements IItemError { + /** NhiUsageByUser connections. */ + public connections: number; - /** - * Constructs a new ItemError. - * @param [properties] Properties to set - */ - constructor(properties?: folder.v3.remove.IItemError); + /** NhiUsageByUser discoveryJobs. */ + public discoveryJobs: number; - /** ItemError code. */ - public code: folder.v3.remove.RemoveErrorCode; + /** + * Creates a new NhiUsageByUser instance using the specified properties. + * @param [properties] Properties to set + * @returns NhiUsageByUser instance + */ + public static create(properties?: PAM.INhiUsageByUser): PAM.NhiUsageByUser; - /** ItemError message. */ - public message: string; + /** + * Encodes the specified NhiUsageByUser message. Does not implicitly {@link PAM.NhiUsageByUser.verify|verify} messages. + * @param message NhiUsageByUser message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.INhiUsageByUser, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new ItemError instance using the specified properties. - * @param [properties] Properties to set - * @returns ItemError instance - */ - public static create(properties?: folder.v3.remove.IItemError): folder.v3.remove.ItemError; + /** + * Decodes a NhiUsageByUser message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NhiUsageByUser + * @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): PAM.NhiUsageByUser; - /** - * Encodes the specified ItemError message. Does not implicitly {@link folder.v3.remove.ItemError.verify|verify} messages. - * @param message ItemError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: folder.v3.remove.IItemError, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a NhiUsageByUser message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NhiUsageByUser + */ + public static fromObject(object: { [k: string]: any }): PAM.NhiUsageByUser; - /** - * Decodes an ItemError message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ItemError - * @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): folder.v3.remove.ItemError; + /** + * Creates a plain object from a NhiUsageByUser message. Also converts values to other types if specified. + * @param message NhiUsageByUser + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.NhiUsageByUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates an ItemError message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ItemError - */ - public static fromObject(object: { [k: string]: any }): folder.v3.remove.ItemError; + /** + * Converts this NhiUsageByUser to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from an ItemError message. Also converts values to other types if specified. - * @param message ItemError - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: folder.v3.remove.ItemError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for NhiUsageByUser + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this ItemError to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a NhiMetricsResponse. */ + interface INhiMetricsResponse { - /** - * Gets the default type url for ItemError - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** NhiMetricsResponse enterpriseId */ + enterpriseId?: (number|null); - /** Properties of a RemovalTokenPayload. */ - interface IRemovalTokenPayload { + /** NhiMetricsResponse startTime */ + startTime?: (number|null); - /** RemovalTokenPayload itemFingerprints */ - itemFingerprints?: (folder.v3.remove.IItemFingerprint[]|null); + /** NhiMetricsResponse endTime */ + endTime?: (number|null); - /** RemovalTokenPayload userId */ - userId?: (number|null); + /** NhiMetricsResponse uniqueKsmDevices */ + uniqueKsmDevices?: (number|null); - /** RemovalTokenPayload deviceId */ - deviceId?: (number|null); + /** NhiMetricsResponse pamGatewayOnline */ + pamGatewayOnline?: (number|null); - /** RemovalTokenPayload sessionUid */ - sessionUid?: (Uint8Array|null); + /** NhiMetricsResponse pamUsageByUser */ + pamUsageByUser?: (PAM.IPamUsageByUser[]|null); - /** RemovalTokenPayload expiresAtMillis */ - expiresAtMillis?: (number|null); - } + /** NhiMetricsResponse nhiCount */ + nhiCount?: (number|null); - /** Internal token payload (not exposed in API, just for serialization) */ - class RemovalTokenPayload implements IRemovalTokenPayload { + /** NhiMetricsResponse ksmNhiCount */ + ksmNhiCount?: (number|null); - /** - * Constructs a new RemovalTokenPayload. - * @param [properties] Properties to set - */ - constructor(properties?: folder.v3.remove.IRemovalTokenPayload); + /** NhiMetricsResponse usageByUser */ + usageByUser?: (PAM.INhiUsageByUser[]|null); + } - /** RemovalTokenPayload itemFingerprints. */ - public itemFingerprints: folder.v3.remove.IItemFingerprint[]; + /** Represents a NhiMetricsResponse. */ + class NhiMetricsResponse implements INhiMetricsResponse { - /** RemovalTokenPayload userId. */ - public userId: number; + /** + * Constructs a new NhiMetricsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.INhiMetricsResponse); - /** RemovalTokenPayload deviceId. */ - public deviceId: number; + /** NhiMetricsResponse enterpriseId. */ + public enterpriseId: number; - /** RemovalTokenPayload sessionUid. */ - public sessionUid: Uint8Array; + /** NhiMetricsResponse startTime. */ + public startTime: number; - /** RemovalTokenPayload expiresAtMillis. */ - public expiresAtMillis: number; + /** NhiMetricsResponse endTime. */ + public endTime: number; - /** - * Creates a new RemovalTokenPayload instance using the specified properties. - * @param [properties] Properties to set - * @returns RemovalTokenPayload instance - */ - public static create(properties?: folder.v3.remove.IRemovalTokenPayload): folder.v3.remove.RemovalTokenPayload; + /** NhiMetricsResponse uniqueKsmDevices. */ + public uniqueKsmDevices: number; - /** - * Encodes the specified RemovalTokenPayload message. Does not implicitly {@link folder.v3.remove.RemovalTokenPayload.verify|verify} messages. - * @param message RemovalTokenPayload message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: folder.v3.remove.IRemovalTokenPayload, writer?: $protobuf.Writer): $protobuf.Writer; + /** NhiMetricsResponse pamGatewayOnline. */ + public pamGatewayOnline: number; - /** - * Decodes a RemovalTokenPayload message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RemovalTokenPayload - * @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): folder.v3.remove.RemovalTokenPayload; + /** NhiMetricsResponse pamUsageByUser. */ + public pamUsageByUser: PAM.IPamUsageByUser[]; - /** - * Creates a RemovalTokenPayload message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RemovalTokenPayload - */ - public static fromObject(object: { [k: string]: any }): folder.v3.remove.RemovalTokenPayload; + /** NhiMetricsResponse nhiCount. */ + public nhiCount: number; - /** - * Creates a plain object from a RemovalTokenPayload message. Also converts values to other types if specified. - * @param message RemovalTokenPayload - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: folder.v3.remove.RemovalTokenPayload, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** NhiMetricsResponse ksmNhiCount. */ + public ksmNhiCount: number; - /** - * Converts this RemovalTokenPayload to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** NhiMetricsResponse usageByUser. */ + public usageByUser: PAM.INhiUsageByUser[]; - /** - * Gets the default type url for RemovalTokenPayload - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a new NhiMetricsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns NhiMetricsResponse instance + */ + public static create(properties?: PAM.INhiMetricsResponse): PAM.NhiMetricsResponse; - /** Properties of an ItemFingerprint. */ - interface IItemFingerprint { + /** + * Encodes the specified NhiMetricsResponse message. Does not implicitly {@link PAM.NhiMetricsResponse.verify|verify} messages. + * @param message NhiMetricsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.INhiMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** ItemFingerprint record */ - record?: (folder.v3.remove.IRecordTarget|null); + /** + * Decodes a NhiMetricsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NhiMetricsResponse + * @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): PAM.NhiMetricsResponse; - /** ItemFingerprint folder */ - folder?: (folder.v3.remove.IFolderTarget|null); + /** + * Creates a NhiMetricsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NhiMetricsResponse + */ + public static fromObject(object: { [k: string]: any }): PAM.NhiMetricsResponse; - /** ItemFingerprint fingerprint */ - fingerprint?: (Uint8Array|null); - } + /** + * Creates a plain object from a NhiMetricsResponse message. Also converts values to other types if specified. + * @param message NhiMetricsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.NhiMetricsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents an ItemFingerprint. */ - class ItemFingerprint implements IItemFingerprint { + /** + * Converts this NhiMetricsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Constructs a new ItemFingerprint. - * @param [properties] Properties to set - */ - constructor(properties?: folder.v3.remove.IItemFingerprint); + /** + * Gets the default type url for NhiMetricsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ItemFingerprint record. */ - public record?: (folder.v3.remove.IRecordTarget|null); + /** Properties of a NhiBulkMetricsResponse. */ + interface INhiBulkMetricsResponse { - /** ItemFingerprint folder. */ - public folder?: (folder.v3.remove.IFolderTarget|null); + /** NhiBulkMetricsResponse responses */ + responses?: (PAM.INhiMetricsResponse[]|null); + } - /** ItemFingerprint fingerprint. */ - public fingerprint: Uint8Array; + /** Represents a NhiBulkMetricsResponse. */ + class NhiBulkMetricsResponse implements INhiBulkMetricsResponse { - /** ItemFingerprint target. */ - public target?: ("record"|"folder"); + /** + * Constructs a new NhiBulkMetricsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.INhiBulkMetricsResponse); - /** - * Creates a new ItemFingerprint instance using the specified properties. - * @param [properties] Properties to set - * @returns ItemFingerprint instance - */ - public static create(properties?: folder.v3.remove.IItemFingerprint): folder.v3.remove.ItemFingerprint; + /** NhiBulkMetricsResponse responses. */ + public responses: PAM.INhiMetricsResponse[]; - /** - * Encodes the specified ItemFingerprint message. Does not implicitly {@link folder.v3.remove.ItemFingerprint.verify|verify} messages. - * @param message ItemFingerprint message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: folder.v3.remove.IItemFingerprint, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new NhiBulkMetricsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns NhiBulkMetricsResponse instance + */ + public static create(properties?: PAM.INhiBulkMetricsResponse): PAM.NhiBulkMetricsResponse; - /** - * Decodes an ItemFingerprint message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ItemFingerprint - * @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): folder.v3.remove.ItemFingerprint; + /** + * Encodes the specified NhiBulkMetricsResponse message. Does not implicitly {@link PAM.NhiBulkMetricsResponse.verify|verify} messages. + * @param message NhiBulkMetricsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.INhiBulkMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an ItemFingerprint message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ItemFingerprint - */ - public static fromObject(object: { [k: string]: any }): folder.v3.remove.ItemFingerprint; + /** + * Decodes a NhiBulkMetricsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NhiBulkMetricsResponse + * @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): PAM.NhiBulkMetricsResponse; - /** - * Creates a plain object from an ItemFingerprint message. Also converts values to other types if specified. - * @param message ItemFingerprint - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: folder.v3.remove.ItemFingerprint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a NhiBulkMetricsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NhiBulkMetricsResponse + */ + public static fromObject(object: { [k: string]: any }): PAM.NhiBulkMetricsResponse; - /** - * Converts this ItemFingerprint to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a NhiBulkMetricsResponse message. Also converts values to other types if specified. + * @param message NhiBulkMetricsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.NhiBulkMetricsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for ItemFingerprint - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this NhiBulkMetricsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a RecordTarget. */ - interface IRecordTarget { + /** + * Gets the default type url for NhiBulkMetricsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** RecordTarget folderUid */ - folderUid?: (Uint8Array|null); + /** NhiCategory enum. */ + enum NhiCategory { + NHI_CATEGORY_UNKNOWN = 0, + PAM_USER = 1, + PAM_RESOURCE = 2, + GATEWAY = 3, + DEVICE = 4 + } - /** RecordTarget recordUid */ - recordUid?: (Uint8Array|null); + /** Properties of a NhiUidEntry. */ + interface INhiUidEntry { - /** RecordTarget operationType */ - operationType?: (folder.v3.remove.RecordOperationType|null); - } + /** NhiUidEntry uid */ + uid?: (string|null); - /** Represents a RecordTarget. */ - class RecordTarget implements IRecordTarget { + /** NhiUidEntry category */ + category?: (PAM.NhiCategory|null); - /** - * Constructs a new RecordTarget. - * @param [properties] Properties to set - */ - constructor(properties?: folder.v3.remove.IRecordTarget); + /** NhiUidEntry ksmNhi */ + ksmNhi?: (boolean|null); - /** RecordTarget folderUid. */ - public folderUid: Uint8Array; + /** NhiUidEntry appUid */ + appUid?: (string|null); + } - /** RecordTarget recordUid. */ - public recordUid: Uint8Array; + /** Represents a NhiUidEntry. */ + class NhiUidEntry implements INhiUidEntry { - /** RecordTarget operationType. */ - public operationType: folder.v3.remove.RecordOperationType; + /** + * Constructs a new NhiUidEntry. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.INhiUidEntry); - /** - * Creates a new RecordTarget instance using the specified properties. - * @param [properties] Properties to set - * @returns RecordTarget instance - */ - public static create(properties?: folder.v3.remove.IRecordTarget): folder.v3.remove.RecordTarget; + /** NhiUidEntry uid. */ + public uid: string; - /** - * Encodes the specified RecordTarget message. Does not implicitly {@link folder.v3.remove.RecordTarget.verify|verify} messages. - * @param message RecordTarget message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: folder.v3.remove.IRecordTarget, writer?: $protobuf.Writer): $protobuf.Writer; + /** NhiUidEntry category. */ + public category: PAM.NhiCategory; - /** - * Decodes a RecordTarget message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RecordTarget - * @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): folder.v3.remove.RecordTarget; + /** NhiUidEntry ksmNhi. */ + public ksmNhi: boolean; - /** - * Creates a RecordTarget message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RecordTarget - */ - public static fromObject(object: { [k: string]: any }): folder.v3.remove.RecordTarget; + /** NhiUidEntry appUid. */ + public appUid: string; - /** - * Creates a plain object from a RecordTarget message. Also converts values to other types if specified. - * @param message RecordTarget - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: folder.v3.remove.RecordTarget, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new NhiUidEntry instance using the specified properties. + * @param [properties] Properties to set + * @returns NhiUidEntry instance + */ + public static create(properties?: PAM.INhiUidEntry): PAM.NhiUidEntry; - /** - * Converts this RecordTarget to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified NhiUidEntry message. Does not implicitly {@link PAM.NhiUidEntry.verify|verify} messages. + * @param message NhiUidEntry message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.INhiUidEntry, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for RecordTarget - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a NhiUidEntry message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NhiUidEntry + * @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): PAM.NhiUidEntry; - /** Properties of a FolderTarget. */ - interface IFolderTarget { + /** + * Creates a NhiUidEntry message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NhiUidEntry + */ + public static fromObject(object: { [k: string]: any }): PAM.NhiUidEntry; - /** FolderTarget folderUid */ - folderUid?: (Uint8Array|null); + /** + * Creates a plain object from a NhiUidEntry message. Also converts values to other types if specified. + * @param message NhiUidEntry + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.NhiUidEntry, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FolderTarget operationType */ - operationType?: (folder.v3.remove.FolderOperationType|null); - } + /** + * Converts this NhiUidEntry to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a FolderTarget. */ - class FolderTarget implements IFolderTarget { + /** + * Gets the default type url for NhiUidEntry + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new FolderTarget. - * @param [properties] Properties to set - */ - constructor(properties?: folder.v3.remove.IFolderTarget); + /** Properties of a GetNhiUidsRequest. */ + interface IGetNhiUidsRequest { - /** FolderTarget folderUid. */ - public folderUid: Uint8Array; + /** GetNhiUidsRequest startTime */ + startTime?: (number|null); - /** FolderTarget operationType. */ - public operationType: folder.v3.remove.FolderOperationType; + /** GetNhiUidsRequest endTime */ + endTime?: (number|null); + } - /** - * Creates a new FolderTarget instance using the specified properties. - * @param [properties] Properties to set - * @returns FolderTarget instance - */ - public static create(properties?: folder.v3.remove.IFolderTarget): folder.v3.remove.FolderTarget; + /** Represents a GetNhiUidsRequest. */ + class GetNhiUidsRequest implements IGetNhiUidsRequest { - /** - * Encodes the specified FolderTarget message. Does not implicitly {@link folder.v3.remove.FolderTarget.verify|verify} messages. - * @param message FolderTarget message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: folder.v3.remove.IFolderTarget, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new GetNhiUidsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.IGetNhiUidsRequest); - /** - * Decodes a FolderTarget message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FolderTarget - * @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): folder.v3.remove.FolderTarget; + /** GetNhiUidsRequest startTime. */ + public startTime: number; - /** - * Creates a FolderTarget message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FolderTarget - */ - public static fromObject(object: { [k: string]: any }): folder.v3.remove.FolderTarget; + /** GetNhiUidsRequest endTime. */ + public endTime: number; - /** - * Creates a plain object from a FolderTarget message. Also converts values to other types if specified. - * @param message FolderTarget - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: folder.v3.remove.FolderTarget, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new GetNhiUidsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetNhiUidsRequest instance + */ + public static create(properties?: PAM.IGetNhiUidsRequest): PAM.GetNhiUidsRequest; - /** - * Converts this FolderTarget to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified GetNhiUidsRequest message. Does not implicitly {@link PAM.GetNhiUidsRequest.verify|verify} messages. + * @param message GetNhiUidsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.IGetNhiUidsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetNhiUidsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetNhiUidsRequest + * @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): PAM.GetNhiUidsRequest; - /** - * Gets the default type url for FolderTarget - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a GetNhiUidsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetNhiUidsRequest + */ + public static fromObject(object: { [k: string]: any }): PAM.GetNhiUidsRequest; - /** RestoreStatus enum. */ - enum RestoreStatus { - RESTORE_STATUS_UNKNOWN = 0, - RS_SUCCESS = 1, - RS_NOT_IN_TRASHCAN = 2, - RS_ACCESS_DENIED = 3, - RS_TARGET_FOLDER_NOT_FOUND = 4, - RS_ALREADY_EXISTS_IN_TARGET = 5, - RS_FAIL = 6 - } + /** + * Creates a plain object from a GetNhiUidsRequest message. Also converts values to other types if specified. + * @param message GetNhiUidsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.GetNhiUidsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** RestoreItemType enum. */ - enum RestoreItemType { - RESTORE_ITEM_UNKNOWN = 0, - RESTORE_ITEM_RECORD = 1, - RESTORE_ITEM_FOLDER = 2 - } + /** + * Converts this GetNhiUidsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a RestoreResult. */ - interface IRestoreResult { + /** + * Gets the default type url for GetNhiUidsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** RestoreResult itemUid */ - itemUid?: (Uint8Array|null); + /** Properties of a GetNhiUidsResponse. */ + interface IGetNhiUidsResponse { - /** RestoreResult itemType */ - itemType?: (folder.v3.remove.RestoreItemType|null); + /** GetNhiUidsResponse uids */ + uids?: (PAM.INhiUidEntry[]|null); + } - /** RestoreResult status */ - status?: (folder.v3.remove.RestoreStatus|null); + /** Represents a GetNhiUidsResponse. */ + class GetNhiUidsResponse implements IGetNhiUidsResponse { - /** RestoreResult errorMessage */ - errorMessage?: (string|null); - } + /** + * Constructs a new GetNhiUidsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.IGetNhiUidsResponse); - /** Represents a RestoreResult. */ - class RestoreResult implements IRestoreResult { + /** GetNhiUidsResponse uids. */ + public uids: PAM.INhiUidEntry[]; - /** - * Constructs a new RestoreResult. - * @param [properties] Properties to set - */ - constructor(properties?: folder.v3.remove.IRestoreResult); + /** + * Creates a new GetNhiUidsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetNhiUidsResponse instance + */ + public static create(properties?: PAM.IGetNhiUidsResponse): PAM.GetNhiUidsResponse; - /** RestoreResult itemUid. */ - public itemUid: Uint8Array; + /** + * Encodes the specified GetNhiUidsResponse message. Does not implicitly {@link PAM.GetNhiUidsResponse.verify|verify} messages. + * @param message GetNhiUidsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.IGetNhiUidsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** RestoreResult itemType. */ - public itemType: folder.v3.remove.RestoreItemType; + /** + * Decodes a GetNhiUidsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetNhiUidsResponse + * @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): PAM.GetNhiUidsResponse; - /** RestoreResult status. */ - public status: folder.v3.remove.RestoreStatus; + /** + * Creates a GetNhiUidsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetNhiUidsResponse + */ + public static fromObject(object: { [k: string]: any }): PAM.GetNhiUidsResponse; - /** RestoreResult errorMessage. */ - public errorMessage: string; + /** + * Creates a plain object from a GetNhiUidsResponse message. Also converts values to other types if specified. + * @param message GetNhiUidsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.GetNhiUidsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a new RestoreResult instance using the specified properties. - * @param [properties] Properties to set - * @returns RestoreResult instance - */ - public static create(properties?: folder.v3.remove.IRestoreResult): folder.v3.remove.RestoreResult; + /** + * Converts this GetNhiUidsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified RestoreResult message. Does not implicitly {@link folder.v3.remove.RestoreResult.verify|verify} messages. - * @param message RestoreResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: folder.v3.remove.IRestoreResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for GetNhiUidsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a RestoreResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RestoreResult - * @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): folder.v3.remove.RestoreResult; + /** Properties of a SetNhiKsmEffectiveDateRequest. */ + interface ISetNhiKsmEffectiveDateRequest { - /** - * Creates a RestoreResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RestoreResult - */ - public static fromObject(object: { [k: string]: any }): folder.v3.remove.RestoreResult; + /** SetNhiKsmEffectiveDateRequest effectiveDate */ + effectiveDate?: (number|null); + } - /** - * Creates a plain object from a RestoreResult message. Also converts values to other types if specified. - * @param message RestoreResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: folder.v3.remove.RestoreResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a SetNhiKsmEffectiveDateRequest. */ + class SetNhiKsmEffectiveDateRequest implements ISetNhiKsmEffectiveDateRequest { - /** - * Converts this RestoreResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new SetNhiKsmEffectiveDateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.ISetNhiKsmEffectiveDateRequest); - /** - * Gets the default type url for RestoreResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** SetNhiKsmEffectiveDateRequest effectiveDate. */ + public effectiveDate: number; - /** Properties of a TrashcanRestoreResponse. */ - interface ITrashcanRestoreResponse { + /** + * Creates a new SetNhiKsmEffectiveDateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetNhiKsmEffectiveDateRequest instance + */ + public static create(properties?: PAM.ISetNhiKsmEffectiveDateRequest): PAM.SetNhiKsmEffectiveDateRequest; - /** TrashcanRestoreResponse results */ - results?: (folder.v3.remove.IRestoreResult[]|null); + /** + * Encodes the specified SetNhiKsmEffectiveDateRequest message. Does not implicitly {@link PAM.SetNhiKsmEffectiveDateRequest.verify|verify} messages. + * @param message SetNhiKsmEffectiveDateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.ISetNhiKsmEffectiveDateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** TrashcanRestoreResponse errorMessage */ - errorMessage?: (string|null); - } + /** + * Decodes a SetNhiKsmEffectiveDateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetNhiKsmEffectiveDateRequest + * @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): PAM.SetNhiKsmEffectiveDateRequest; - /** Represents a TrashcanRestoreResponse. */ - class TrashcanRestoreResponse implements ITrashcanRestoreResponse { + /** + * Creates a SetNhiKsmEffectiveDateRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetNhiKsmEffectiveDateRequest + */ + public static fromObject(object: { [k: string]: any }): PAM.SetNhiKsmEffectiveDateRequest; - /** - * Constructs a new TrashcanRestoreResponse. - * @param [properties] Properties to set - */ - constructor(properties?: folder.v3.remove.ITrashcanRestoreResponse); + /** + * Creates a plain object from a SetNhiKsmEffectiveDateRequest message. Also converts values to other types if specified. + * @param message SetNhiKsmEffectiveDateRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.SetNhiKsmEffectiveDateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TrashcanRestoreResponse results. */ - public results: folder.v3.remove.IRestoreResult[]; + /** + * Converts this SetNhiKsmEffectiveDateRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetNhiKsmEffectiveDateRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** TrashcanRestoreResponse errorMessage. */ - public errorMessage: string; + /** Properties of a GetNhiKsmEffectiveDateResponse. */ + interface IGetNhiKsmEffectiveDateResponse { - /** - * Creates a new TrashcanRestoreResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TrashcanRestoreResponse instance - */ - public static create(properties?: folder.v3.remove.ITrashcanRestoreResponse): folder.v3.remove.TrashcanRestoreResponse; + /** GetNhiKsmEffectiveDateResponse effectiveDate */ + effectiveDate?: (number|null); - /** - * Encodes the specified TrashcanRestoreResponse message. Does not implicitly {@link folder.v3.remove.TrashcanRestoreResponse.verify|verify} messages. - * @param message TrashcanRestoreResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: folder.v3.remove.ITrashcanRestoreResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** GetNhiKsmEffectiveDateResponse defaultDate */ + defaultDate?: (number|null); + } - /** - * Decodes a TrashcanRestoreResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrashcanRestoreResponse - * @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): folder.v3.remove.TrashcanRestoreResponse; + /** Represents a GetNhiKsmEffectiveDateResponse. */ + class GetNhiKsmEffectiveDateResponse implements IGetNhiKsmEffectiveDateResponse { - /** - * Creates a TrashcanRestoreResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrashcanRestoreResponse - */ - public static fromObject(object: { [k: string]: any }): folder.v3.remove.TrashcanRestoreResponse; + /** + * Constructs a new GetNhiKsmEffectiveDateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.IGetNhiKsmEffectiveDateResponse); - /** - * Creates a plain object from a TrashcanRestoreResponse message. Also converts values to other types if specified. - * @param message TrashcanRestoreResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: folder.v3.remove.TrashcanRestoreResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** GetNhiKsmEffectiveDateResponse effectiveDate. */ + public effectiveDate: number; - /** - * Converts this TrashcanRestoreResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** GetNhiKsmEffectiveDateResponse defaultDate. */ + public defaultDate: number; - /** - * Gets the default type url for TrashcanRestoreResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a new GetNhiKsmEffectiveDateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetNhiKsmEffectiveDateResponse instance + */ + public static create(properties?: PAM.IGetNhiKsmEffectiveDateResponse): PAM.GetNhiKsmEffectiveDateResponse; - /** Properties of a RestoreRecord. */ - interface IRestoreRecord { + /** + * Encodes the specified GetNhiKsmEffectiveDateResponse message. Does not implicitly {@link PAM.GetNhiKsmEffectiveDateResponse.verify|verify} messages. + * @param message GetNhiKsmEffectiveDateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.IGetNhiKsmEffectiveDateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** RestoreRecord recordUid */ - recordUid?: (Uint8Array|null); + /** + * Decodes a GetNhiKsmEffectiveDateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetNhiKsmEffectiveDateResponse + * @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): PAM.GetNhiKsmEffectiveDateResponse; - /** RestoreRecord encryptedRecordKey */ - encryptedRecordKey?: (Uint8Array|null); + /** + * Creates a GetNhiKsmEffectiveDateResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetNhiKsmEffectiveDateResponse + */ + public static fromObject(object: { [k: string]: any }): PAM.GetNhiKsmEffectiveDateResponse; - /** RestoreRecord sourceFolderUid */ - sourceFolderUid?: (Uint8Array|null); - } + /** + * Creates a plain object from a GetNhiKsmEffectiveDateResponse message. Also converts values to other types if specified. + * @param message GetNhiKsmEffectiveDateResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.GetNhiKsmEffectiveDateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a RestoreRecord. */ - class RestoreRecord implements IRestoreRecord { + /** + * Converts this GetNhiKsmEffectiveDateResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Constructs a new RestoreRecord. - * @param [properties] Properties to set - */ - constructor(properties?: folder.v3.remove.IRestoreRecord); + /** + * Gets the default type url for GetNhiKsmEffectiveDateResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** RestoreRecord recordUid. */ - public recordUid: Uint8Array; + /** Properties of a PAMUniversalSyncPreCheckRequest. */ + interface IPAMUniversalSyncPreCheckRequest { - /** RestoreRecord encryptedRecordKey. */ - public encryptedRecordKey: Uint8Array; + /** PAMUniversalSyncPreCheckRequest networkUid */ + networkUid?: (Uint8Array|null); - /** RestoreRecord sourceFolderUid. */ - public sourceFolderUid: Uint8Array; + /** PAMUniversalSyncPreCheckRequest folderUids */ + folderUids?: (Uint8Array[]|null); + } - /** - * Creates a new RestoreRecord instance using the specified properties. - * @param [properties] Properties to set - * @returns RestoreRecord instance - */ - public static create(properties?: folder.v3.remove.IRestoreRecord): folder.v3.remove.RestoreRecord; + /** Represents a PAMUniversalSyncPreCheckRequest. */ + class PAMUniversalSyncPreCheckRequest implements IPAMUniversalSyncPreCheckRequest { - /** - * Encodes the specified RestoreRecord message. Does not implicitly {@link folder.v3.remove.RestoreRecord.verify|verify} messages. - * @param message RestoreRecord message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: folder.v3.remove.IRestoreRecord, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new PAMUniversalSyncPreCheckRequest. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.IPAMUniversalSyncPreCheckRequest); - /** - * Decodes a RestoreRecord message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RestoreRecord - * @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): folder.v3.remove.RestoreRecord; + /** PAMUniversalSyncPreCheckRequest networkUid. */ + public networkUid: Uint8Array; - /** - * Creates a RestoreRecord message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RestoreRecord - */ - public static fromObject(object: { [k: string]: any }): folder.v3.remove.RestoreRecord; + /** PAMUniversalSyncPreCheckRequest folderUids. */ + public folderUids: Uint8Array[]; - /** - * Creates a plain object from a RestoreRecord message. Also converts values to other types if specified. - * @param message RestoreRecord - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: folder.v3.remove.RestoreRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new PAMUniversalSyncPreCheckRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PAMUniversalSyncPreCheckRequest instance + */ + public static create(properties?: PAM.IPAMUniversalSyncPreCheckRequest): PAM.PAMUniversalSyncPreCheckRequest; - /** - * Converts this RestoreRecord to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified PAMUniversalSyncPreCheckRequest message. Does not implicitly {@link PAM.PAMUniversalSyncPreCheckRequest.verify|verify} messages. + * @param message PAMUniversalSyncPreCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.IPAMUniversalSyncPreCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for RestoreRecord - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a PAMUniversalSyncPreCheckRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PAMUniversalSyncPreCheckRequest + * @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): PAM.PAMUniversalSyncPreCheckRequest; - /** Properties of a RestoreFolder. */ - interface IRestoreFolder { + /** + * Creates a PAMUniversalSyncPreCheckRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PAMUniversalSyncPreCheckRequest + */ + public static fromObject(object: { [k: string]: any }): PAM.PAMUniversalSyncPreCheckRequest; - /** RestoreFolder folderUid */ - folderUid?: (Uint8Array|null); + /** + * Creates a plain object from a PAMUniversalSyncPreCheckRequest message. Also converts values to other types if specified. + * @param message PAMUniversalSyncPreCheckRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.PAMUniversalSyncPreCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** RestoreFolder encryptedFolderKey */ - encryptedFolderKey?: (Uint8Array|null); - } + /** + * Converts this PAMUniversalSyncPreCheckRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a RestoreFolder. */ - class RestoreFolder implements IRestoreFolder { + /** + * Gets the default type url for PAMUniversalSyncPreCheckRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new RestoreFolder. - * @param [properties] Properties to set - */ - constructor(properties?: folder.v3.remove.IRestoreFolder); + /** Properties of a PAMUniversalSyncPreCheckResult. */ + interface IPAMUniversalSyncPreCheckResult { - /** RestoreFolder folderUid. */ - public folderUid: Uint8Array; + /** PAMUniversalSyncPreCheckResult folderUid */ + folderUid?: (Uint8Array|null); - /** RestoreFolder encryptedFolderKey. */ - public encryptedFolderKey: Uint8Array; + /** PAMUniversalSyncPreCheckResult isUsed */ + isUsed?: (boolean|null); + } - /** - * Creates a new RestoreFolder instance using the specified properties. - * @param [properties] Properties to set - * @returns RestoreFolder instance - */ - public static create(properties?: folder.v3.remove.IRestoreFolder): folder.v3.remove.RestoreFolder; + /** Represents a PAMUniversalSyncPreCheckResult. */ + class PAMUniversalSyncPreCheckResult implements IPAMUniversalSyncPreCheckResult { - /** - * Encodes the specified RestoreFolder message. Does not implicitly {@link folder.v3.remove.RestoreFolder.verify|verify} messages. - * @param message RestoreFolder message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: folder.v3.remove.IRestoreFolder, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new PAMUniversalSyncPreCheckResult. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.IPAMUniversalSyncPreCheckResult); - /** - * Decodes a RestoreFolder message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RestoreFolder - * @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): folder.v3.remove.RestoreFolder; + /** PAMUniversalSyncPreCheckResult folderUid. */ + public folderUid: Uint8Array; - /** - * Creates a RestoreFolder message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RestoreFolder - */ - public static fromObject(object: { [k: string]: any }): folder.v3.remove.RestoreFolder; + /** PAMUniversalSyncPreCheckResult isUsed. */ + public isUsed: boolean; - /** - * Creates a plain object from a RestoreFolder message. Also converts values to other types if specified. - * @param message RestoreFolder - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: folder.v3.remove.RestoreFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new PAMUniversalSyncPreCheckResult instance using the specified properties. + * @param [properties] Properties to set + * @returns PAMUniversalSyncPreCheckResult instance + */ + public static create(properties?: PAM.IPAMUniversalSyncPreCheckResult): PAM.PAMUniversalSyncPreCheckResult; - /** - * Converts this RestoreFolder to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified PAMUniversalSyncPreCheckResult message. Does not implicitly {@link PAM.PAMUniversalSyncPreCheckResult.verify|verify} messages. + * @param message PAMUniversalSyncPreCheckResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.IPAMUniversalSyncPreCheckResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for RestoreFolder - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a PAMUniversalSyncPreCheckResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PAMUniversalSyncPreCheckResult + * @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): PAM.PAMUniversalSyncPreCheckResult; - /** Properties of a TrashcanRestoreRequest. */ - interface ITrashcanRestoreRequest { + /** + * Creates a PAMUniversalSyncPreCheckResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PAMUniversalSyncPreCheckResult + */ + public static fromObject(object: { [k: string]: any }): PAM.PAMUniversalSyncPreCheckResult; - /** TrashcanRestoreRequest records */ - records?: (folder.v3.remove.IRestoreRecord[]|null); + /** + * Creates a plain object from a PAMUniversalSyncPreCheckResult message. Also converts values to other types if specified. + * @param message PAMUniversalSyncPreCheckResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.PAMUniversalSyncPreCheckResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TrashcanRestoreRequest folders */ - folders?: (folder.v3.remove.IRestoreFolder[]|null); + /** + * Converts this PAMUniversalSyncPreCheckResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TrashcanRestoreRequest targetFolderUid */ - targetFolderUid?: (Uint8Array|null); - } + /** + * Gets the default type url for PAMUniversalSyncPreCheckResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Represents a TrashcanRestoreRequest. */ - class TrashcanRestoreRequest implements ITrashcanRestoreRequest { + /** Properties of a PAMUniversalSyncPreCheckResponse. */ + interface IPAMUniversalSyncPreCheckResponse { - /** - * Constructs a new TrashcanRestoreRequest. - * @param [properties] Properties to set - */ - constructor(properties?: folder.v3.remove.ITrashcanRestoreRequest); + /** PAMUniversalSyncPreCheckResponse results */ + results?: (PAM.IPAMUniversalSyncPreCheckResult[]|null); + } - /** TrashcanRestoreRequest records. */ - public records: folder.v3.remove.IRestoreRecord[]; + /** Represents a PAMUniversalSyncPreCheckResponse. */ + class PAMUniversalSyncPreCheckResponse implements IPAMUniversalSyncPreCheckResponse { - /** TrashcanRestoreRequest folders. */ - public folders: folder.v3.remove.IRestoreFolder[]; + /** + * Constructs a new PAMUniversalSyncPreCheckResponse. + * @param [properties] Properties to set + */ + constructor(properties?: PAM.IPAMUniversalSyncPreCheckResponse); - /** TrashcanRestoreRequest targetFolderUid. */ - public targetFolderUid: Uint8Array; + /** PAMUniversalSyncPreCheckResponse results. */ + public results: PAM.IPAMUniversalSyncPreCheckResult[]; - /** - * Creates a new TrashcanRestoreRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TrashcanRestoreRequest instance - */ - public static create(properties?: folder.v3.remove.ITrashcanRestoreRequest): folder.v3.remove.TrashcanRestoreRequest; + /** + * Creates a new PAMUniversalSyncPreCheckResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PAMUniversalSyncPreCheckResponse instance + */ + public static create(properties?: PAM.IPAMUniversalSyncPreCheckResponse): PAM.PAMUniversalSyncPreCheckResponse; - /** - * Encodes the specified TrashcanRestoreRequest message. Does not implicitly {@link folder.v3.remove.TrashcanRestoreRequest.verify|verify} messages. - * @param message TrashcanRestoreRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: folder.v3.remove.ITrashcanRestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified PAMUniversalSyncPreCheckResponse message. Does not implicitly {@link PAM.PAMUniversalSyncPreCheckResponse.verify|verify} messages. + * @param message PAMUniversalSyncPreCheckResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: PAM.IPAMUniversalSyncPreCheckResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TrashcanRestoreRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrashcanRestoreRequest - * @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): folder.v3.remove.TrashcanRestoreRequest; + /** + * Decodes a PAMUniversalSyncPreCheckResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PAMUniversalSyncPreCheckResponse + * @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): PAM.PAMUniversalSyncPreCheckResponse; - /** - * Creates a TrashcanRestoreRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrashcanRestoreRequest - */ - public static fromObject(object: { [k: string]: any }): folder.v3.remove.TrashcanRestoreRequest; + /** + * Creates a PAMUniversalSyncPreCheckResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PAMUniversalSyncPreCheckResponse + */ + public static fromObject(object: { [k: string]: any }): PAM.PAMUniversalSyncPreCheckResponse; - /** - * Creates a plain object from a TrashcanRestoreRequest message. Also converts values to other types if specified. - * @param message TrashcanRestoreRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: folder.v3.remove.TrashcanRestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a PAMUniversalSyncPreCheckResponse message. Also converts values to other types if specified. + * @param message PAMUniversalSyncPreCheckResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: PAM.PAMUniversalSyncPreCheckResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this TrashcanRestoreRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this PAMUniversalSyncPreCheckResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for TrashcanRestoreRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Gets the default type url for PAMUniversalSyncPreCheckResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } diff --git a/keeperapi/src/proto/PAM.js b/keeperapi/src/proto/PAM.js index bec67200..c113c794 100644 --- a/keeperapi/src/proto/PAM.js +++ b/keeperapi/src/proto/PAM.js @@ -12438,3 +12438,5 @@ export const PAM = $root.PAM = (() => { return PAM; })(); + +export { $root as default }; diff --git a/keeperapi/src/proto/Remove.js b/keeperapi/src/proto/Remove.js index 8ef56a7f..59586c8c 100644 --- a/keeperapi/src/proto/Remove.js +++ b/keeperapi/src/proto/Remove.js @@ -19,6 +19,1255 @@ export const folder = $root.folder = (() => { */ const v3 = {}; + v3.FolderService = (function() { + + /** + * Constructs a new FolderService service. + * @memberof folder.v3 + * @classdesc RPC service for folder operations. + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function FolderService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (FolderService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = FolderService; + + /** + * Creates new FolderService service using the specified rpc implementation. + * @function create + * @memberof folder.v3.FolderService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {FolderService} RPC service. Useful where requests and/or responses are streamed. + */ + FolderService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link folder.v3.FolderService#getFolderAccess}. + * @memberof folder.v3.FolderService + * @typedef GetFolderAccessCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {folder.v3.GetFolderAccessResponse} [response] GetFolderAccessResponse + */ + + /** + * Retrieve users and teams with access to specified folders. + * Requires can_change_user_permissions permission or Share Admin/MC Admin privileges. + * @function getFolderAccess + * @memberof folder.v3.FolderService + * @instance + * @param {folder.v3.IGetFolderAccessRequest} request GetFolderAccessRequest message or plain object + * @param {folder.v3.FolderService.GetFolderAccessCallback} callback Node-style callback called with the error, if any, and GetFolderAccessResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FolderService.prototype.getFolderAccess = function getFolderAccess(request, callback) { + return $protobuf.rpc.Service.prototype.rpcCall.call(this, getFolderAccess, $root.folder.v3.GetFolderAccessRequest, $root.folder.v3.GetFolderAccessResponse, request, callback); + }, "name", { value: "GetFolderAccess" }); + + /** + * Retrieve users and teams with access to specified folders. + * Requires can_change_user_permissions permission or Share Admin/MC Admin privileges. + * @function getFolderAccess + * @memberof folder.v3.FolderService + * @instance + * @param {folder.v3.IGetFolderAccessRequest} request GetFolderAccessRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return FolderService; + })(); + + v3.GetFolderAccessRequest = (function() { + + /** + * Properties of a GetFolderAccessRequest. + * @memberof folder.v3 + * @interface IGetFolderAccessRequest + * @property {Array.|null} [folderUid] List of folder UIDs to query (max: 100) + * @property {folder.v3.IContinuationToken|null} [continuationToken] Continuation token for pagination. + * Contains the last_modified timestamp from the previous page. + * Omit for the first page. + * @property {number|null} [pageSize] Maximum number of accessors to return per page. + * Default: 100, Max: 1000 + */ + + /** + * Constructs a new GetFolderAccessRequest. + * @memberof folder.v3 + * @classdesc Request to retrieve folder accessors (users and teams with access to folders). + * Supports cursor-based pagination using last_modified timestamps. + * @implements IGetFolderAccessRequest + * @constructor + * @param {folder.v3.IGetFolderAccessRequest=} [properties] Properties to set + */ + function GetFolderAccessRequest(properties) { + this.folderUid = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null && keys[i] !== "__proto__") + this[keys[i]] = properties[keys[i]]; + } + + /** + * List of folder UIDs to query (max: 100) + * @member {Array.} folderUid + * @memberof folder.v3.GetFolderAccessRequest + * @instance + */ + GetFolderAccessRequest.prototype.folderUid = $util.emptyArray; + + /** + * Continuation token for pagination. + * Contains the last_modified timestamp from the previous page. + * Omit for the first page. + * @member {folder.v3.IContinuationToken|null|undefined} continuationToken + * @memberof folder.v3.GetFolderAccessRequest + * @instance + */ + GetFolderAccessRequest.prototype.continuationToken = null; + + /** + * Maximum number of accessors to return per page. + * Default: 100, Max: 1000 + * @member {number|null|undefined} pageSize + * @memberof folder.v3.GetFolderAccessRequest + * @instance + */ + GetFolderAccessRequest.prototype.pageSize = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetFolderAccessRequest.prototype, "_continuationToken", { + get: $util.oneOfGetter($oneOfFields = ["continuationToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetFolderAccessRequest.prototype, "_pageSize", { + get: $util.oneOfGetter($oneOfFields = ["pageSize"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetFolderAccessRequest instance using the specified properties. + * @function create + * @memberof folder.v3.GetFolderAccessRequest + * @static + * @param {folder.v3.IGetFolderAccessRequest=} [properties] Properties to set + * @returns {folder.v3.GetFolderAccessRequest} GetFolderAccessRequest instance + */ + GetFolderAccessRequest.create = function create(properties) { + return new GetFolderAccessRequest(properties); + }; + + /** + * Encodes the specified GetFolderAccessRequest message. Does not implicitly {@link folder.v3.GetFolderAccessRequest.verify|verify} messages. + * @function encode + * @memberof folder.v3.GetFolderAccessRequest + * @static + * @param {folder.v3.IGetFolderAccessRequest} message GetFolderAccessRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFolderAccessRequest.encode = function encode(message, writer, q) { + if (!writer) + writer = $Writer.create(); + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + if (message.folderUid != null && message.folderUid.length) + for (let i = 0; i < message.folderUid.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid[i]); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) + $root.folder.v3.ContinuationToken.encode(message.continuationToken, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + return writer; + }; + + /** + * Decodes a GetFolderAccessRequest message from the specified reader or buffer. + * @function decode + * @memberof folder.v3.GetFolderAccessRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {folder.v3.GetFolderAccessRequest} GetFolderAccessRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFolderAccessRequest.decode = function decode(reader, length, error, long) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + if (long === undefined) + long = 0; + if (long > $Reader.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.folder.v3.GetFolderAccessRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + if (!(message.folderUid && message.folderUid.length)) + message.folderUid = []; + message.folderUid.push(reader.bytes()); + break; + } + case 2: { + message.continuationToken = $root.folder.v3.ContinuationToken.decode(reader, reader.uint32(), undefined, long + 1); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + default: + reader.skipType(tag & 7, long); + break; + } + } + return message; + }; + + /** + * Creates a GetFolderAccessRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof folder.v3.GetFolderAccessRequest + * @static + * @param {Object.} object Plain object + * @returns {folder.v3.GetFolderAccessRequest} GetFolderAccessRequest + */ + GetFolderAccessRequest.fromObject = function fromObject(object, long) { + if (object instanceof $root.folder.v3.GetFolderAccessRequest) + return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.GetFolderAccessRequest: object expected"); + if (long === undefined) + long = 0; + if (long > $util.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let message = new $root.folder.v3.GetFolderAccessRequest(); + if (object.folderUid) { + if (!Array.isArray(object.folderUid)) + throw TypeError(".folder.v3.GetFolderAccessRequest.folderUid: array expected"); + message.folderUid = []; + for (let i = 0; i < object.folderUid.length; ++i) + if (typeof object.folderUid[i] === "string") + $util.base64.decode(object.folderUid[i], message.folderUid[i] = $util.newBuffer($util.base64.length(object.folderUid[i])), 0); + else if (object.folderUid[i].length >= 0) + message.folderUid[i] = object.folderUid[i]; + } + if (object.continuationToken != null) { + if (!$util.isObject(object.continuationToken)) + throw TypeError(".folder.v3.GetFolderAccessRequest.continuationToken: object expected"); + message.continuationToken = $root.folder.v3.ContinuationToken.fromObject(object.continuationToken, long + 1); + } + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + return message; + }; + + /** + * Creates a plain object from a GetFolderAccessRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof folder.v3.GetFolderAccessRequest + * @static + * @param {folder.v3.GetFolderAccessRequest} message GetFolderAccessRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetFolderAccessRequest.toObject = function toObject(message, options, q) { + if (!options) + options = {}; + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + let object = {}; + if (options.arrays || options.defaults) + object.folderUid = []; + if (message.folderUid && message.folderUid.length) { + object.folderUid = []; + for (let j = 0; j < message.folderUid.length; ++j) + object.folderUid[j] = options.bytes === String ? $util.base64.encode(message.folderUid[j], 0, message.folderUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid[j]) : message.folderUid[j]; + } + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) { + object.continuationToken = $root.folder.v3.ContinuationToken.toObject(message.continuationToken, options, q + 1); + if (options.oneofs) + object._continuationToken = "continuationToken"; + } + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) { + object.pageSize = message.pageSize; + if (options.oneofs) + object._pageSize = "pageSize"; + } + return object; + }; + + /** + * Converts this GetFolderAccessRequest to JSON. + * @function toJSON + * @memberof folder.v3.GetFolderAccessRequest + * @instance + * @returns {Object.} JSON object + */ + GetFolderAccessRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetFolderAccessRequest + * @function getTypeUrl + * @memberof folder.v3.GetFolderAccessRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetFolderAccessRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/folder.v3.GetFolderAccessRequest"; + }; + + return GetFolderAccessRequest; + })(); + + v3.GetFolderAccessResponse = (function() { + + /** + * Properties of a GetFolderAccessResponse. + * @memberof folder.v3 + * @interface IGetFolderAccessResponse + * @property {Array.|null} [folderAccessResults] Per-folder results (either success with accessors or error) + * @property {folder.v3.IContinuationToken|null} [continuationToken] Continuation token for the next page (only present if hasMore is true) + * @property {boolean|null} [hasMore] True if more results exist beyond this page + */ + + /** + * Constructs a new GetFolderAccessResponse. + * @memberof folder.v3 + * @classdesc Response containing folder accessors with pagination support. + * @implements IGetFolderAccessResponse + * @constructor + * @param {folder.v3.IGetFolderAccessResponse=} [properties] Properties to set + */ + function GetFolderAccessResponse(properties) { + this.folderAccessResults = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null && keys[i] !== "__proto__") + this[keys[i]] = properties[keys[i]]; + } + + /** + * Per-folder results (either success with accessors or error) + * @member {Array.} folderAccessResults + * @memberof folder.v3.GetFolderAccessResponse + * @instance + */ + GetFolderAccessResponse.prototype.folderAccessResults = $util.emptyArray; + + /** + * Continuation token for the next page (only present if hasMore is true) + * @member {folder.v3.IContinuationToken|null|undefined} continuationToken + * @memberof folder.v3.GetFolderAccessResponse + * @instance + */ + GetFolderAccessResponse.prototype.continuationToken = null; + + /** + * True if more results exist beyond this page + * @member {boolean} hasMore + * @memberof folder.v3.GetFolderAccessResponse + * @instance + */ + GetFolderAccessResponse.prototype.hasMore = false; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetFolderAccessResponse.prototype, "_continuationToken", { + get: $util.oneOfGetter($oneOfFields = ["continuationToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetFolderAccessResponse instance using the specified properties. + * @function create + * @memberof folder.v3.GetFolderAccessResponse + * @static + * @param {folder.v3.IGetFolderAccessResponse=} [properties] Properties to set + * @returns {folder.v3.GetFolderAccessResponse} GetFolderAccessResponse instance + */ + GetFolderAccessResponse.create = function create(properties) { + return new GetFolderAccessResponse(properties); + }; + + /** + * Encodes the specified GetFolderAccessResponse message. Does not implicitly {@link folder.v3.GetFolderAccessResponse.verify|verify} messages. + * @function encode + * @memberof folder.v3.GetFolderAccessResponse + * @static + * @param {folder.v3.IGetFolderAccessResponse} message GetFolderAccessResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFolderAccessResponse.encode = function encode(message, writer, q) { + if (!writer) + writer = $Writer.create(); + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + if (message.folderAccessResults != null && message.folderAccessResults.length) + for (let i = 0; i < message.folderAccessResults.length; ++i) + $root.folder.v3.GetFolderAccessResult.encode(message.folderAccessResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) + $root.folder.v3.ContinuationToken.encode(message.continuationToken, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.hasMore); + return writer; + }; + + /** + * Decodes a GetFolderAccessResponse message from the specified reader or buffer. + * @function decode + * @memberof folder.v3.GetFolderAccessResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {folder.v3.GetFolderAccessResponse} GetFolderAccessResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFolderAccessResponse.decode = function decode(reader, length, error, long) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + if (long === undefined) + long = 0; + if (long > $Reader.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.folder.v3.GetFolderAccessResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + if (!(message.folderAccessResults && message.folderAccessResults.length)) + message.folderAccessResults = []; + message.folderAccessResults.push($root.folder.v3.GetFolderAccessResult.decode(reader, reader.uint32(), undefined, long + 1)); + break; + } + case 2: { + message.continuationToken = $root.folder.v3.ContinuationToken.decode(reader, reader.uint32(), undefined, long + 1); + break; + } + case 3: { + message.hasMore = reader.bool(); + break; + } + default: + reader.skipType(tag & 7, long); + break; + } + } + return message; + }; + + /** + * Creates a GetFolderAccessResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof folder.v3.GetFolderAccessResponse + * @static + * @param {Object.} object Plain object + * @returns {folder.v3.GetFolderAccessResponse} GetFolderAccessResponse + */ + GetFolderAccessResponse.fromObject = function fromObject(object, long) { + if (object instanceof $root.folder.v3.GetFolderAccessResponse) + return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.GetFolderAccessResponse: object expected"); + if (long === undefined) + long = 0; + if (long > $util.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let message = new $root.folder.v3.GetFolderAccessResponse(); + if (object.folderAccessResults) { + if (!Array.isArray(object.folderAccessResults)) + throw TypeError(".folder.v3.GetFolderAccessResponse.folderAccessResults: array expected"); + message.folderAccessResults = []; + for (let i = 0; i < object.folderAccessResults.length; ++i) { + if (!$util.isObject(object.folderAccessResults[i])) + throw TypeError(".folder.v3.GetFolderAccessResponse.folderAccessResults: object expected"); + message.folderAccessResults[i] = $root.folder.v3.GetFolderAccessResult.fromObject(object.folderAccessResults[i], long + 1); + } + } + if (object.continuationToken != null) { + if (!$util.isObject(object.continuationToken)) + throw TypeError(".folder.v3.GetFolderAccessResponse.continuationToken: object expected"); + message.continuationToken = $root.folder.v3.ContinuationToken.fromObject(object.continuationToken, long + 1); + } + if (object.hasMore != null) + message.hasMore = Boolean(object.hasMore); + return message; + }; + + /** + * Creates a plain object from a GetFolderAccessResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof folder.v3.GetFolderAccessResponse + * @static + * @param {folder.v3.GetFolderAccessResponse} message GetFolderAccessResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetFolderAccessResponse.toObject = function toObject(message, options, q) { + if (!options) + options = {}; + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + let object = {}; + if (options.arrays || options.defaults) + object.folderAccessResults = []; + if (options.defaults) + object.hasMore = false; + if (message.folderAccessResults && message.folderAccessResults.length) { + object.folderAccessResults = []; + for (let j = 0; j < message.folderAccessResults.length; ++j) + object.folderAccessResults[j] = $root.folder.v3.GetFolderAccessResult.toObject(message.folderAccessResults[j], options, q + 1); + } + if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) { + object.continuationToken = $root.folder.v3.ContinuationToken.toObject(message.continuationToken, options, q + 1); + if (options.oneofs) + object._continuationToken = "continuationToken"; + } + if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) + object.hasMore = message.hasMore; + return object; + }; + + /** + * Converts this GetFolderAccessResponse to JSON. + * @function toJSON + * @memberof folder.v3.GetFolderAccessResponse + * @instance + * @returns {Object.} JSON object + */ + GetFolderAccessResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetFolderAccessResponse + * @function getTypeUrl + * @memberof folder.v3.GetFolderAccessResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetFolderAccessResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/folder.v3.GetFolderAccessResponse"; + }; + + return GetFolderAccessResponse; + })(); + + v3.ContinuationToken = (function() { + + /** + * Properties of a ContinuationToken. + * @memberof folder.v3 + * @interface IContinuationToken + * @property {number|null} [lastModified] Unix timestamp in milliseconds of the last processed accessor + */ + + /** + * Constructs a new ContinuationToken. + * @memberof folder.v3 + * @classdesc Cursor for cursor-based pagination. + * Contains the timestamp of the last processed item. + * @implements IContinuationToken + * @constructor + * @param {folder.v3.IContinuationToken=} [properties] Properties to set + */ + function ContinuationToken(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null && keys[i] !== "__proto__") + this[keys[i]] = properties[keys[i]]; + } + + /** + * Unix timestamp in milliseconds of the last processed accessor + * @member {number} lastModified + * @memberof folder.v3.ContinuationToken + * @instance + */ + ContinuationToken.prototype.lastModified = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new ContinuationToken instance using the specified properties. + * @function create + * @memberof folder.v3.ContinuationToken + * @static + * @param {folder.v3.IContinuationToken=} [properties] Properties to set + * @returns {folder.v3.ContinuationToken} ContinuationToken instance + */ + ContinuationToken.create = function create(properties) { + return new ContinuationToken(properties); + }; + + /** + * Encodes the specified ContinuationToken message. Does not implicitly {@link folder.v3.ContinuationToken.verify|verify} messages. + * @function encode + * @memberof folder.v3.ContinuationToken + * @static + * @param {folder.v3.IContinuationToken} message ContinuationToken message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContinuationToken.encode = function encode(message, writer, q) { + if (!writer) + writer = $Writer.create(); + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.lastModified); + return writer; + }; + + /** + * Decodes a ContinuationToken message from the specified reader or buffer. + * @function decode + * @memberof folder.v3.ContinuationToken + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {folder.v3.ContinuationToken} ContinuationToken + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContinuationToken.decode = function decode(reader, length, error, long) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + if (long === undefined) + long = 0; + if (long > $Reader.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.folder.v3.ContinuationToken(); + while (reader.pos < end) { + let tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.lastModified = reader.int64(); + break; + } + default: + reader.skipType(tag & 7, long); + break; + } + } + return message; + }; + + /** + * Creates a ContinuationToken message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof folder.v3.ContinuationToken + * @static + * @param {Object.} object Plain object + * @returns {folder.v3.ContinuationToken} ContinuationToken + */ + ContinuationToken.fromObject = function fromObject(object, long) { + if (object instanceof $root.folder.v3.ContinuationToken) + return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.ContinuationToken: object expected"); + if (long === undefined) + long = 0; + if (long > $util.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let message = new $root.folder.v3.ContinuationToken(); + if (object.lastModified != null) + if ($util.Long) + message.lastModified = $util.Long.fromValue(object.lastModified, false); + else if (typeof object.lastModified === "string") + message.lastModified = parseInt(object.lastModified, 10); + else if (typeof object.lastModified === "number") + message.lastModified = object.lastModified; + else if (typeof object.lastModified === "object") + message.lastModified = new $util.LongBits(object.lastModified.low >>> 0, object.lastModified.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a ContinuationToken message. Also converts values to other types if specified. + * @function toObject + * @memberof folder.v3.ContinuationToken + * @static + * @param {folder.v3.ContinuationToken} message ContinuationToken + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ContinuationToken.toObject = function toObject(message, options, q) { + if (!options) + options = {}; + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + let object = {}; + if (options.defaults) + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + } else + object.lastModified = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) + if (typeof BigInt !== "undefined" && options.longs === BigInt) + object.lastModified = typeof message.lastModified === "number" ? BigInt(message.lastModified) : $util.Long.fromBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0, false).toBigInt(); + else if (typeof message.lastModified === "number") + object.lastModified = options.longs === String ? String(message.lastModified) : message.lastModified; + else + object.lastModified = options.longs === String ? $util.Long.prototype.toString.call(message.lastModified) : options.longs === Number ? new $util.LongBits(message.lastModified.low >>> 0, message.lastModified.high >>> 0).toNumber() : message.lastModified; + return object; + }; + + /** + * Converts this ContinuationToken to JSON. + * @function toJSON + * @memberof folder.v3.ContinuationToken + * @instance + * @returns {Object.} JSON object + */ + ContinuationToken.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ContinuationToken + * @function getTypeUrl + * @memberof folder.v3.ContinuationToken + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ContinuationToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/folder.v3.ContinuationToken"; + }; + + return ContinuationToken; + })(); + + v3.GetFolderAccessResult = (function() { + + /** + * Properties of a GetFolderAccessResult. + * @memberof folder.v3 + * @interface IGetFolderAccessResult + * @property {Uint8Array|null} [folderUid] Folder UID this result applies to + * @property {Array.|null} [accessors] List of users/teams with access to this folder (populated on success) + * @property {folder.v3.IFolderAccessError|null} [error] Error information (populated on failure, mutually exclusive with accessors) + */ + + /** + * Constructs a new GetFolderAccessResult. + * @memberof folder.v3 + * @classdesc Result for a single folder. + * Contains either a list of accessors (success) or an error (failure). + * @implements IGetFolderAccessResult + * @constructor + * @param {folder.v3.IGetFolderAccessResult=} [properties] Properties to set + */ + function GetFolderAccessResult(properties) { + this.accessors = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null && keys[i] !== "__proto__") + this[keys[i]] = properties[keys[i]]; + } + + /** + * Folder UID this result applies to + * @member {Uint8Array} folderUid + * @memberof folder.v3.GetFolderAccessResult + * @instance + */ + GetFolderAccessResult.prototype.folderUid = $util.newBuffer([]); + + /** + * List of users/teams with access to this folder (populated on success) + * @member {Array.} accessors + * @memberof folder.v3.GetFolderAccessResult + * @instance + */ + GetFolderAccessResult.prototype.accessors = $util.emptyArray; + + /** + * Error information (populated on failure, mutually exclusive with accessors) + * @member {folder.v3.IFolderAccessError|null|undefined} error + * @memberof folder.v3.GetFolderAccessResult + * @instance + */ + GetFolderAccessResult.prototype.error = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetFolderAccessResult.prototype, "_error", { + get: $util.oneOfGetter($oneOfFields = ["error"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetFolderAccessResult instance using the specified properties. + * @function create + * @memberof folder.v3.GetFolderAccessResult + * @static + * @param {folder.v3.IGetFolderAccessResult=} [properties] Properties to set + * @returns {folder.v3.GetFolderAccessResult} GetFolderAccessResult instance + */ + GetFolderAccessResult.create = function create(properties) { + return new GetFolderAccessResult(properties); + }; + + /** + * Encodes the specified GetFolderAccessResult message. Does not implicitly {@link folder.v3.GetFolderAccessResult.verify|verify} messages. + * @function encode + * @memberof folder.v3.GetFolderAccessResult + * @static + * @param {folder.v3.IGetFolderAccessResult} message GetFolderAccessResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFolderAccessResult.encode = function encode(message, writer, q) { + if (!writer) + writer = $Writer.create(); + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (message.accessors != null && message.accessors.length) + for (let i = 0; i < message.accessors.length; ++i) + $root.Folder.FolderAccessData.encode(message.accessors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.folder.v3.FolderAccessError.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + return writer; + }; + + /** + * Decodes a GetFolderAccessResult message from the specified reader or buffer. + * @function decode + * @memberof folder.v3.GetFolderAccessResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {folder.v3.GetFolderAccessResult} GetFolderAccessResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFolderAccessResult.decode = function decode(reader, length, error, long) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + if (long === undefined) + long = 0; + if (long > $Reader.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.folder.v3.GetFolderAccessResult(); + while (reader.pos < end) { + let tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.folderUid = reader.bytes(); + break; + } + case 2: { + if (!(message.accessors && message.accessors.length)) + message.accessors = []; + message.accessors.push($root.Folder.FolderAccessData.decode(reader, reader.uint32(), undefined, long + 1)); + break; + } + case 3: { + message.error = $root.folder.v3.FolderAccessError.decode(reader, reader.uint32(), undefined, long + 1); + break; + } + default: + reader.skipType(tag & 7, long); + break; + } + } + return message; + }; + + /** + * Creates a GetFolderAccessResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof folder.v3.GetFolderAccessResult + * @static + * @param {Object.} object Plain object + * @returns {folder.v3.GetFolderAccessResult} GetFolderAccessResult + */ + GetFolderAccessResult.fromObject = function fromObject(object, long) { + if (object instanceof $root.folder.v3.GetFolderAccessResult) + return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.GetFolderAccessResult: object expected"); + if (long === undefined) + long = 0; + if (long > $util.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let message = new $root.folder.v3.GetFolderAccessResult(); + if (object.folderUid != null) + if (typeof object.folderUid === "string") + $util.base64.decode(object.folderUid, message.folderUid = $util.newBuffer($util.base64.length(object.folderUid)), 0); + else if (object.folderUid.length >= 0) + message.folderUid = object.folderUid; + if (object.accessors) { + if (!Array.isArray(object.accessors)) + throw TypeError(".folder.v3.GetFolderAccessResult.accessors: array expected"); + message.accessors = []; + for (let i = 0; i < object.accessors.length; ++i) { + if (!$util.isObject(object.accessors[i])) + throw TypeError(".folder.v3.GetFolderAccessResult.accessors: object expected"); + message.accessors[i] = $root.Folder.FolderAccessData.fromObject(object.accessors[i], long + 1); + } + } + if (object.error != null) { + if (!$util.isObject(object.error)) + throw TypeError(".folder.v3.GetFolderAccessResult.error: object expected"); + message.error = $root.folder.v3.FolderAccessError.fromObject(object.error, long + 1); + } + return message; + }; + + /** + * Creates a plain object from a GetFolderAccessResult message. Also converts values to other types if specified. + * @function toObject + * @memberof folder.v3.GetFolderAccessResult + * @static + * @param {folder.v3.GetFolderAccessResult} message GetFolderAccessResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetFolderAccessResult.toObject = function toObject(message, options, q) { + if (!options) + options = {}; + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + let object = {}; + if (options.arrays || options.defaults) + object.accessors = []; + if (options.defaults) + if (options.bytes === String) + object.folderUid = ""; + else { + object.folderUid = []; + if (options.bytes !== Array) + object.folderUid = $util.newBuffer(object.folderUid); + } + if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) + object.folderUid = options.bytes === String ? $util.base64.encode(message.folderUid, 0, message.folderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderUid) : message.folderUid; + if (message.accessors && message.accessors.length) { + object.accessors = []; + for (let j = 0; j < message.accessors.length; ++j) + object.accessors[j] = $root.Folder.FolderAccessData.toObject(message.accessors[j], options, q + 1); + } + if (message.error != null && Object.hasOwnProperty.call(message, "error")) { + object.error = $root.folder.v3.FolderAccessError.toObject(message.error, options, q + 1); + if (options.oneofs) + object._error = "error"; + } + return object; + }; + + /** + * Converts this GetFolderAccessResult to JSON. + * @function toJSON + * @memberof folder.v3.GetFolderAccessResult + * @instance + * @returns {Object.} JSON object + */ + GetFolderAccessResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetFolderAccessResult + * @function getTypeUrl + * @memberof folder.v3.GetFolderAccessResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetFolderAccessResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/folder.v3.GetFolderAccessResult"; + }; + + return GetFolderAccessResult; + })(); + + v3.FolderAccessError = (function() { + + /** + * Properties of a FolderAccessError. + * @memberof folder.v3 + * @interface IFolderAccessError + * @property {Folder.FolderModifyStatus|null} [status] Status code (e.g., NOT_FOUND, ACCESS_DENIED) + * @property {string|null} [message] Human-readable error message + */ + + /** + * Constructs a new FolderAccessError. + * @memberof folder.v3 + * @classdesc Error information for a folder that couldn't be processed. + * @implements IFolderAccessError + * @constructor + * @param {folder.v3.IFolderAccessError=} [properties] Properties to set + */ + function FolderAccessError(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null && keys[i] !== "__proto__") + this[keys[i]] = properties[keys[i]]; + } + + /** + * Status code (e.g., NOT_FOUND, ACCESS_DENIED) + * @member {Folder.FolderModifyStatus} status + * @memberof folder.v3.FolderAccessError + * @instance + */ + FolderAccessError.prototype.status = 0; + + /** + * Human-readable error message + * @member {string} message + * @memberof folder.v3.FolderAccessError + * @instance + */ + FolderAccessError.prototype.message = ""; + + /** + * Creates a new FolderAccessError instance using the specified properties. + * @function create + * @memberof folder.v3.FolderAccessError + * @static + * @param {folder.v3.IFolderAccessError=} [properties] Properties to set + * @returns {folder.v3.FolderAccessError} FolderAccessError instance + */ + FolderAccessError.create = function create(properties) { + return new FolderAccessError(properties); + }; + + /** + * Encodes the specified FolderAccessError message. Does not implicitly {@link folder.v3.FolderAccessError.verify|verify} messages. + * @function encode + * @memberof folder.v3.FolderAccessError + * @static + * @param {folder.v3.IFolderAccessError} message FolderAccessError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FolderAccessError.encode = function encode(message, writer, q) { + if (!writer) + writer = $Writer.create(); + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + return writer; + }; + + /** + * Decodes a FolderAccessError message from the specified reader or buffer. + * @function decode + * @memberof folder.v3.FolderAccessError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {folder.v3.FolderAccessError} FolderAccessError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FolderAccessError.decode = function decode(reader, length, error, long) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + if (long === undefined) + long = 0; + if (long > $Reader.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.folder.v3.FolderAccessError(); + while (reader.pos < end) { + let tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.status = reader.int32(); + break; + } + case 2: { + message.message = reader.string(); + break; + } + default: + reader.skipType(tag & 7, long); + break; + } + } + return message; + }; + + /** + * Creates a FolderAccessError message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof folder.v3.FolderAccessError + * @static + * @param {Object.} object Plain object + * @returns {folder.v3.FolderAccessError} FolderAccessError + */ + FolderAccessError.fromObject = function fromObject(object, long) { + if (object instanceof $root.folder.v3.FolderAccessError) + return object; + if (!$util.isObject(object)) + throw TypeError(".folder.v3.FolderAccessError: object expected"); + if (long === undefined) + long = 0; + if (long > $util.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let message = new $root.folder.v3.FolderAccessError(); + switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; + case "SUCCESS": + case 0: + message.status = 0; + break; + case "BAD_REQUEST": + case 1: + message.status = 1; + break; + case "ACCESS_DENIED": + case 2: + message.status = 2; + break; + case "NOT_FOUND": + case 3: + message.status = 3; + break; + } + if (object.message != null) + message.message = String(object.message); + return message; + }; + + /** + * Creates a plain object from a FolderAccessError message. Also converts values to other types if specified. + * @function toObject + * @memberof folder.v3.FolderAccessError + * @static + * @param {folder.v3.FolderAccessError} message FolderAccessError + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FolderAccessError.toObject = function toObject(message, options, q) { + if (!options) + options = {}; + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + let object = {}; + if (options.defaults) { + object.status = options.enums === String ? "SUCCESS" : 0; + object.message = ""; + } + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + object.status = options.enums === String ? $root.Folder.FolderModifyStatus[message.status] === undefined ? message.status : $root.Folder.FolderModifyStatus[message.status] : message.status; + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + object.message = message.message; + return object; + }; + + /** + * Converts this FolderAccessError to JSON. + * @function toJSON + * @memberof folder.v3.FolderAccessError + * @instance + * @returns {Object.} JSON object + */ + FolderAccessError.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FolderAccessError + * @function getTypeUrl + * @memberof folder.v3.FolderAccessError + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FolderAccessError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/folder.v3.FolderAccessError"; + }; + + return FolderAccessError; + })(); + v3.remove = (function() { /** @@ -4943,5 +6192,3 @@ export const folder = $root.folder = (() => { return folder; })(); - -export { $root as default }; diff --git a/keeperapi/src/proto/index.js b/keeperapi/src/proto/index.js index 82a3b393..f9022c47 100644 --- a/keeperapi/src/proto/index.js +++ b/keeperapi/src/proto/index.js @@ -10,16 +10,17 @@ export { SemanticVersion } from './SemanticVersion.js'; export { BreachWatch } from './BreachWatch.js'; export { Tokens } from './Tokens.js'; export { ExternalService } from './ExternalService.js'; +export { folder } from './Remove.js'; export { Push } from './Push.js'; +export { record } from './record.js'; +export { keeper } from './keeper.js'; export { ServiceLogger } from './ServiceLogger.js'; export { Vault } from './Vault.js'; export { NotificationCenter } from './NotificationCenter.js'; export { GraphSync } from './GraphSync.js'; export { Dag } from './Dag.js'; -export { record } from './record.js'; export { Upsell } from './Upsell.js'; export { BI } from './BI.js'; export { google } from './google.js'; export { Router } from './Router.js'; export { PAM } from './PAM.js'; -export { folder } from './Remove.js'; diff --git a/keeperapi/src/proto/keeper.js b/keeperapi/src/proto/keeper.js new file mode 100644 index 00000000..45001b17 --- /dev/null +++ b/keeperapi/src/proto/keeper.js @@ -0,0 +1,520 @@ +/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ +import { $protobuf, $Reader, $Writer, $util, $root } from './root.js'; + +export const keeper = $root.keeper = (() => { + + /** + * Namespace keeper. + * @exports keeper + * @namespace + */ + const keeper = {}; + + keeper.api = (function() { + + /** + * Namespace api. + * @memberof keeper + * @namespace + */ + const api = {}; + + api.common = (function() { + + /** + * Namespace common. + * @memberof keeper.api + * @namespace + */ + const common = {}; + + common.Page = (function() { + + /** + * Properties of a Page. + * @memberof keeper.api.common + * @interface IPage + * @property {number|null} [pageNumber] Zero-indexed page number. + * Default: 0 (first page) + * @property {number|null} [pageSize] Number of items per page. + * @property {string|null} [cursorToken] Use as cursor to the next page. + */ + + /** + * Constructs a new Page. + * @memberof keeper.api.common + * @classdesc Pagination parameters for paginated requests. + * Used to specify which page of results to retrieve. + * @implements IPage + * @constructor + * @param {keeper.api.common.IPage=} [properties] Properties to set + */ + function Page(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null && keys[i] !== "__proto__") + this[keys[i]] = properties[keys[i]]; + } + + /** + * Zero-indexed page number. + * Default: 0 (first page) + * @member {number} pageNumber + * @memberof keeper.api.common.Page + * @instance + */ + Page.prototype.pageNumber = 0; + + /** + * Number of items per page. + * @member {number} pageSize + * @memberof keeper.api.common.Page + * @instance + */ + Page.prototype.pageSize = 0; + + /** + * Use as cursor to the next page. + * @member {string} cursorToken + * @memberof keeper.api.common.Page + * @instance + */ + Page.prototype.cursorToken = ""; + + /** + * Creates a new Page instance using the specified properties. + * @function create + * @memberof keeper.api.common.Page + * @static + * @param {keeper.api.common.IPage=} [properties] Properties to set + * @returns {keeper.api.common.Page} Page instance + */ + Page.create = function create(properties) { + return new Page(properties); + }; + + /** + * Encodes the specified Page message. Does not implicitly {@link keeper.api.common.Page.verify|verify} messages. + * @function encode + * @memberof keeper.api.common.Page + * @static + * @param {keeper.api.common.IPage} message Page message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Page.encode = function encode(message, writer, q) { + if (!writer) + writer = $Writer.create(); + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + if (message.pageNumber != null && Object.hasOwnProperty.call(message, "pageNumber")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.pageNumber); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.cursorToken != null && Object.hasOwnProperty.call(message, "cursorToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.cursorToken); + return writer; + }; + + /** + * Decodes a Page message from the specified reader or buffer. + * @function decode + * @memberof keeper.api.common.Page + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {keeper.api.common.Page} Page + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Page.decode = function decode(reader, length, error, long) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + if (long === undefined) + long = 0; + if (long > $Reader.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.keeper.api.common.Page(); + while (reader.pos < end) { + let tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.pageNumber = reader.int32(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.cursorToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7, long); + break; + } + } + return message; + }; + + /** + * Creates a Page message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof keeper.api.common.Page + * @static + * @param {Object.} object Plain object + * @returns {keeper.api.common.Page} Page + */ + Page.fromObject = function fromObject(object, long) { + if (object instanceof $root.keeper.api.common.Page) + return object; + if (!$util.isObject(object)) + throw TypeError(".keeper.api.common.Page: object expected"); + if (long === undefined) + long = 0; + if (long > $util.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let message = new $root.keeper.api.common.Page(); + if (object.pageNumber != null) + message.pageNumber = object.pageNumber | 0; + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.cursorToken != null) + message.cursorToken = String(object.cursorToken); + return message; + }; + + /** + * Creates a plain object from a Page message. Also converts values to other types if specified. + * @function toObject + * @memberof keeper.api.common.Page + * @static + * @param {keeper.api.common.Page} message Page + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Page.toObject = function toObject(message, options, q) { + if (!options) + options = {}; + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + let object = {}; + if (options.defaults) { + object.pageNumber = 0; + object.pageSize = 0; + object.cursorToken = ""; + } + if (message.pageNumber != null && Object.hasOwnProperty.call(message, "pageNumber")) + object.pageNumber = message.pageNumber; + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + object.pageSize = message.pageSize; + if (message.cursorToken != null && Object.hasOwnProperty.call(message, "cursorToken")) + object.cursorToken = message.cursorToken; + return object; + }; + + /** + * Converts this Page to JSON. + * @function toJSON + * @memberof keeper.api.common.Page + * @instance + * @returns {Object.} JSON object + */ + Page.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Page + * @function getTypeUrl + * @memberof keeper.api.common.Page + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Page.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/keeper.api.common.Page"; + }; + + return Page; + })(); + + common.PageInfo = (function() { + + /** + * Properties of a PageInfo. + * @memberof keeper.api.common + * @interface IPageInfo + * @property {number|null} [pageNumber] Current page number (zero-indexed). + * @property {number|null} [pageSize] Number of items per page. + * @property {number|null} [totalCount] Total number of items available across all pages. + * @property {boolean|null} [hasMore] Indicates whether more pages are available. + * True if (page_number + 1) * page_size < total_count + * @property {string|null} [cursorToken] Use as cursor to the next page. + */ + + /** + * Constructs a new PageInfo. + * @memberof keeper.api.common + * @classdesc Pagination metadata included in paginated responses. + * Provides information about the current page and total available items. + * @implements IPageInfo + * @constructor + * @param {keeper.api.common.IPageInfo=} [properties] Properties to set + */ + function PageInfo(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null && keys[i] !== "__proto__") + this[keys[i]] = properties[keys[i]]; + } + + /** + * Current page number (zero-indexed). + * @member {number} pageNumber + * @memberof keeper.api.common.PageInfo + * @instance + */ + PageInfo.prototype.pageNumber = 0; + + /** + * Number of items per page. + * @member {number} pageSize + * @memberof keeper.api.common.PageInfo + * @instance + */ + PageInfo.prototype.pageSize = 0; + + /** + * Total number of items available across all pages. + * @member {number} totalCount + * @memberof keeper.api.common.PageInfo + * @instance + */ + PageInfo.prototype.totalCount = 0; + + /** + * Indicates whether more pages are available. + * True if (page_number + 1) * page_size < total_count + * @member {boolean} hasMore + * @memberof keeper.api.common.PageInfo + * @instance + */ + PageInfo.prototype.hasMore = false; + + /** + * Use as cursor to the next page. + * @member {string} cursorToken + * @memberof keeper.api.common.PageInfo + * @instance + */ + PageInfo.prototype.cursorToken = ""; + + /** + * Creates a new PageInfo instance using the specified properties. + * @function create + * @memberof keeper.api.common.PageInfo + * @static + * @param {keeper.api.common.IPageInfo=} [properties] Properties to set + * @returns {keeper.api.common.PageInfo} PageInfo instance + */ + PageInfo.create = function create(properties) { + return new PageInfo(properties); + }; + + /** + * Encodes the specified PageInfo message. Does not implicitly {@link keeper.api.common.PageInfo.verify|verify} messages. + * @function encode + * @memberof keeper.api.common.PageInfo + * @static + * @param {keeper.api.common.IPageInfo} message PageInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PageInfo.encode = function encode(message, writer, q) { + if (!writer) + writer = $Writer.create(); + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + if (message.pageNumber != null && Object.hasOwnProperty.call(message, "pageNumber")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.pageNumber); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.totalCount != null && Object.hasOwnProperty.call(message, "totalCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.totalCount); + if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.hasMore); + if (message.cursorToken != null && Object.hasOwnProperty.call(message, "cursorToken")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.cursorToken); + return writer; + }; + + /** + * Decodes a PageInfo message from the specified reader or buffer. + * @function decode + * @memberof keeper.api.common.PageInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {keeper.api.common.PageInfo} PageInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PageInfo.decode = function decode(reader, length, error, long) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + if (long === undefined) + long = 0; + if (long > $Reader.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.keeper.api.common.PageInfo(); + while (reader.pos < end) { + let tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.pageNumber = reader.int32(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.totalCount = reader.int32(); + break; + } + case 4: { + message.hasMore = reader.bool(); + break; + } + case 5: { + message.cursorToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7, long); + break; + } + } + return message; + }; + + /** + * Creates a PageInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof keeper.api.common.PageInfo + * @static + * @param {Object.} object Plain object + * @returns {keeper.api.common.PageInfo} PageInfo + */ + PageInfo.fromObject = function fromObject(object, long) { + if (object instanceof $root.keeper.api.common.PageInfo) + return object; + if (!$util.isObject(object)) + throw TypeError(".keeper.api.common.PageInfo: object expected"); + if (long === undefined) + long = 0; + if (long > $util.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let message = new $root.keeper.api.common.PageInfo(); + if (object.pageNumber != null) + message.pageNumber = object.pageNumber | 0; + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.totalCount != null) + message.totalCount = object.totalCount | 0; + if (object.hasMore != null) + message.hasMore = Boolean(object.hasMore); + if (object.cursorToken != null) + message.cursorToken = String(object.cursorToken); + return message; + }; + + /** + * Creates a plain object from a PageInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof keeper.api.common.PageInfo + * @static + * @param {keeper.api.common.PageInfo} message PageInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PageInfo.toObject = function toObject(message, options, q) { + if (!options) + options = {}; + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + let object = {}; + if (options.defaults) { + object.pageNumber = 0; + object.pageSize = 0; + object.totalCount = 0; + object.hasMore = false; + object.cursorToken = ""; + } + if (message.pageNumber != null && Object.hasOwnProperty.call(message, "pageNumber")) + object.pageNumber = message.pageNumber; + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + object.pageSize = message.pageSize; + if (message.totalCount != null && Object.hasOwnProperty.call(message, "totalCount")) + object.totalCount = message.totalCount; + if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) + object.hasMore = message.hasMore; + if (message.cursorToken != null && Object.hasOwnProperty.call(message, "cursorToken")) + object.cursorToken = message.cursorToken; + return object; + }; + + /** + * Converts this PageInfo to JSON. + * @function toJSON + * @memberof keeper.api.common.PageInfo + * @instance + * @returns {Object.} JSON object + */ + PageInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PageInfo + * @function getTypeUrl + * @memberof keeper.api.common.PageInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PageInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/keeper.api.common.PageInfo"; + }; + + return PageInfo; + })(); + + return common; + })(); + + return api; + })(); + + return keeper; +})(); diff --git a/keeperapi/src/proto/record.js b/keeperapi/src/proto/record.js index ce1db49e..604e4cd7 100644 --- a/keeperapi/src/proto/record.js +++ b/keeperapi/src/proto/record.js @@ -19,6 +19,1954 @@ export const record = $root.record = (() => { */ const v3 = {}; + v3.details = (function() { + + /** + * Namespace details. + * @memberof record.v3 + * @namespace + */ + const details = {}; + + details.RecordDetailsService = (function() { + + /** + * Constructs a new RecordDetailsService service. + * @memberof record.v3.details + * @classdesc Represents a RecordDetailsService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function RecordDetailsService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (RecordDetailsService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = RecordDetailsService; + + /** + * Creates new RecordDetailsService service using the specified rpc implementation. + * @function create + * @memberof record.v3.details.RecordDetailsService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {RecordDetailsService} RPC service. Useful where requests and/or responses are streamed. + */ + RecordDetailsService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link record.v3.details.RecordDetailsService#getRecordData}. + * @memberof record.v3.details.RecordDetailsService + * @typedef GetRecordDataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {record.v3.details.RecordDataResponse} [response] RecordDataResponse + */ + + /** + * Calls GetRecordData. + * @function getRecordData + * @memberof record.v3.details.RecordDetailsService + * @instance + * @param {record.v3.details.IRecordDataRequest} request RecordDataRequest message or plain object + * @param {record.v3.details.RecordDetailsService.GetRecordDataCallback} callback Node-style callback called with the error, if any, and RecordDataResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RecordDetailsService.prototype.getRecordData = function getRecordData(request, callback) { + return $protobuf.rpc.Service.prototype.rpcCall.call(this, getRecordData, $root.record.v3.details.RecordDataRequest, $root.record.v3.details.RecordDataResponse, request, callback); + }, "name", { value: "GetRecordData" }); + + /** + * Calls GetRecordData. + * @function getRecordData + * @memberof record.v3.details.RecordDetailsService + * @instance + * @param {record.v3.details.IRecordDataRequest} request RecordDataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link record.v3.details.RecordDetailsService#getRecordAccessors}. + * @memberof record.v3.details.RecordDetailsService + * @typedef GetRecordAccessorsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {record.v3.details.RecordAccessResponse} [response] RecordAccessResponse + */ + + /** + * Calls GetRecordAccessors. + * @function getRecordAccessors + * @memberof record.v3.details.RecordDetailsService + * @instance + * @param {record.v3.details.IRecordAccessRequest} request RecordAccessRequest message or plain object + * @param {record.v3.details.RecordDetailsService.GetRecordAccessorsCallback} callback Node-style callback called with the error, if any, and RecordAccessResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RecordDetailsService.prototype.getRecordAccessors = function getRecordAccessors(request, callback) { + return $protobuf.rpc.Service.prototype.rpcCall.call(this, getRecordAccessors, $root.record.v3.details.RecordAccessRequest, $root.record.v3.details.RecordAccessResponse, request, callback); + }, "name", { value: "GetRecordAccessors" }); + + /** + * Calls GetRecordAccessors. + * @function getRecordAccessors + * @memberof record.v3.details.RecordDetailsService + * @instance + * @param {record.v3.details.IRecordAccessRequest} request RecordAccessRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link record.v3.details.RecordDetailsService#getRecordAccessorDetails}. + * @memberof record.v3.details.RecordDetailsService + * @typedef GetRecordAccessorDetailsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {record.v3.details.RecordAccessorDetailsResponse} [response] RecordAccessorDetailsResponse + */ + + /** + * Calls GetRecordAccessorDetails. + * @function getRecordAccessorDetails + * @memberof record.v3.details.RecordDetailsService + * @instance + * @param {record.v3.details.IRecordAccessorDetailsRequest} request RecordAccessorDetailsRequest message or plain object + * @param {record.v3.details.RecordDetailsService.GetRecordAccessorDetailsCallback} callback Node-style callback called with the error, if any, and RecordAccessorDetailsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RecordDetailsService.prototype.getRecordAccessorDetails = function getRecordAccessorDetails(request, callback) { + return $protobuf.rpc.Service.prototype.rpcCall.call(this, getRecordAccessorDetails, $root.record.v3.details.RecordAccessorDetailsRequest, $root.record.v3.details.RecordAccessorDetailsResponse, request, callback); + }, "name", { value: "GetRecordAccessorDetails" }); + + /** + * Calls GetRecordAccessorDetails. + * @function getRecordAccessorDetails + * @memberof record.v3.details.RecordDetailsService + * @instance + * @param {record.v3.details.IRecordAccessorDetailsRequest} request RecordAccessorDetailsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return RecordDetailsService; + })(); + + details.RecordDataRequest = (function() { + + /** + * Properties of a RecordDataRequest. + * @memberof record.v3.details + * @interface IRecordDataRequest + * @property {number|null} [clientTime] represents the client time in milliseconds. Client time is used to + * adjust the record client_modified_time for each record. + * @property {Array.|null} [recordUids] the list of record UIDs to retrieve information for. + */ + + /** + * Constructs a new RecordDataRequest. + * @memberof record.v3.details + * @classdesc Represents a record data request. Record details include the record [meta]data (title, color, etc.) + * @implements IRecordDataRequest + * @constructor + * @param {record.v3.details.IRecordDataRequest=} [properties] Properties to set + */ + function RecordDataRequest(properties) { + this.recordUids = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null && keys[i] !== "__proto__") + this[keys[i]] = properties[keys[i]]; + } + + /** + * represents the client time in milliseconds. Client time is used to + * adjust the record client_modified_time for each record. + * @member {number} clientTime + * @memberof record.v3.details.RecordDataRequest + * @instance + */ + RecordDataRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * the list of record UIDs to retrieve information for. + * @member {Array.} recordUids + * @memberof record.v3.details.RecordDataRequest + * @instance + */ + RecordDataRequest.prototype.recordUids = $util.emptyArray; + + /** + * Creates a new RecordDataRequest instance using the specified properties. + * @function create + * @memberof record.v3.details.RecordDataRequest + * @static + * @param {record.v3.details.IRecordDataRequest=} [properties] Properties to set + * @returns {record.v3.details.RecordDataRequest} RecordDataRequest instance + */ + RecordDataRequest.create = function create(properties) { + return new RecordDataRequest(properties); + }; + + /** + * Encodes the specified RecordDataRequest message. Does not implicitly {@link record.v3.details.RecordDataRequest.verify|verify} messages. + * @function encode + * @memberof record.v3.details.RecordDataRequest + * @static + * @param {record.v3.details.IRecordDataRequest} message RecordDataRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordDataRequest.encode = function encode(message, writer, q) { + if (!writer) + writer = $Writer.create(); + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.clientTime); + if (message.recordUids != null && message.recordUids.length) + for (let i = 0; i < message.recordUids.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUids[i]); + return writer; + }; + + /** + * Decodes a RecordDataRequest message from the specified reader or buffer. + * @function decode + * @memberof record.v3.details.RecordDataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {record.v3.details.RecordDataRequest} RecordDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordDataRequest.decode = function decode(reader, length, error, long) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + if (long === undefined) + long = 0; + if (long > $Reader.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.details.RecordDataRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.clientTime = reader.int64(); + break; + } + case 3: { + if (!(message.recordUids && message.recordUids.length)) + message.recordUids = []; + message.recordUids.push(reader.bytes()); + break; + } + default: + reader.skipType(tag & 7, long); + break; + } + } + return message; + }; + + /** + * Creates a RecordDataRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof record.v3.details.RecordDataRequest + * @static + * @param {Object.} object Plain object + * @returns {record.v3.details.RecordDataRequest} RecordDataRequest + */ + RecordDataRequest.fromObject = function fromObject(object, long) { + if (object instanceof $root.record.v3.details.RecordDataRequest) + return object; + if (!$util.isObject(object)) + throw TypeError(".record.v3.details.RecordDataRequest: object expected"); + if (long === undefined) + long = 0; + if (long > $util.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let message = new $root.record.v3.details.RecordDataRequest(); + if (object.clientTime != null) + if ($util.Long) + message.clientTime = $util.Long.fromValue(object.clientTime, false); + else if (typeof object.clientTime === "string") + message.clientTime = parseInt(object.clientTime, 10); + else if (typeof object.clientTime === "number") + message.clientTime = object.clientTime; + else if (typeof object.clientTime === "object") + message.clientTime = new $util.LongBits(object.clientTime.low >>> 0, object.clientTime.high >>> 0).toNumber(); + if (object.recordUids) { + if (!Array.isArray(object.recordUids)) + throw TypeError(".record.v3.details.RecordDataRequest.recordUids: array expected"); + message.recordUids = []; + for (let i = 0; i < object.recordUids.length; ++i) + if (typeof object.recordUids[i] === "string") + $util.base64.decode(object.recordUids[i], message.recordUids[i] = $util.newBuffer($util.base64.length(object.recordUids[i])), 0); + else if (object.recordUids[i].length >= 0) + message.recordUids[i] = object.recordUids[i]; + } + return message; + }; + + /** + * Creates a plain object from a RecordDataRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof record.v3.details.RecordDataRequest + * @static + * @param {record.v3.details.RecordDataRequest} message RecordDataRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordDataRequest.toObject = function toObject(message, options, q) { + if (!options) + options = {}; + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + let object = {}; + if (options.arrays || options.defaults) + object.recordUids = []; + if (options.defaults) + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.clientTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long; + } else + object.clientTime = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0; + if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) + if (typeof BigInt !== "undefined" && options.longs === BigInt) + object.clientTime = typeof message.clientTime === "number" ? BigInt(message.clientTime) : $util.Long.fromBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0, false).toBigInt(); + else if (typeof message.clientTime === "number") + object.clientTime = options.longs === String ? String(message.clientTime) : message.clientTime; + else + object.clientTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientTime) : options.longs === Number ? new $util.LongBits(message.clientTime.low >>> 0, message.clientTime.high >>> 0).toNumber() : message.clientTime; + if (message.recordUids && message.recordUids.length) { + object.recordUids = []; + for (let j = 0; j < message.recordUids.length; ++j) + object.recordUids[j] = options.bytes === String ? $util.base64.encode(message.recordUids[j], 0, message.recordUids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUids[j]) : message.recordUids[j]; + } + return object; + }; + + /** + * Converts this RecordDataRequest to JSON. + * @function toJSON + * @memberof record.v3.details.RecordDataRequest + * @instance + * @returns {Object.} JSON object + */ + RecordDataRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordDataRequest + * @function getTypeUrl + * @memberof record.v3.details.RecordDataRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/record.v3.details.RecordDataRequest"; + }; + + return RecordDataRequest; + })(); + + details.RecordDataResponse = (function() { + + /** + * Properties of a RecordDataResponse. + * @memberof record.v3.details + * @interface IRecordDataResponse + * @property {Array.|null} [data] The data associated with the record. + * @property {Array.|null} [forbiddenRecords] A list of record UIDs from the request that the calling user does not have access to. + * Each UID in this list corresponds to a record the user has no permission to access. + */ + + /** + * Constructs a new RecordDataResponse. + * @memberof record.v3.details + * @classdesc Response message containing records' data and a list of inaccessible records for the calling user. + * @implements IRecordDataResponse + * @constructor + * @param {record.v3.details.IRecordDataResponse=} [properties] Properties to set + */ + function RecordDataResponse(properties) { + this.data = []; + this.forbiddenRecords = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null && keys[i] !== "__proto__") + this[keys[i]] = properties[keys[i]]; + } + + /** + * The data associated with the record. + * @member {Array.} data + * @memberof record.v3.details.RecordDataResponse + * @instance + */ + RecordDataResponse.prototype.data = $util.emptyArray; + + /** + * A list of record UIDs from the request that the calling user does not have access to. + * Each UID in this list corresponds to a record the user has no permission to access. + * @member {Array.} forbiddenRecords + * @memberof record.v3.details.RecordDataResponse + * @instance + */ + RecordDataResponse.prototype.forbiddenRecords = $util.emptyArray; + + /** + * Creates a new RecordDataResponse instance using the specified properties. + * @function create + * @memberof record.v3.details.RecordDataResponse + * @static + * @param {record.v3.details.IRecordDataResponse=} [properties] Properties to set + * @returns {record.v3.details.RecordDataResponse} RecordDataResponse instance + */ + RecordDataResponse.create = function create(properties) { + return new RecordDataResponse(properties); + }; + + /** + * Encodes the specified RecordDataResponse message. Does not implicitly {@link record.v3.details.RecordDataResponse.verify|verify} messages. + * @function encode + * @memberof record.v3.details.RecordDataResponse + * @static + * @param {record.v3.details.IRecordDataResponse} message RecordDataResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordDataResponse.encode = function encode(message, writer, q) { + if (!writer) + writer = $Writer.create(); + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + if (message.data != null && message.data.length) + for (let i = 0; i < message.data.length; ++i) + $root.Records.RecordData.encode(message.data[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + if (message.forbiddenRecords != null && message.forbiddenRecords.length) + for (let i = 0; i < message.forbiddenRecords.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.forbiddenRecords[i]); + return writer; + }; + + /** + * Decodes a RecordDataResponse message from the specified reader or buffer. + * @function decode + * @memberof record.v3.details.RecordDataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {record.v3.details.RecordDataResponse} RecordDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordDataResponse.decode = function decode(reader, length, error, long) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + if (long === undefined) + long = 0; + if (long > $Reader.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.details.RecordDataResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + if (!(message.data && message.data.length)) + message.data = []; + message.data.push($root.Records.RecordData.decode(reader, reader.uint32(), undefined, long + 1)); + break; + } + case 2: { + if (!(message.forbiddenRecords && message.forbiddenRecords.length)) + message.forbiddenRecords = []; + message.forbiddenRecords.push(reader.bytes()); + break; + } + default: + reader.skipType(tag & 7, long); + break; + } + } + return message; + }; + + /** + * Creates a RecordDataResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof record.v3.details.RecordDataResponse + * @static + * @param {Object.} object Plain object + * @returns {record.v3.details.RecordDataResponse} RecordDataResponse + */ + RecordDataResponse.fromObject = function fromObject(object, long) { + if (object instanceof $root.record.v3.details.RecordDataResponse) + return object; + if (!$util.isObject(object)) + throw TypeError(".record.v3.details.RecordDataResponse: object expected"); + if (long === undefined) + long = 0; + if (long > $util.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let message = new $root.record.v3.details.RecordDataResponse(); + if (object.data) { + if (!Array.isArray(object.data)) + throw TypeError(".record.v3.details.RecordDataResponse.data: array expected"); + message.data = []; + for (let i = 0; i < object.data.length; ++i) { + if (!$util.isObject(object.data[i])) + throw TypeError(".record.v3.details.RecordDataResponse.data: object expected"); + message.data[i] = $root.Records.RecordData.fromObject(object.data[i], long + 1); + } + } + if (object.forbiddenRecords) { + if (!Array.isArray(object.forbiddenRecords)) + throw TypeError(".record.v3.details.RecordDataResponse.forbiddenRecords: array expected"); + message.forbiddenRecords = []; + for (let i = 0; i < object.forbiddenRecords.length; ++i) + if (typeof object.forbiddenRecords[i] === "string") + $util.base64.decode(object.forbiddenRecords[i], message.forbiddenRecords[i] = $util.newBuffer($util.base64.length(object.forbiddenRecords[i])), 0); + else if (object.forbiddenRecords[i].length >= 0) + message.forbiddenRecords[i] = object.forbiddenRecords[i]; + } + return message; + }; + + /** + * Creates a plain object from a RecordDataResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof record.v3.details.RecordDataResponse + * @static + * @param {record.v3.details.RecordDataResponse} message RecordDataResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordDataResponse.toObject = function toObject(message, options, q) { + if (!options) + options = {}; + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + let object = {}; + if (options.arrays || options.defaults) { + object.data = []; + object.forbiddenRecords = []; + } + if (message.data && message.data.length) { + object.data = []; + for (let j = 0; j < message.data.length; ++j) + object.data[j] = $root.Records.RecordData.toObject(message.data[j], options, q + 1); + } + if (message.forbiddenRecords && message.forbiddenRecords.length) { + object.forbiddenRecords = []; + for (let j = 0; j < message.forbiddenRecords.length; ++j) + object.forbiddenRecords[j] = options.bytes === String ? $util.base64.encode(message.forbiddenRecords[j], 0, message.forbiddenRecords[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.forbiddenRecords[j]) : message.forbiddenRecords[j]; + } + return object; + }; + + /** + * Converts this RecordDataResponse to JSON. + * @function toJSON + * @memberof record.v3.details.RecordDataResponse + * @instance + * @returns {Object.} JSON object + */ + RecordDataResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordDataResponse + * @function getTypeUrl + * @memberof record.v3.details.RecordDataResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordDataResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/record.v3.details.RecordDataResponse"; + }; + + return RecordDataResponse; + })(); + + details.RecordAccessRequest = (function() { + + /** + * Properties of a RecordAccessRequest. + * @memberof record.v3.details + * @interface IRecordAccessRequest + * @property {Array.|null} [recordUids] the list of record UIDs to retrieve information for. + * @property {keeper.api.common.IPage|null} [page] Pagination parameters. + * If not provided, uses defaults (page 0, size 100). + */ + + /** + * Constructs a new RecordAccessRequest. + * @memberof record.v3.details + * @classdesc Represents a record accessors request. Record details include whom the record has been + * shared with (user or team), and what role and permissions the accessors have over the record. + * @implements IRecordAccessRequest + * @constructor + * @param {record.v3.details.IRecordAccessRequest=} [properties] Properties to set + */ + function RecordAccessRequest(properties) { + this.recordUids = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null && keys[i] !== "__proto__") + this[keys[i]] = properties[keys[i]]; + } + + /** + * the list of record UIDs to retrieve information for. + * @member {Array.} recordUids + * @memberof record.v3.details.RecordAccessRequest + * @instance + */ + RecordAccessRequest.prototype.recordUids = $util.emptyArray; + + /** + * Pagination parameters. + * If not provided, uses defaults (page 0, size 100). + * @member {keeper.api.common.IPage|null|undefined} page + * @memberof record.v3.details.RecordAccessRequest + * @instance + */ + RecordAccessRequest.prototype.page = null; + + /** + * Creates a new RecordAccessRequest instance using the specified properties. + * @function create + * @memberof record.v3.details.RecordAccessRequest + * @static + * @param {record.v3.details.IRecordAccessRequest=} [properties] Properties to set + * @returns {record.v3.details.RecordAccessRequest} RecordAccessRequest instance + */ + RecordAccessRequest.create = function create(properties) { + return new RecordAccessRequest(properties); + }; + + /** + * Encodes the specified RecordAccessRequest message. Does not implicitly {@link record.v3.details.RecordAccessRequest.verify|verify} messages. + * @function encode + * @memberof record.v3.details.RecordAccessRequest + * @static + * @param {record.v3.details.IRecordAccessRequest} message RecordAccessRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordAccessRequest.encode = function encode(message, writer, q) { + if (!writer) + writer = $Writer.create(); + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + if (message.page != null && Object.hasOwnProperty.call(message, "page")) + $root.keeper.api.common.Page.encode(message.page, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + if (message.recordUids != null && message.recordUids.length) + for (let i = 0; i < message.recordUids.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUids[i]); + return writer; + }; + + /** + * Decodes a RecordAccessRequest message from the specified reader or buffer. + * @function decode + * @memberof record.v3.details.RecordAccessRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {record.v3.details.RecordAccessRequest} RecordAccessRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordAccessRequest.decode = function decode(reader, length, error, long) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + if (long === undefined) + long = 0; + if (long > $Reader.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.details.RecordAccessRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3: { + if (!(message.recordUids && message.recordUids.length)) + message.recordUids = []; + message.recordUids.push(reader.bytes()); + break; + } + case 2: { + message.page = $root.keeper.api.common.Page.decode(reader, reader.uint32(), undefined, long + 1); + break; + } + default: + reader.skipType(tag & 7, long); + break; + } + } + return message; + }; + + /** + * Creates a RecordAccessRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof record.v3.details.RecordAccessRequest + * @static + * @param {Object.} object Plain object + * @returns {record.v3.details.RecordAccessRequest} RecordAccessRequest + */ + RecordAccessRequest.fromObject = function fromObject(object, long) { + if (object instanceof $root.record.v3.details.RecordAccessRequest) + return object; + if (!$util.isObject(object)) + throw TypeError(".record.v3.details.RecordAccessRequest: object expected"); + if (long === undefined) + long = 0; + if (long > $util.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let message = new $root.record.v3.details.RecordAccessRequest(); + if (object.recordUids) { + if (!Array.isArray(object.recordUids)) + throw TypeError(".record.v3.details.RecordAccessRequest.recordUids: array expected"); + message.recordUids = []; + for (let i = 0; i < object.recordUids.length; ++i) + if (typeof object.recordUids[i] === "string") + $util.base64.decode(object.recordUids[i], message.recordUids[i] = $util.newBuffer($util.base64.length(object.recordUids[i])), 0); + else if (object.recordUids[i].length >= 0) + message.recordUids[i] = object.recordUids[i]; + } + if (object.page != null) { + if (!$util.isObject(object.page)) + throw TypeError(".record.v3.details.RecordAccessRequest.page: object expected"); + message.page = $root.keeper.api.common.Page.fromObject(object.page, long + 1); + } + return message; + }; + + /** + * Creates a plain object from a RecordAccessRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof record.v3.details.RecordAccessRequest + * @static + * @param {record.v3.details.RecordAccessRequest} message RecordAccessRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordAccessRequest.toObject = function toObject(message, options, q) { + if (!options) + options = {}; + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + let object = {}; + if (options.arrays || options.defaults) + object.recordUids = []; + if (options.defaults) + object.page = null; + if (message.page != null && Object.hasOwnProperty.call(message, "page")) + object.page = $root.keeper.api.common.Page.toObject(message.page, options, q + 1); + if (message.recordUids && message.recordUids.length) { + object.recordUids = []; + for (let j = 0; j < message.recordUids.length; ++j) + object.recordUids[j] = options.bytes === String ? $util.base64.encode(message.recordUids[j], 0, message.recordUids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUids[j]) : message.recordUids[j]; + } + return object; + }; + + /** + * Converts this RecordAccessRequest to JSON. + * @function toJSON + * @memberof record.v3.details.RecordAccessRequest + * @instance + * @returns {Object.} JSON object + */ + RecordAccessRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordAccessRequest + * @function getTypeUrl + * @memberof record.v3.details.RecordAccessRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordAccessRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/record.v3.details.RecordAccessRequest"; + }; + + return RecordAccessRequest; + })(); + + details.RecordAccessResponse = (function() { + + /** + * Properties of a RecordAccessResponse. + * @memberof record.v3.details + * @interface IRecordAccessResponse + * @property {Array.|null} [recordAccesses] List of record access permissions, detailing the accessors and their roles. + * @property {Array.|null} [forbiddenRecords] A list of record UIDs from the request that the calling user does not have access to. + * Each UID in this list corresponds to a record the user has no permission to access. + * @property {keeper.api.common.IPageInfo|null} [pageInfo] Pagination metadata for this response. + * Contains current page info, total count, and whether more pages exist. + */ + + /** + * Constructs a new RecordAccessResponse. + * @memberof record.v3.details + * @classdesc Response message containing records' accesses and a list of inaccessible records for the calling user. + * @implements IRecordAccessResponse + * @constructor + * @param {record.v3.details.IRecordAccessResponse=} [properties] Properties to set + */ + function RecordAccessResponse(properties) { + this.recordAccesses = []; + this.forbiddenRecords = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null && keys[i] !== "__proto__") + this[keys[i]] = properties[keys[i]]; + } + + /** + * List of record access permissions, detailing the accessors and their roles. + * @member {Array.} recordAccesses + * @memberof record.v3.details.RecordAccessResponse + * @instance + */ + RecordAccessResponse.prototype.recordAccesses = $util.emptyArray; + + /** + * A list of record UIDs from the request that the calling user does not have access to. + * Each UID in this list corresponds to a record the user has no permission to access. + * @member {Array.} forbiddenRecords + * @memberof record.v3.details.RecordAccessResponse + * @instance + */ + RecordAccessResponse.prototype.forbiddenRecords = $util.emptyArray; + + /** + * Pagination metadata for this response. + * Contains current page info, total count, and whether more pages exist. + * @member {keeper.api.common.IPageInfo|null|undefined} pageInfo + * @memberof record.v3.details.RecordAccessResponse + * @instance + */ + RecordAccessResponse.prototype.pageInfo = null; + + /** + * Creates a new RecordAccessResponse instance using the specified properties. + * @function create + * @memberof record.v3.details.RecordAccessResponse + * @static + * @param {record.v3.details.IRecordAccessResponse=} [properties] Properties to set + * @returns {record.v3.details.RecordAccessResponse} RecordAccessResponse instance + */ + RecordAccessResponse.create = function create(properties) { + return new RecordAccessResponse(properties); + }; + + /** + * Encodes the specified RecordAccessResponse message. Does not implicitly {@link record.v3.details.RecordAccessResponse.verify|verify} messages. + * @function encode + * @memberof record.v3.details.RecordAccessResponse + * @static + * @param {record.v3.details.IRecordAccessResponse} message RecordAccessResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordAccessResponse.encode = function encode(message, writer, q) { + if (!writer) + writer = $Writer.create(); + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + if (message.recordAccesses != null && message.recordAccesses.length) + for (let i = 0; i < message.recordAccesses.length; ++i) + $root.record.v3.details.RecordAccess.encode(message.recordAccesses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + if (message.forbiddenRecords != null && message.forbiddenRecords.length) + for (let i = 0; i < message.forbiddenRecords.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.forbiddenRecords[i]); + if (message.pageInfo != null && Object.hasOwnProperty.call(message, "pageInfo")) + $root.keeper.api.common.PageInfo.encode(message.pageInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + return writer; + }; + + /** + * Decodes a RecordAccessResponse message from the specified reader or buffer. + * @function decode + * @memberof record.v3.details.RecordAccessResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {record.v3.details.RecordAccessResponse} RecordAccessResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordAccessResponse.decode = function decode(reader, length, error, long) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + if (long === undefined) + long = 0; + if (long > $Reader.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.details.RecordAccessResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + if (!(message.recordAccesses && message.recordAccesses.length)) + message.recordAccesses = []; + message.recordAccesses.push($root.record.v3.details.RecordAccess.decode(reader, reader.uint32(), undefined, long + 1)); + break; + } + case 2: { + if (!(message.forbiddenRecords && message.forbiddenRecords.length)) + message.forbiddenRecords = []; + message.forbiddenRecords.push(reader.bytes()); + break; + } + case 3: { + message.pageInfo = $root.keeper.api.common.PageInfo.decode(reader, reader.uint32(), undefined, long + 1); + break; + } + default: + reader.skipType(tag & 7, long); + break; + } + } + return message; + }; + + /** + * Creates a RecordAccessResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof record.v3.details.RecordAccessResponse + * @static + * @param {Object.} object Plain object + * @returns {record.v3.details.RecordAccessResponse} RecordAccessResponse + */ + RecordAccessResponse.fromObject = function fromObject(object, long) { + if (object instanceof $root.record.v3.details.RecordAccessResponse) + return object; + if (!$util.isObject(object)) + throw TypeError(".record.v3.details.RecordAccessResponse: object expected"); + if (long === undefined) + long = 0; + if (long > $util.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let message = new $root.record.v3.details.RecordAccessResponse(); + if (object.recordAccesses) { + if (!Array.isArray(object.recordAccesses)) + throw TypeError(".record.v3.details.RecordAccessResponse.recordAccesses: array expected"); + message.recordAccesses = []; + for (let i = 0; i < object.recordAccesses.length; ++i) { + if (!$util.isObject(object.recordAccesses[i])) + throw TypeError(".record.v3.details.RecordAccessResponse.recordAccesses: object expected"); + message.recordAccesses[i] = $root.record.v3.details.RecordAccess.fromObject(object.recordAccesses[i], long + 1); + } + } + if (object.forbiddenRecords) { + if (!Array.isArray(object.forbiddenRecords)) + throw TypeError(".record.v3.details.RecordAccessResponse.forbiddenRecords: array expected"); + message.forbiddenRecords = []; + for (let i = 0; i < object.forbiddenRecords.length; ++i) + if (typeof object.forbiddenRecords[i] === "string") + $util.base64.decode(object.forbiddenRecords[i], message.forbiddenRecords[i] = $util.newBuffer($util.base64.length(object.forbiddenRecords[i])), 0); + else if (object.forbiddenRecords[i].length >= 0) + message.forbiddenRecords[i] = object.forbiddenRecords[i]; + } + if (object.pageInfo != null) { + if (!$util.isObject(object.pageInfo)) + throw TypeError(".record.v3.details.RecordAccessResponse.pageInfo: object expected"); + message.pageInfo = $root.keeper.api.common.PageInfo.fromObject(object.pageInfo, long + 1); + } + return message; + }; + + /** + * Creates a plain object from a RecordAccessResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof record.v3.details.RecordAccessResponse + * @static + * @param {record.v3.details.RecordAccessResponse} message RecordAccessResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordAccessResponse.toObject = function toObject(message, options, q) { + if (!options) + options = {}; + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + let object = {}; + if (options.arrays || options.defaults) { + object.recordAccesses = []; + object.forbiddenRecords = []; + } + if (options.defaults) + object.pageInfo = null; + if (message.recordAccesses && message.recordAccesses.length) { + object.recordAccesses = []; + for (let j = 0; j < message.recordAccesses.length; ++j) + object.recordAccesses[j] = $root.record.v3.details.RecordAccess.toObject(message.recordAccesses[j], options, q + 1); + } + if (message.forbiddenRecords && message.forbiddenRecords.length) { + object.forbiddenRecords = []; + for (let j = 0; j < message.forbiddenRecords.length; ++j) + object.forbiddenRecords[j] = options.bytes === String ? $util.base64.encode(message.forbiddenRecords[j], 0, message.forbiddenRecords[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.forbiddenRecords[j]) : message.forbiddenRecords[j]; + } + if (message.pageInfo != null && Object.hasOwnProperty.call(message, "pageInfo")) + object.pageInfo = $root.keeper.api.common.PageInfo.toObject(message.pageInfo, options, q + 1); + return object; + }; + + /** + * Converts this RecordAccessResponse to JSON. + * @function toJSON + * @memberof record.v3.details.RecordAccessResponse + * @instance + * @returns {Object.} JSON object + */ + RecordAccessResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordAccessResponse + * @function getTypeUrl + * @memberof record.v3.details.RecordAccessResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordAccessResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/record.v3.details.RecordAccessResponse"; + }; + + return RecordAccessResponse; + })(); + + details.RecordAccessorDetailsRequest = (function() { + + /** + * Properties of a RecordAccessorDetailsRequest. + * @memberof record.v3.details + * @interface IRecordAccessorDetailsRequest + * @property {Uint8Array|null} [recordUid] The record UID to retrieve information for. + * @property {Uint8Array|null} [accessorUid] The accessor UID (user or team) to retrieve information for. + * @property {keeper.api.common.IPage|null} [page] Pagination parameters. + * If not provided, uses defaults (page 0, size 100). + */ + + /** + * Constructs a new RecordAccessorDetailsRequest. + * @memberof record.v3.details + * @classdesc Represents a record accessor details request. + * @implements IRecordAccessorDetailsRequest + * @constructor + * @param {record.v3.details.IRecordAccessorDetailsRequest=} [properties] Properties to set + */ + function RecordAccessorDetailsRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null && keys[i] !== "__proto__") + this[keys[i]] = properties[keys[i]]; + } + + /** + * The record UID to retrieve information for. + * @member {Uint8Array} recordUid + * @memberof record.v3.details.RecordAccessorDetailsRequest + * @instance + */ + RecordAccessorDetailsRequest.prototype.recordUid = $util.newBuffer([]); + + /** + * The accessor UID (user or team) to retrieve information for. + * @member {Uint8Array} accessorUid + * @memberof record.v3.details.RecordAccessorDetailsRequest + * @instance + */ + RecordAccessorDetailsRequest.prototype.accessorUid = $util.newBuffer([]); + + /** + * Pagination parameters. + * If not provided, uses defaults (page 0, size 100). + * @member {keeper.api.common.IPage|null|undefined} page + * @memberof record.v3.details.RecordAccessorDetailsRequest + * @instance + */ + RecordAccessorDetailsRequest.prototype.page = null; + + /** + * Creates a new RecordAccessorDetailsRequest instance using the specified properties. + * @function create + * @memberof record.v3.details.RecordAccessorDetailsRequest + * @static + * @param {record.v3.details.IRecordAccessorDetailsRequest=} [properties] Properties to set + * @returns {record.v3.details.RecordAccessorDetailsRequest} RecordAccessorDetailsRequest instance + */ + RecordAccessorDetailsRequest.create = function create(properties) { + return new RecordAccessorDetailsRequest(properties); + }; + + /** + * Encodes the specified RecordAccessorDetailsRequest message. Does not implicitly {@link record.v3.details.RecordAccessorDetailsRequest.verify|verify} messages. + * @function encode + * @memberof record.v3.details.RecordAccessorDetailsRequest + * @static + * @param {record.v3.details.IRecordAccessorDetailsRequest} message RecordAccessorDetailsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordAccessorDetailsRequest.encode = function encode(message, writer, q) { + if (!writer) + writer = $Writer.create(); + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); + if (message.accessorUid != null && Object.hasOwnProperty.call(message, "accessorUid")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.accessorUid); + if (message.page != null && Object.hasOwnProperty.call(message, "page")) + $root.keeper.api.common.Page.encode(message.page, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + return writer; + }; + + /** + * Decodes a RecordAccessorDetailsRequest message from the specified reader or buffer. + * @function decode + * @memberof record.v3.details.RecordAccessorDetailsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {record.v3.details.RecordAccessorDetailsRequest} RecordAccessorDetailsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordAccessorDetailsRequest.decode = function decode(reader, length, error, long) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + if (long === undefined) + long = 0; + if (long > $Reader.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.details.RecordAccessorDetailsRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.recordUid = reader.bytes(); + break; + } + case 2: { + message.accessorUid = reader.bytes(); + break; + } + case 3: { + message.page = $root.keeper.api.common.Page.decode(reader, reader.uint32(), undefined, long + 1); + break; + } + default: + reader.skipType(tag & 7, long); + break; + } + } + return message; + }; + + /** + * Creates a RecordAccessorDetailsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof record.v3.details.RecordAccessorDetailsRequest + * @static + * @param {Object.} object Plain object + * @returns {record.v3.details.RecordAccessorDetailsRequest} RecordAccessorDetailsRequest + */ + RecordAccessorDetailsRequest.fromObject = function fromObject(object, long) { + if (object instanceof $root.record.v3.details.RecordAccessorDetailsRequest) + return object; + if (!$util.isObject(object)) + throw TypeError(".record.v3.details.RecordAccessorDetailsRequest: object expected"); + if (long === undefined) + long = 0; + if (long > $util.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let message = new $root.record.v3.details.RecordAccessorDetailsRequest(); + 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; + if (object.accessorUid != null) + if (typeof object.accessorUid === "string") + $util.base64.decode(object.accessorUid, message.accessorUid = $util.newBuffer($util.base64.length(object.accessorUid)), 0); + else if (object.accessorUid.length >= 0) + message.accessorUid = object.accessorUid; + if (object.page != null) { + if (!$util.isObject(object.page)) + throw TypeError(".record.v3.details.RecordAccessorDetailsRequest.page: object expected"); + message.page = $root.keeper.api.common.Page.fromObject(object.page, long + 1); + } + return message; + }; + + /** + * Creates a plain object from a RecordAccessorDetailsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof record.v3.details.RecordAccessorDetailsRequest + * @static + * @param {record.v3.details.RecordAccessorDetailsRequest} message RecordAccessorDetailsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordAccessorDetailsRequest.toObject = function toObject(message, options, q) { + if (!options) + options = {}; + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.recordUid = ""; + else { + object.recordUid = []; + if (options.bytes !== Array) + object.recordUid = $util.newBuffer(object.recordUid); + } + if (options.bytes === String) + object.accessorUid = ""; + else { + object.accessorUid = []; + if (options.bytes !== Array) + object.accessorUid = $util.newBuffer(object.accessorUid); + } + object.page = null; + } + if (message.recordUid != null && Object.hasOwnProperty.call(message, "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; + if (message.accessorUid != null && Object.hasOwnProperty.call(message, "accessorUid")) + object.accessorUid = options.bytes === String ? $util.base64.encode(message.accessorUid, 0, message.accessorUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accessorUid) : message.accessorUid; + if (message.page != null && Object.hasOwnProperty.call(message, "page")) + object.page = $root.keeper.api.common.Page.toObject(message.page, options, q + 1); + return object; + }; + + /** + * Converts this RecordAccessorDetailsRequest to JSON. + * @function toJSON + * @memberof record.v3.details.RecordAccessorDetailsRequest + * @instance + * @returns {Object.} JSON object + */ + RecordAccessorDetailsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordAccessorDetailsRequest + * @function getTypeUrl + * @memberof record.v3.details.RecordAccessorDetailsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordAccessorDetailsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/record.v3.details.RecordAccessorDetailsRequest"; + }; + + return RecordAccessorDetailsRequest; + })(); + + details.RecordAccessorDetailsResponse = (function() { + + /** + * Properties of a RecordAccessorDetailsResponse. + * @memberof record.v3.details + * @interface IRecordAccessorDetailsResponse + * @property {Folder.IRecordAccessData|null} [recordAccessData] Set if has direct access to the record. + * @property {Array.|null} [folderAccessData] The list of folder the user has access and that contain the record. + * @property {keeper.api.common.IPageInfo|null} [pageInfo] * Pagination metadata for this response. + * * Contains current page info, total count, and whether more pages exist. + */ + + /** + * Constructs a new RecordAccessorDetailsResponse. + * @memberof record.v3.details + * @classdesc Represents a record accessor details response. + * Record accessor details include information on how a specific accessor obtained access to a record. + * @implements IRecordAccessorDetailsResponse + * @constructor + * @param {record.v3.details.IRecordAccessorDetailsResponse=} [properties] Properties to set + */ + function RecordAccessorDetailsResponse(properties) { + this.folderAccessData = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null && keys[i] !== "__proto__") + this[keys[i]] = properties[keys[i]]; + } + + /** + * Set if has direct access to the record. + * @member {Folder.IRecordAccessData|null|undefined} recordAccessData + * @memberof record.v3.details.RecordAccessorDetailsResponse + * @instance + */ + RecordAccessorDetailsResponse.prototype.recordAccessData = null; + + /** + * The list of folder the user has access and that contain the record. + * @member {Array.} folderAccessData + * @memberof record.v3.details.RecordAccessorDetailsResponse + * @instance + */ + RecordAccessorDetailsResponse.prototype.folderAccessData = $util.emptyArray; + + /** + * * Pagination metadata for this response. + * * Contains current page info, total count, and whether more pages exist. + * @member {keeper.api.common.IPageInfo|null|undefined} pageInfo + * @memberof record.v3.details.RecordAccessorDetailsResponse + * @instance + */ + RecordAccessorDetailsResponse.prototype.pageInfo = null; + + /** + * Creates a new RecordAccessorDetailsResponse instance using the specified properties. + * @function create + * @memberof record.v3.details.RecordAccessorDetailsResponse + * @static + * @param {record.v3.details.IRecordAccessorDetailsResponse=} [properties] Properties to set + * @returns {record.v3.details.RecordAccessorDetailsResponse} RecordAccessorDetailsResponse instance + */ + RecordAccessorDetailsResponse.create = function create(properties) { + return new RecordAccessorDetailsResponse(properties); + }; + + /** + * Encodes the specified RecordAccessorDetailsResponse message. Does not implicitly {@link record.v3.details.RecordAccessorDetailsResponse.verify|verify} messages. + * @function encode + * @memberof record.v3.details.RecordAccessorDetailsResponse + * @static + * @param {record.v3.details.IRecordAccessorDetailsResponse} message RecordAccessorDetailsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordAccessorDetailsResponse.encode = function encode(message, writer, q) { + if (!writer) + writer = $Writer.create(); + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + if (message.recordAccessData != null && Object.hasOwnProperty.call(message, "recordAccessData")) + $root.Folder.RecordAccessData.encode(message.recordAccessData, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + if (message.folderAccessData != null && message.folderAccessData.length) + for (let i = 0; i < message.folderAccessData.length; ++i) + $root.Folder.FolderAccessData.encode(message.folderAccessData[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + if (message.pageInfo != null && Object.hasOwnProperty.call(message, "pageInfo")) + $root.keeper.api.common.PageInfo.encode(message.pageInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim(); + return writer; + }; + + /** + * Decodes a RecordAccessorDetailsResponse message from the specified reader or buffer. + * @function decode + * @memberof record.v3.details.RecordAccessorDetailsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {record.v3.details.RecordAccessorDetailsResponse} RecordAccessorDetailsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordAccessorDetailsResponse.decode = function decode(reader, length, error, long) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + if (long === undefined) + long = 0; + if (long > $Reader.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.details.RecordAccessorDetailsResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.recordAccessData = $root.Folder.RecordAccessData.decode(reader, reader.uint32(), undefined, long + 1); + break; + } + case 2: { + if (!(message.folderAccessData && message.folderAccessData.length)) + message.folderAccessData = []; + message.folderAccessData.push($root.Folder.FolderAccessData.decode(reader, reader.uint32(), undefined, long + 1)); + break; + } + case 3: { + message.pageInfo = $root.keeper.api.common.PageInfo.decode(reader, reader.uint32(), undefined, long + 1); + break; + } + default: + reader.skipType(tag & 7, long); + break; + } + } + return message; + }; + + /** + * Creates a RecordAccessorDetailsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof record.v3.details.RecordAccessorDetailsResponse + * @static + * @param {Object.} object Plain object + * @returns {record.v3.details.RecordAccessorDetailsResponse} RecordAccessorDetailsResponse + */ + RecordAccessorDetailsResponse.fromObject = function fromObject(object, long) { + if (object instanceof $root.record.v3.details.RecordAccessorDetailsResponse) + return object; + if (!$util.isObject(object)) + throw TypeError(".record.v3.details.RecordAccessorDetailsResponse: object expected"); + if (long === undefined) + long = 0; + if (long > $util.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let message = new $root.record.v3.details.RecordAccessorDetailsResponse(); + if (object.recordAccessData != null) { + if (!$util.isObject(object.recordAccessData)) + throw TypeError(".record.v3.details.RecordAccessorDetailsResponse.recordAccessData: object expected"); + message.recordAccessData = $root.Folder.RecordAccessData.fromObject(object.recordAccessData, long + 1); + } + if (object.folderAccessData) { + if (!Array.isArray(object.folderAccessData)) + throw TypeError(".record.v3.details.RecordAccessorDetailsResponse.folderAccessData: array expected"); + message.folderAccessData = []; + for (let i = 0; i < object.folderAccessData.length; ++i) { + if (!$util.isObject(object.folderAccessData[i])) + throw TypeError(".record.v3.details.RecordAccessorDetailsResponse.folderAccessData: object expected"); + message.folderAccessData[i] = $root.Folder.FolderAccessData.fromObject(object.folderAccessData[i], long + 1); + } + } + if (object.pageInfo != null) { + if (!$util.isObject(object.pageInfo)) + throw TypeError(".record.v3.details.RecordAccessorDetailsResponse.pageInfo: object expected"); + message.pageInfo = $root.keeper.api.common.PageInfo.fromObject(object.pageInfo, long + 1); + } + return message; + }; + + /** + * Creates a plain object from a RecordAccessorDetailsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof record.v3.details.RecordAccessorDetailsResponse + * @static + * @param {record.v3.details.RecordAccessorDetailsResponse} message RecordAccessorDetailsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordAccessorDetailsResponse.toObject = function toObject(message, options, q) { + if (!options) + options = {}; + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + let object = {}; + if (options.arrays || options.defaults) + object.folderAccessData = []; + if (options.defaults) { + object.recordAccessData = null; + object.pageInfo = null; + } + if (message.recordAccessData != null && Object.hasOwnProperty.call(message, "recordAccessData")) + object.recordAccessData = $root.Folder.RecordAccessData.toObject(message.recordAccessData, options, q + 1); + if (message.folderAccessData && message.folderAccessData.length) { + object.folderAccessData = []; + for (let j = 0; j < message.folderAccessData.length; ++j) + object.folderAccessData[j] = $root.Folder.FolderAccessData.toObject(message.folderAccessData[j], options, q + 1); + } + if (message.pageInfo != null && Object.hasOwnProperty.call(message, "pageInfo")) + object.pageInfo = $root.keeper.api.common.PageInfo.toObject(message.pageInfo, options, q + 1); + return object; + }; + + /** + * Converts this RecordAccessorDetailsResponse to JSON. + * @function toJSON + * @memberof record.v3.details.RecordAccessorDetailsResponse + * @instance + * @returns {Object.} JSON object + */ + RecordAccessorDetailsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordAccessorDetailsResponse + * @function getTypeUrl + * @memberof record.v3.details.RecordAccessorDetailsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordAccessorDetailsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/record.v3.details.RecordAccessorDetailsResponse"; + }; + + return RecordAccessorDetailsResponse; + })(); + + details.RecordAccess = (function() { + + /** + * Properties of a RecordAccess. + * @memberof record.v3.details + * @interface IRecordAccess + * @property {Folder.IRecordAccessData|null} [data] Core access details including permissions, role, and metadata. + * @property {record.v3.details.IAccessorInfo|null} [accessorInfo] The record accessor. + */ + + /** + * Constructs a new RecordAccess. + * @memberof record.v3.details + * @classdesc Describes the access a user has to a specific record. + * Includes ownership, access roles, and additional sharing metadata. + * @implements IRecordAccess + * @constructor + * @param {record.v3.details.IRecordAccess=} [properties] Properties to set + */ + function RecordAccess(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null && keys[i] !== "__proto__") + this[keys[i]] = properties[keys[i]]; + } + + /** + * Core access details including permissions, role, and metadata. + * @member {Folder.IRecordAccessData|null|undefined} data + * @memberof record.v3.details.RecordAccess + * @instance + */ + RecordAccess.prototype.data = null; + + /** + * The record accessor. + * @member {record.v3.details.IAccessorInfo|null|undefined} accessorInfo + * @memberof record.v3.details.RecordAccess + * @instance + */ + RecordAccess.prototype.accessorInfo = null; + + /** + * Creates a new RecordAccess instance using the specified properties. + * @function create + * @memberof record.v3.details.RecordAccess + * @static + * @param {record.v3.details.IRecordAccess=} [properties] Properties to set + * @returns {record.v3.details.RecordAccess} RecordAccess instance + */ + RecordAccess.create = function create(properties) { + return new RecordAccess(properties); + }; + + /** + * Encodes the specified RecordAccess message. Does not implicitly {@link record.v3.details.RecordAccess.verify|verify} messages. + * @function encode + * @memberof record.v3.details.RecordAccess + * @static + * @param {record.v3.details.IRecordAccess} message RecordAccess message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordAccess.encode = function encode(message, writer, q) { + if (!writer) + writer = $Writer.create(); + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + $root.Folder.RecordAccessData.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim(); + if (message.accessorInfo != null && Object.hasOwnProperty.call(message, "accessorInfo")) + $root.record.v3.details.AccessorInfo.encode(message.accessorInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim(); + return writer; + }; + + /** + * Decodes a RecordAccess message from the specified reader or buffer. + * @function decode + * @memberof record.v3.details.RecordAccess + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {record.v3.details.RecordAccess} RecordAccess + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordAccess.decode = function decode(reader, length, error, long) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + if (long === undefined) + long = 0; + if (long > $Reader.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.details.RecordAccess(); + while (reader.pos < end) { + let tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.data = $root.Folder.RecordAccessData.decode(reader, reader.uint32(), undefined, long + 1); + break; + } + case 2: { + message.accessorInfo = $root.record.v3.details.AccessorInfo.decode(reader, reader.uint32(), undefined, long + 1); + break; + } + default: + reader.skipType(tag & 7, long); + break; + } + } + return message; + }; + + /** + * Creates a RecordAccess message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof record.v3.details.RecordAccess + * @static + * @param {Object.} object Plain object + * @returns {record.v3.details.RecordAccess} RecordAccess + */ + RecordAccess.fromObject = function fromObject(object, long) { + if (object instanceof $root.record.v3.details.RecordAccess) + return object; + if (!$util.isObject(object)) + throw TypeError(".record.v3.details.RecordAccess: object expected"); + if (long === undefined) + long = 0; + if (long > $util.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let message = new $root.record.v3.details.RecordAccess(); + if (object.data != null) { + if (!$util.isObject(object.data)) + throw TypeError(".record.v3.details.RecordAccess.data: object expected"); + message.data = $root.Folder.RecordAccessData.fromObject(object.data, long + 1); + } + if (object.accessorInfo != null) { + if (!$util.isObject(object.accessorInfo)) + throw TypeError(".record.v3.details.RecordAccess.accessorInfo: object expected"); + message.accessorInfo = $root.record.v3.details.AccessorInfo.fromObject(object.accessorInfo, long + 1); + } + return message; + }; + + /** + * Creates a plain object from a RecordAccess message. Also converts values to other types if specified. + * @function toObject + * @memberof record.v3.details.RecordAccess + * @static + * @param {record.v3.details.RecordAccess} message RecordAccess + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordAccess.toObject = function toObject(message, options, q) { + if (!options) + options = {}; + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + let object = {}; + if (options.defaults) { + object.data = null; + object.accessorInfo = null; + } + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + object.data = $root.Folder.RecordAccessData.toObject(message.data, options, q + 1); + if (message.accessorInfo != null && Object.hasOwnProperty.call(message, "accessorInfo")) + object.accessorInfo = $root.record.v3.details.AccessorInfo.toObject(message.accessorInfo, options, q + 1); + return object; + }; + + /** + * Converts this RecordAccess to JSON. + * @function toJSON + * @memberof record.v3.details.RecordAccess + * @instance + * @returns {Object.} JSON object + */ + RecordAccess.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordAccess + * @function getTypeUrl + * @memberof record.v3.details.RecordAccess + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordAccess.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/record.v3.details.RecordAccess"; + }; + + return RecordAccess; + })(); + + details.AccessorInfo = (function() { + + /** + * Properties of an AccessorInfo. + * @memberof record.v3.details + * @interface IAccessorInfo + * @property {string|null} [name] accessor name + */ + + /** + * Constructs a new AccessorInfo. + * @memberof record.v3.details + * @classdesc The entity representing the record accessor. Either a team or a user + * @implements IAccessorInfo + * @constructor + * @param {record.v3.details.IAccessorInfo=} [properties] Properties to set + */ + function AccessorInfo(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null && keys[i] !== "__proto__") + this[keys[i]] = properties[keys[i]]; + } + + /** + * accessor name + * @member {string} name + * @memberof record.v3.details.AccessorInfo + * @instance + */ + AccessorInfo.prototype.name = ""; + + /** + * Creates a new AccessorInfo instance using the specified properties. + * @function create + * @memberof record.v3.details.AccessorInfo + * @static + * @param {record.v3.details.IAccessorInfo=} [properties] Properties to set + * @returns {record.v3.details.AccessorInfo} AccessorInfo instance + */ + AccessorInfo.create = function create(properties) { + return new AccessorInfo(properties); + }; + + /** + * Encodes the specified AccessorInfo message. Does not implicitly {@link record.v3.details.AccessorInfo.verify|verify} messages. + * @function encode + * @memberof record.v3.details.AccessorInfo + * @static + * @param {record.v3.details.IAccessorInfo} message AccessorInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AccessorInfo.encode = function encode(message, writer, q) { + if (!writer) + writer = $Writer.create(); + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Decodes an AccessorInfo message from the specified reader or buffer. + * @function decode + * @memberof record.v3.details.AccessorInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {record.v3.details.AccessorInfo} AccessorInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AccessorInfo.decode = function decode(reader, length, error, long) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + if (long === undefined) + long = 0; + if (long > $Reader.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.record.v3.details.AccessorInfo(); + while (reader.pos < end) { + let tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7, long); + break; + } + } + return message; + }; + + /** + * Creates an AccessorInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof record.v3.details.AccessorInfo + * @static + * @param {Object.} object Plain object + * @returns {record.v3.details.AccessorInfo} AccessorInfo + */ + AccessorInfo.fromObject = function fromObject(object, long) { + if (object instanceof $root.record.v3.details.AccessorInfo) + return object; + if (!$util.isObject(object)) + throw TypeError(".record.v3.details.AccessorInfo: object expected"); + if (long === undefined) + long = 0; + if (long > $util.recursionLimit) + throw Error("maximum nesting depth exceeded"); + let message = new $root.record.v3.details.AccessorInfo(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from an AccessorInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof record.v3.details.AccessorInfo + * @static + * @param {record.v3.details.AccessorInfo} message AccessorInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AccessorInfo.toObject = function toObject(message, options, q) { + if (!options) + options = {}; + if (q === undefined) + q = 0; + if (q > $util.recursionLimit) + throw Error("max depth exceeded"); + let object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + object.name = message.name; + return object; + }; + + /** + * Converts this AccessorInfo to JSON. + * @function toJSON + * @memberof record.v3.details.AccessorInfo + * @instance + * @returns {Object.} JSON object + */ + AccessorInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AccessorInfo + * @function getTypeUrl + * @memberof record.v3.details.AccessorInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AccessorInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/record.v3.details.AccessorInfo"; + }; + + return AccessorInfo; + })(); + + return details; + })(); + v3.sharing = (function() { /** From 3b6084b612d0306519df91f58c47775ea7d75a48 Mon Sep 17 00:00:00 2001 From: ukumar-ks Date: Wed, 1 Jul 2026 17:50:41 +0530 Subject: [PATCH 10/12] updated restmessage with latest proto --- .../src/nestedShareFolders/nsfHelpers.ts | 16 +- keeperapi/src/restMessages.ts | 257 ++---------------- 2 files changed, 34 insertions(+), 239 deletions(-) diff --git a/KeeperSdk/src/nestedShareFolders/nsfHelpers.ts b/KeeperSdk/src/nestedShareFolders/nsfHelpers.ts index 6fa572b6..7d1cf672 100644 --- a/KeeperSdk/src/nestedShareFolders/nsfHelpers.ts +++ b/KeeperSdk/src/nestedShareFolders/nsfHelpers.ts @@ -7,7 +7,15 @@ import type { DKdFolderRecord, DKdRecordAccess, } from '@keeper-security/keeperapi' -import { Folder, Records, getFolderAccessMessage, getRecordAccessMessage, getShareObjectsMessage, webSafe64FromBytes } from '@keeper-security/keeperapi' +import { + Folder, + Records, + getFolderAccessMessage, + getRecordAccessMessage, + getShareObjectsMessage, + normal64Bytes, + webSafe64FromBytes, +} from '@keeper-security/keeperapi' import type { InMemoryStorage } from '../storage/InMemoryStorage' import { VaultObjectKind } from '../folders/folderHelpers' import { KeeperSdkError, ResultCodes, extractErrorMessage } from '../utils' @@ -734,7 +742,9 @@ export async function loadShareUserMap(auth: Auth, storage: InMemoryStorage): Pr export async function fetchLiveFolderAccessEntries(auth: Auth, folderUid: string): Promise { try { - const response = await auth.executeRest(getFolderAccessMessage([folderUid])) + const response = await auth.executeRest( + getFolderAccessMessage({ folderUid: [normal64Bytes(folderUid)] }) + ) const result = response.folderAccessResults?.find( (entry) => entry.folderUid?.length && webSafe64FromBytes(entry.folderUid) === folderUid ) @@ -782,7 +792,7 @@ export async function fetchLiveRecordAccessEntries( > { try { const [response, shareUsers] = await Promise.all([ - auth.executeRest(getRecordAccessMessage([recordUid])), + auth.executeRest(getRecordAccessMessage({ recordUids: [normal64Bytes(recordUid)] })), loadShareUserMap(auth, storage), ]) diff --git a/keeperapi/src/restMessages.ts b/keeperapi/src/restMessages.ts index 4aeafa78..1c542c2e 100644 --- a/keeperapi/src/restMessages.ts +++ b/keeperapi/src/restMessages.ts @@ -1,4 +1,4 @@ -import { Reader, Writer } from 'protobufjs' +import { Writer } from 'protobufjs' import { AccountSummary, Authentication, @@ -18,7 +18,6 @@ import { record, folder, } from './proto' -import { normal64Bytes, webSafe64FromBytes } from './utils' // generated protobuf has all properties optional and nullable, while this is not an issue for KeeperApp, this type fixes it export type NN = Required<{ [prop in keyof T]: NonNullable }> @@ -1019,251 +1018,37 @@ export const removeFolderMessage = ( folder.v3.remove.RemoveResponse ) -export interface IRecordDetailsDataRequest { - recordUids: Uint8Array[] - clientTime?: number -} - -export interface IRecordDetailsDataResponse { - data: Records.IRecordData[] - forbiddenRecords: Uint8Array[] -} - -const RecordDetailsDataRequest = { - create(properties?: IRecordDetailsDataRequest): IRecordDetailsDataRequest { - return { - recordUids: properties?.recordUids ?? [], - clientTime: properties?.clientTime, - } - }, - encode(message: IRecordDetailsDataRequest, writer?: Writer): Writer { - if (!writer) writer = Writer.create() - if (message.clientTime != null) { - writer.uint32(8).int64(message.clientTime) - } - for (const uid of message.recordUids) { - writer.uint32(26).bytes(uid) - } - return writer - }, -} - -const RecordDetailsDataResponse = { - decode(data: Uint8Array): IRecordDetailsDataResponse { - const reader = Reader.create(data) - const response: IRecordDetailsDataResponse = { - data: [], - forbiddenRecords: [], - } - while (reader.pos < reader.len) { - const tag = reader.uint32() - switch (tag >>> 3) { - case 1: - response.data.push(Records.RecordData.decode(reader, reader.uint32())) - break - case 2: - response.forbiddenRecords.push(reader.bytes() as Uint8Array) - break - default: - reader.skipType(tag & 7) - break - } - } - return response - }, -} - export const recordDetailsDataMessage = ( - data: IRecordDetailsDataRequest -): RestMessage => - createMessage(data, 'vault/records/v3/details/data', RecordDetailsDataRequest, RecordDetailsDataResponse) + data: record.v3.details.IRecordDataRequest +): RestMessage => + createMessage( + data, + 'vault/records/v3/details/data', + record.v3.details.RecordDataRequest, + record.v3.details.RecordDataResponse + ) export const folderAddMessage = ( data: Folder.IFolderAddRequest ): RestMessage => createMessage(data, 'vault/folders/v3/add', Folder.FolderAddRequest, Folder.FolderAddResponse) -export interface IGetFolderAccessRequest { - folderUid?: Uint8Array[] | null -} - -export interface IGetFolderAccessResult { - folderUid?: Uint8Array | null - accessors?: Folder.IFolderAccessData[] | null -} - -export interface IGetFolderAccessResponse { - folderAccessResults?: IGetFolderAccessResult[] | null - hasMore?: boolean | null -} - -const GetFolderAccessRequest = { - create(properties?: IGetFolderAccessRequest): IGetFolderAccessRequest { - return { folderUid: properties?.folderUid ?? [] } - }, - encode(message: IGetFolderAccessRequest, writer?: Writer): Writer { - const w = writer ?? Writer.create() - for (const uid of message.folderUid ?? []) { - w.uint32((1 << 3) | 2).bytes(uid) - } - return w - }, -} - -function decodeGetFolderAccessResult(reader: Reader, end: number): IGetFolderAccessResult | null { - let folderUid: Uint8Array | null = null - const accessors: Folder.IFolderAccessData[] = [] - - while (reader.pos < end) { - const tag = reader.uint32() - switch (tag) { - case 10: - folderUid = reader.bytes() - break - case 18: - accessors.push(Folder.FolderAccessData.decode(reader, reader.uint32())) - break - default: - reader.skipType(tag & 7) - } - } - - return folderUid?.length ? { folderUid, accessors } : null -} - -const GetFolderAccessResponse = { - decode(reader: Uint8Array): IGetFolderAccessResponse { - const r = Reader.create(reader) - const response: IGetFolderAccessResponse = { folderAccessResults: [] } - - while (r.pos < r.len) { - const tag = r.uint32() - if (tag === 10) { - const length = r.uint32() - const end = r.pos + length - const result = decodeGetFolderAccessResult(r, end) - if (result) response.folderAccessResults!.push(result) - r.pos = end - } else if (tag === 24) { - response.hasMore = r.bool() - } else { - r.skipType(tag & 7) - } - } - - return response - }, -} +export const folderUpdateMessage = ( + data: Folder.IFolderUpdateRequest +): RestMessage => + createMessage(data, 'vault/folders/v3/update', Folder.FolderUpdateRequest, Folder.FolderUpdateResponse) export const getFolderAccessMessage = ( - folderUids: string[] -): RestMessage => - createMessage( - { folderUid: folderUids.map(normal64Bytes) }, - 'vault/folders/v3/access', - GetFolderAccessRequest, - GetFolderAccessResponse - ) - -export interface IRecordAccessRequest { - recordUids?: Uint8Array[] | null -} - -export interface IAccessorInfo { - name?: string | null -} - -export interface IRecordAccess { - data?: Folder.IRecordAccessData | null - accessorInfo?: IAccessorInfo | null -} - -export interface IRecordAccessResponse { - recordAccesses?: IRecordAccess[] | null - forbiddenRecords?: Uint8Array[] | null -} - -const RecordAccessRequest = { - create(properties?: IRecordAccessRequest): IRecordAccessRequest { - return { recordUids: properties?.recordUids ?? [] } - }, - encode(message: IRecordAccessRequest, writer?: Writer): Writer { - const w = writer ?? Writer.create() - for (const uid of message.recordUids ?? []) { - w.uint32(26).bytes(uid) - } - return w - }, -} - -function decodeAccessorInfo(reader: Reader, end: number): IAccessorInfo { - let name: string | null = null - while (reader.pos < end) { - const tag = reader.uint32() - if (tag === 10) { - name = reader.string() - } else { - reader.skipType(tag & 7) - } - } - return { name } -} - -function decodeRecordAccess(reader: Reader, end: number): IRecordAccess | null { - let data: Folder.IRecordAccessData | null = null - let accessorInfo: IAccessorInfo | null = null - - while (reader.pos < end) { - const tag = reader.uint32() - switch (tag) { - case 10: - data = Folder.RecordAccessData.decode(reader, reader.uint32()) - break - case 18: { - const length = reader.uint32() - const infoEnd = reader.pos + length - accessorInfo = decodeAccessorInfo(reader, infoEnd) - reader.pos = infoEnd - break - } - default: - reader.skipType(tag & 7) - } - } - - return data ? { data, accessorInfo } : null -} - -const RecordAccessResponse = { - decode(reader: Uint8Array): IRecordAccessResponse { - const r = Reader.create(reader) - const response: IRecordAccessResponse = { recordAccesses: [], forbiddenRecords: [] } - - while (r.pos < r.len) { - const tag = r.uint32() - if (tag === 10) { - const length = r.uint32() - const end = r.pos + length - const item = decodeRecordAccess(r, end) - if (item) response.recordAccesses!.push(item) - r.pos = end - } else if (tag === 18) { - response.forbiddenRecords!.push(r.bytes()) - } else { - r.skipType(tag & 7) - } - } - - return response - }, -} + data: folder.v3.IGetFolderAccessRequest +): RestMessage => + createMessage(data, 'vault/folders/v3/access', folder.v3.GetFolderAccessRequest, folder.v3.GetFolderAccessResponse) export const getRecordAccessMessage = ( - recordUids: string[] -): RestMessage => + data: record.v3.details.IRecordAccessRequest +): RestMessage => createMessage( - { recordUids: recordUids.map(normal64Bytes) }, + data, 'vault/records/v3/details/access', - RecordAccessRequest, - RecordAccessResponse + record.v3.details.RecordAccessRequest, + record.v3.details.RecordAccessResponse ) From 58f4990dbb1d4cba99129c6a43508e2c9599172f Mon Sep 17 00:00:00 2001 From: ukumar-ks Date: Thu, 2 Jul 2026 15:25:36 +0530 Subject: [PATCH 11/12] update rest message for folder and records --- keeperapi/src/restMessages.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/keeperapi/src/restMessages.ts b/keeperapi/src/restMessages.ts index 1c542c2e..960118bb 100644 --- a/keeperapi/src/restMessages.ts +++ b/keeperapi/src/restMessages.ts @@ -1052,3 +1052,33 @@ export const getRecordAccessMessage = ( record.v3.details.RecordAccessRequest, record.v3.details.RecordAccessResponse ) + export const folderAccessUpdateMessage = ( + data: Folder.IFolderAccessRequest + ): RestMessage => + createMessage( + data, + 'vault/folders/v3/access_update', + Folder.FolderAccessRequest, + Folder.FolderAccessResponse + ) + + export const recordsShareV3Message = ( + data: record.v3.sharing.IRequest + ): RestMessage => + createMessage( + data, + 'vault/records/v3/share', + record.v3.sharing.Request, + record.v3.sharing.Response + ) + + export const recordsTransferV3Message = ( + data: Records.IRecordsOnwershipTransferRequest + ): RestMessage => + createMessage( + data, + 'vault/records/v3/transfer', + Records.RecordsOnwershipTransferRequest, + Records.RecordsOnwershipTransferResponse + ) + \ No newline at end of file From ad212ab52d2f39612d9808b733a49b24fabb341f Mon Sep 17 00:00:00 2001 From: ukumar-ks Date: Thu, 2 Jul 2026 15:27:15 +0530 Subject: [PATCH 12/12] Prettier format fix --- keeperapi/src/restMessages.ts | 49 ++++++++++++++--------------------- 1 file changed, 19 insertions(+), 30 deletions(-) diff --git a/keeperapi/src/restMessages.ts b/keeperapi/src/restMessages.ts index 960118bb..41ac6813 100644 --- a/keeperapi/src/restMessages.ts +++ b/keeperapi/src/restMessages.ts @@ -1052,33 +1052,22 @@ export const getRecordAccessMessage = ( record.v3.details.RecordAccessRequest, record.v3.details.RecordAccessResponse ) - export const folderAccessUpdateMessage = ( - data: Folder.IFolderAccessRequest - ): RestMessage => - createMessage( - data, - 'vault/folders/v3/access_update', - Folder.FolderAccessRequest, - Folder.FolderAccessResponse - ) - - export const recordsShareV3Message = ( - data: record.v3.sharing.IRequest - ): RestMessage => - createMessage( - data, - 'vault/records/v3/share', - record.v3.sharing.Request, - record.v3.sharing.Response - ) - - export const recordsTransferV3Message = ( - data: Records.IRecordsOnwershipTransferRequest - ): RestMessage => - createMessage( - data, - 'vault/records/v3/transfer', - Records.RecordsOnwershipTransferRequest, - Records.RecordsOnwershipTransferResponse - ) - \ No newline at end of file +export const folderAccessUpdateMessage = ( + data: Folder.IFolderAccessRequest +): RestMessage => + createMessage(data, 'vault/folders/v3/access_update', Folder.FolderAccessRequest, Folder.FolderAccessResponse) + +export const recordsShareV3Message = ( + data: record.v3.sharing.IRequest +): RestMessage => + createMessage(data, 'vault/records/v3/share', record.v3.sharing.Request, record.v3.sharing.Response) + +export const recordsTransferV3Message = ( + data: Records.IRecordsOnwershipTransferRequest +): RestMessage => + createMessage( + data, + 'vault/records/v3/transfer', + Records.RecordsOnwershipTransferRequest, + Records.RecordsOnwershipTransferResponse + )